[OpenSIPS-Users] Dynamic routing .

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Sep 28 13:17:30 CEST 2015


Hi Sasmita,

The param of do_routing() has to reflct the routing group you want to 
use (the groupid in the dr_rules table) .

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.09.2015 13:26, Sasmita Panda wrote:
> Hi All ,
>
>     I mean to say , when there is more that one group and for each 
> group there is different gateways then how I will set the do_routing 
> parameter inside my script ?
>
>     If I have a single group then I am setting it as do_routing("1") . 
> But for different groups this logic wont work . I don't want to add 
> if... else loop for this . I don't want to change my config file every 
> time I add an new group and its corresponding gateway .
>
>
>     So please help me how will I do this ? Any kind of suggestion is 
> welcome .
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
> On Fri, Sep 25, 2015 at 7:08 PM, Sasmita Panda <spanda at 3clogic.com 
> <mailto:spanda at 3clogic.com>> wrote:
>
>
>
>     Hi All ,
>
>
>         I am trying to use dynamic routing in opensips-1.11 .
>      I have just done an single outbound call . I have added a group
>     corresponding to  outbound domain then i had define a gate way
>     corresponding to the group id .
>       In side my script , I have added do_routing(group_id) . Its
>     working for me .
>
>         Now I have multiple groups and for each group the gateway is
>     different .
>     like : group1 : gr_id:1 , domain : 1.1.1.1:5506 <http://1.1.1.1:5506>
>             group2 : gr_id2 . domain : 2.2.2.2:5506 <http://2.2.2.2:5506>
>        gatw1 : domain:x.x.x.x:5506 , gw_type:1 , gr_id:1
>     gatw2 : domain:x.x.x.y:5506 , gw_type:1 , gr_id:2
>
>          Now , I can add this in the table . but how will I define it
>     in the script so that for different group different gateway will
>     get selected and the call get routed ?
>
>     Please help. Thank you in advance .
>
>
>
>     */Thanks & Regards/*
>     /Sasmita Panda/
>     /Network Testing and Software Engineer/
>     /3CLogic , ph:07827611765/
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150928/47fa380d/attachment.htm>


More information about the Users mailing list