[OpenSIPS-Users] Route timeout

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Aug 27 10:27:01 CEST 2010


Hi Wesley,

you can use the restart_fr_on_each_reply param 
(http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id271074)  and 
set the fr_inv_timer to 2 secs.

Regards,
bogdan

Wesley Volcov wrote:
> 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 
> <mailto: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
>     <mailto:wesleyvolcov at gmail.com>>
>     *To:* OpenSIPS users mailling list <users at lists.opensips.org
>     <mailto: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 <mailto:wesleyvolcov at gmail.com>
>     Messenger: volcov at live.com <mailto:volcov at live.com>
>     Mobile: +55 11 9989-5348
>     Website: http://volcov.blogspot.com
>
>
>
>
> -- 
> Wesley Volcov
> Email: wesleyvolcov at gmail.com <mailto:wesleyvolcov at gmail.com>
> Messenger: volcov at live.com <mailto:volcov at live.com>
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list