<div dir="ltr">i have not had any progress with the integration.<div>My setup consists of:</div><div>-Opensips (2.4.2) with Control Panel and IP:192.168.1.250. Created through the Control Panel users 2500-2509 and registered them to softphones and they can talk to each other.</div><div>-2 Freepbx boxes, no configuration at the time, with IPs: 192.168.1.100 & 192.168.1.101 respectively</div><div>i am looking how to send the alter the configuration so that users in 2500 can access voicemail in the freepbxes and the rest of the services.</div><div>Also looking to register my ITSPs that require username/passwd/domain. Also they forward numbers in DID mode and i have to assign them to particular extensions. eg</div><div>DID_A to 2500</div><div>DID_B to 2501 </div><div>DID_C to 2502</div><div>DID_D to 2503</div><div> <br></div><div><br></div><div><br></div><div>i would appreciate all the help available. Once successful, i will document everything and make it available to anyone looking to create something similar.</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 19, 2019 at 1:11 PM Alexey Kazantsev via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi John!<br>
<br>
>i am trying for some time now to integrate Opensips with Asterisk,<br>
> but without success. I have seen the links to the Opensips blog for<br>
> Asterisk integration, but it is outdated both for Opensips and Opensips.<br>
<br>
Well, what confused you in this tutorial? It seems to be what you need:<br>
<a href="https://www.opensips.org/Documentation/Tutorials#toc18" rel="noreferrer" target="_blank">https://www.opensips.org/Documentation/Tutorials#toc18</a><br>
<br>
>What i am trying to achieve is a box running Opensips with control panel <br>
>and another box with Asterisk. The reason for that is to enhance the users<br>
>with services such as IVR, Voicemail, email to voicemail, faxing,....etc<br>
<br>
>Up to now i managed to create users in Opensips and register on that. <br>
>Also they are able to make calls between them. <br>
<br>
You've written that you don't see such calls on the Asterisk.<br>
It means that you don't route such calls from OpenSIPS to Asterisk.<br>
Check this.<br>
<br>
>The numbering plan is 30XX and the port on the system is 5060.<br>
>Then i have another box with Asterisk that has the port as 55060<br>
>and the numbering plan is 30XX<br>
<br>
Well.. OK, let it be so.<br>
<br>
>and every time a user is created in Opensip's CP<br>
>then i create the same user in Asterisk,<br>
>eg Opensips 3000(port 5060) and Asterisk 3000(port 55060).<br>
<br>
But why?! You don't need this. Create SIP accounts either in OpenSIPS,<br>
or in Asterisk.<br>
<br>
>Then on the Asterisk box i made the following:<br>
>Created a trunk to Opensips <br>
><br>
>[Opensips]<br>
>type=peer<br>
>host=192.168.1.113<br>
>context=from-opensips<br>
>insecure=port,invite<br>
>disallow=all<br>
>allow=alaw, g729, g722, ulaw<br>
>deny= <a href="http://0.0.0.0/0.0.0.0" rel="noreferrer" target="_blank">0.0.0.0/0.0.0.0</a><br>
>permit= <a href="http://192.168.1.113/255.255.255.255" rel="noreferrer" target="_blank">192.168.1.113/255.255.255.255</a><br>
><br>
><br>
>The problem is that i cannot see the call in Asterisk's terminal when 2 users call each other. <br>
<br>
As I already wrote, it means that the call does not leave OpenSIPS.<br>
I guess you don't route it to Asterisk with smth like this:<br>
<br>
   ...<br>
   t_relay(x.x.x.x);   # Asterisk's IP<br>
   ...<br>
<br>
>Also , i have a couple of ITSPs in Asterisk that require username/passwd and thet have a FQDN.<br>
<br>
If you'd like to use OpenSIPS as the front-end, you'd better connect to ITSPs also from OpenSIPS.<br>
In case of SIP-registration,<br>
use UAC_REGISTRANT <a href="https://opensips.org/html/docs/modules/3.0.x/uac_registrant.html" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.0.x/uac_registrant.html</a> module.<br>
In case of SIP trunks just be able to receive SIP traffic from them and control access to your OpenSIPS <br>
public IP via iptables or PERMISSIONS module <a href="https://opensips.org/html/docs/modules/3.0.x/permissions.html" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.0.x/permissions.html</a>.<br>
<br>
>While in Asterisk registered the user can access the first ITSP with the following prefixes 0 and 1 respectively.<br>
>Is there any way to allow the Opensips registered users dial 0 or 1 as prefix and place outgoing calls through ITSP 0 or 1, please?<br>
<br>
OpenSIPS is _extremely_ flexible.<br>
This could be achieved in many ways, starting from hardcoding in the script (in case of static configuration<br>
without need of changing it often) and ending with appropriate modules using, such as<br>
DROUTING <a href="https://opensips.org/html/docs/modules/3.0.x/drouting.html" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.0.x/drouting.html</a><br>
<br>
<br>
-----------------------------------------------<br>
BR, Alexey<br>
<a href="http://alexeyka.zantsev.com/" rel="noreferrer" target="_blank">http://alexeyka.zantsev.com/</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>