<div dir="ltr">sorry my bad. I just wrote current values which are working. 0 is the default value which mean that no route will be initiated directly. I tried it with routeId 2. and it never invoke route[2]<br><br>Regards,<br>

<br>Saeed Akhtar<br><br>
<br><br><div class="gmail_quote">On Thu, Dec 17, 2009 at 2:25 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Saeed,<br>
<br>
route[0] is reserved keyword and you cannot (and you should not) invoke<br>
it from other places..<br>
<br>
So, more or less, trying to invoke it from DR has not effect as it is<br>
not visible as a normal route ....try using a different route to be<br>
called by DR.<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
Saeed Akhtar wrote:<br>
</div><div class="im">&gt; version 1.6.1-notls on ubuntu 9.04<br>
&gt; and here is rule record:<br>
&gt;<br>
&gt;     ruleid: 1<br>
&gt;<br>
&gt;     groupid: 1<br>
&gt;<br>
&gt;     prefix: 00<br>
&gt;<br>
&gt;     timerec: 20040404T020000<br>
&gt;<br>
&gt;     priority: 0<br>
&gt;<br>
&gt;     routeid: 0<br>
&gt;<br>
&gt;     gwlist: 1<br>
&gt;<br>
&gt;     description: test1<br>
&gt;<br>
&gt;<br>
&gt; thats the only rule and working fine other than routeid.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Saeed Akhtar<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Dec 17, 2009 at 12:33 AM, Bogdan-Andrei Iancu<br>
</div><div class="im">&gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi Saeed,<br>
&gt;<br>
&gt;     using 1.6 or 1.5 ? also, can you post the rule record ?<br>
&gt;<br>
&gt;     Thanks and regards,<br>
&gt;     Bogdan<br>
&gt;<br>
&gt;     Saeed Akhtar wrote:<br>
&gt;     &gt; yes exactly... and im using head revision from svn<br>
&gt;     &gt;<br>
&gt;     &gt; Regards,<br>
&gt;     &gt;<br>
&gt;     &gt; Saeed Akhtar<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; On Tue, Dec 15, 2009 at 1:01 PM, Bogdan-Andrei Iancu<br>
&gt;     &gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;<br>
</div><div><div></div><div class="h5">&gt;     &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt;&gt;<br>
&gt;     wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     Hi Saeed,<br>
&gt;     &gt;<br>
&gt;     &gt;     so you put &quot;2&quot; in the route_id column for the rules? and this<br>
&gt;     &gt;     route was<br>
&gt;     &gt;     not called when the rule matched?<br>
&gt;     &gt;<br>
&gt;     &gt;     Also, what version are you using?<br>
&gt;     &gt;<br>
&gt;     &gt;     Regards,<br>
&gt;     &gt;     Bogdan<br>
&gt;     &gt;<br>
&gt;     &gt;     Saeed Akhtar wrote:<br>
&gt;     &gt;     &gt; thanks. Basically it wasn&#39;t going on route 2, which i told<br>
&gt;     it in<br>
&gt;     &gt;     &gt; database. I still dont know why was it happening but<br>
&gt;     still, its<br>
&gt;     &gt;     &gt; working now. Can someone tell me why it was overriding<br>
&gt;     route column<br>
&gt;     &gt;     &gt; given in database?<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; Regards,<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; Saeed Akhtar<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; On Mon, Dec 14, 2009 at 6:09 PM, Bogdan-Andrei Iancu<br>
&gt;     &gt;     &gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;<br>
&gt;     &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt;<br>
&gt;     &gt;     &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a><br>
&gt;     &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt; &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a><br>
&gt;     &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt;&gt;&gt;<br>
&gt;     &gt;     wrote:<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     Hi Saeed,<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     I suspect you have an error in your script - after<br>
&gt;     drouting,<br>
&gt;     &gt;     it seams<br>
&gt;     &gt;     &gt;     your script is also doing a lookup(location)....I mean you<br>
&gt;     &gt;     apply a<br>
&gt;     &gt;     &gt;     logic  to send the call to GW (drouting) and then you also<br>
&gt;     &gt;     do the<br>
&gt;     &gt;     &gt;     registration-based lookup for users (location).<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     What you need to do is, after do_routing(), to send<br>
&gt;     the call<br>
&gt;     &gt;     out by<br>
&gt;     &gt;     &gt;     doing t_relay() and exit after it.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     Regards,<br>
&gt;     &gt;     &gt;     Bogdan<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     Saeed Akhtar wrote:<br>
&gt;     &gt;     &gt;     &gt; Hi all,<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt; I&#39;m want to route my call to another sip server if<br>
&gt;     certain<br>
&gt;     &gt;     criteria<br>
&gt;     &gt;     &gt;     &gt; match so I looked for it and found dynamic routing<br>
&gt;     &gt;     (drouting) and<br>
&gt;     &gt;     &gt;     &gt; Least Cost Routes - LCR module to do so. I read<br>
&gt;     about dynamic<br>
&gt;     &gt;     &gt;     routing<br>
&gt;     &gt;     &gt;     &gt; and as it was serving my purpose so I thought I<br>
&gt;     should go<br>
&gt;     &gt;     for it.<br>
&gt;     &gt;     &gt;     &gt; Now in drouting, I gave address to another SIP<br>
&gt;     server on local<br>
&gt;     &gt;     &gt;     &gt; network. When I tested it, it was a failure. I go<br>
&gt;     through<br>
&gt;     &gt;     console<br>
&gt;     &gt;     &gt;     &gt; output. I found out it successfully modified ruri and<br>
&gt;     &gt;     following<br>
&gt;     &gt;     &gt;     &gt; message showed.<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt;     DBG:drouting:do_routing: setting gw [0] as ruri<br>
&gt;     &quot;sip:&lt;new<br>
&gt;     &gt;     &gt;     &gt;     number&gt;@&lt;ip address&gt;&quot;<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt; Then next it gave me following message:<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt;     DBG:registrat:lookup: &#39;&lt;new number&gt;&#39; Not found<br>
&gt;     in usrloc<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt; And hence request was not forwarded to other sip<br>
&gt;     server. I<br>
&gt;     &gt;     also<br>
&gt;     &gt;     &gt;     &gt; rechecked it through wireshark but no packet was<br>
&gt;     forwarded<br>
&gt;     &gt;     to other<br>
&gt;     &gt;     &gt;     &gt; sip server ip address.<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt; What I believe is that OpenSIPS is checking its own<br>
&gt;     &gt;     registrar no<br>
&gt;     &gt;     &gt;     &gt; metter even if ip address of other server is already<br>
&gt;     &gt;     given. Can<br>
&gt;     &gt;     &gt;     &gt; someone please tell me how to bypass this registrar<br>
&gt;     check<br>
&gt;     &gt;     and just<br>
&gt;     &gt;     &gt;     &gt; forward the request to other server simply.<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt; Regards,<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt; Saeed Akhtar<br>
&gt;     &gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     &gt; -<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     --<br>
&gt;     &gt;     Bogdan-Andrei Iancu<br>
&gt;     &gt;     <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;     &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     _______________________________________________<br>
&gt;     &gt;     Users mailing list<br>
&gt;     &gt;     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
</div></div>&gt;     &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt;     &gt;     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Users mailing list<br>
&gt;     &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
&gt;     &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;     &gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Bogdan-Andrei Iancu<br>
&gt;     <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Users mailing list<br>
&gt;     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
&gt;     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>