[OpenSIPS-Users] Route timeout

Wesley Volcov wesleyvolcov at gmail.com
Fri Aug 13 16:35:09 CEST 2010


Hello All,

I've configured the params as fallow:
modparam("tm", "fr_timer", 2)
modparam("tm", "fr_inv_timer", 10)

But, after some tests I'm seeing that, when the destination gateway reply a
100 TRYING, the first timeout(fr_timer) is 'disabled', and the call will
enter in failure route just if there is no 200 OK in the time configured in
fr_inv_time.
What I need, is if the time between de 100 TRYING and 180 RING is more than
2 seconds, the call will enter in failure route.

How can I do that?

Regards,


On 12 August 2010 23:33, Pasan Meemaduma <pasandev at ymail.com> wrote:

> Hi Wesley,
>
> Hope this is what you seeking.
>
> modparam("tm", "fr_inv_timer_avp", "$avp(s:timeout)")
>
> and you can load different timeout to avp using like below, this is per
> username
>
> avp_db_load("$ru/username","$avp(s:timeout)");
>
> and you can trigger failure route as follow,
>
>  t_on_failure("1");
>
> you can use this in your route to trigger next failure route.
>
>
> failure_route[1]
> {
> #####alternate route
> }
>
> ------------------------------
> *From:* Wesley Volcov <wesleyvolcov at gmail.com>
> *To:* OpenSIPS users mailling list <users at lists.opensips.org>
> *Sent:* Friday, August 13, 2010 1:17:43
> *Subject:* [OpenSIPS-Users] Route timeout
>
> Hello All,
>
> Is there any way to configure a timeout per route?
> What I mean is: If my first route doesn't send a reply(100 Trying or any
> other) in some seconds, the opensips sends the the call to failure route,
> and then I use failure route to try another route. How can I do that?
>
> Regards,
>
> --
> Wesley Volcov
> Email: wesleyvolcov at gmail.com
> Messenger: volcov at live.com
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
>
>


-- 
Wesley Volcov
Email: wesleyvolcov at gmail.com
Messenger: volcov at live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100813/f05bfb21/attachment.htm 


More information about the Users mailing list