<div dir="ltr">thanks. Basically it wasn't going on route 2, which i told it in database. I still dont know why was it happening but still, its working now. Can someone tell me why it was overriding route column given in database?<br>
<br>Regards,<br><br>Saeed Akhtar<br><br>
<br><br><div class="gmail_quote">On Mon, Dec 14, 2009 at 6:09 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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>
I suspect you have an error in your script - after drouting, it seams<br>
your script is also doing a lookup(location)....I mean you apply a<br>
logic to send the call to GW (drouting) and then you also do the<br>
registration-based lookup for users (location).<br>
<br>
What you need to do is, after do_routing(), to send the call out by<br>
doing t_relay() and exit after it.<br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div class="h5"><br>
Saeed Akhtar wrote:<br>
> Hi all,<br>
><br>
> I'm want to route my call to another sip server if certain criteria<br>
> match so I looked for it and found dynamic routing (drouting) and<br>
> Least Cost Routes - LCR module to do so. I read about dynamic routing<br>
> and as it was serving my purpose so I thought I should go for it.<br>
> Now in drouting, I gave address to another SIP server on local<br>
> network. When I tested it, it was a failure. I go through console<br>
> output. I found out it successfully modified ruri and following<br>
> message showed.<br>
><br>
> DBG:drouting:do_routing: setting gw [0] as ruri "sip:<new<br>
> number>@<ip address>"<br>
><br>
><br>
> Then next it gave me following message:<br>
><br>
> DBG:registrat:lookup: '<new number>' Not found in usrloc<br>
><br>
><br>
> And hence request was not forwarded to other sip server. I also<br>
> rechecked it through wireshark but no packet was forwarded to other<br>
> sip server ip address.<br>
><br>
> What I believe is that OpenSIPS is checking its own registrar no<br>
> metter even if ip address of other server is already given. Can<br>
> someone please tell me how to bypass this registrar check and just<br>
> forward the request to other server simply.<br>
><br>
> Regards,<br>
><br>
> Saeed Akhtar<br>
><br>
</div></div>> ------------------------------------------------------------------------<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>
><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>
</blockquote></div><br></div>