[OpenSIPS-Users] Database entries for Trunking script?

jack krog jackkrog at yahoo.com
Wed Oct 14 18:10:57 EST 2020

 Razvan, Thank you for your response,

I have a gateway setup for both the incoming host (pbxb) and my PBX (cust0001)


I have rules set up, specifically one for 211234567


I even tried adding a group incase I misunderstood you.


and I'm still failing at this step:

# route calls based on prefix
 if ( !do_routing(1) ) {
 send_reply(404,"No Route found");

How can I dig into what's going on here, I tried starting opensips in Debug mode but the output is quite verbose and doesn't mean anything to me yet.

Additionally, is there a easier way to reload rules than to kill opensips and restart it? I saw reference to a opensipsctl command but my install doesn't have it. 
     On Wednesday, October 14, 2020, 08:20:12 AM MST, Răzvan Crainea <razvan at opensips.org> wrote:  
 Hi, Jack!

Rules have to be added in group 1[1].
You need to add a gateway to host Then you need to add a 
rule with the prefix (2111234567 in your case) and assign it to group 1. 
If you don't have group 1, you can provision it in the settings tab.


Best regards,

Răzvan Crainea
OpenSIPS Core Developer

On 10/12/20 7:18 AM, jack krog via Users wrote:
> Bump?
> I still don't understand how drouting needs to be configured for the 
> trunking script to work.
> Are there videos covering the scripts generated by osipsconfig?
> On Thursday, October 1, 2020, 10:02:50 AM MST, jack krog via Users 
> <users at lists.opensips.org> wrote:
> Hello,
> I'm new to opensips coming from a asterisk background.
> I'm trying to learn how things work by using the osipsconfig generated 
> trunking script but I can't find documentation on what database values I 
> need to input to route a call to my PBX.
> The script appears to get to where it runs dp_translate followed by 
> do_routing and then all my test calls get rejected with a No Route Found 
> response.
> /What do I need to put in the control panel to route the DDI number 
> 211-123-4567 to the host using the domain cust0001.pbx ? /
> I've entered my PBX under Dynamic Routing > Gateways but don't know if I 
> need to create a Group?
> If I want to pass the number through without changing it do I need to 
> use dialplan? Is that where I need to point my DID to my PBX?
> Thank you for your time.
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Users mailing list
Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201014/50c3b6c7/attachment.html>

More information about the Users mailing list