<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Sasmita,<br>
<br>
The param of do_routing() has to reflct the routing group you want
to use (the groupid in the dr_rules table) .<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 28.09.2015 13:26, Sasmita Panda
wrote:<br>
</div>
<blockquote
cite="mid:CALf-Q47JueCNswGz3UOfnpu7tj01nx1NELR4QhgUxAqVW_Q4yg@mail.gmail.com"
type="cite">
<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("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 . </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 & 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"><<a moz-do-not-send="true"
href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>></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
moz-do-not-send="true" href="http://1.1.1.1:5506"
target="_blank">1.1.1.1:5506</a></div>
<div> group2 : gr_id2 . domain : <a
moz-do-not-send="true" 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 & 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>