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