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