<div dir="ltr">Hi All ,<div><br></div><div>    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 ? </div><div><br></div><div>    If I have a single group then I am setting it as do_routing(&quot;1&quot;) . But for different groups this logic wont work . I don&#39;t want to add if... else loop for this . I don&#39;t want to change my config file every time I add an new group and its corresponding gateway . </div><div><br></div><div><br></div><div>    So please help me how will I do this ? Any kind of suggestion is welcome .</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><b><i>Thanks &amp; Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="gmail_quote">On Fri, Sep 25, 2015 at 7:08 PM, Sasmita Panda <span dir="ltr">&lt;<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><br></div>Hi All ,<div><br></div><div><br></div><div>    I am trying to use dynamic routing in opensips-1.11 .</div><div> 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 . </div><div>  In side my script , I have added do_routing(group_id) . Its working for me .</div><div><br></div><div>    Now I have multiple groups and for each group the gateway is different .</div><div>like : group1 : gr_id:1 , domain : <a href="http://1.1.1.1:5506" target="_blank">1.1.1.1:5506</a></div><div>        group2 : gr_id2 . domain : <a href="http://2.2.2.2:5506" target="_blank">2.2.2.2:5506</a></div><div>   gatw1 : domain:x.x.x.x:5506 , gw_type:1 , gr_id:1</div><div>gatw2 : domain:x.x.x.y:5506 , gw_type:1 , gr_id:2<br></div><div><br></div><div>     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 ?</div><div><br></div><div>Please help. Thank you in advance .</div><div> </div><div><br></div><div>    </div><div><br></div><div><br clear="all"><div><div><div dir="ltr"><b><i>Thanks &amp; Regards</i></b><span class="HOEnZb"><font color="#888888"><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></font></span></div></div></div>
</div></div>
</blockquote></div><br></div>