Hi Laurent,
Yes, you can do so. Unfortunately the "fr_inv_timer_avp" parameter doesn't supports AVP aliases, but only raw names - not even IDs :-(. So, do something like this:
modparam("tm", "fr_inv_timer_avp", "inv_timeout")
... avp_db_load("$ruri", "inv_timeout/forwardingDB") ...
Since the TM expects for "fr_inv_timer_avp" an string name AVP with string value, you have to set type=0 in AVP database (see http://www.voice-system.ro/docs/avpops/ar01s04.html for more details).
I would take the opportunity to ask if it wouldn't be better to use number values for this AVPs ("fr_inv_timer_avp" and "fr_timer_avp") instead of strings - it will save a lot of extra conversions.
Best regards, Marian
Schweizer Laurent wrote:
Hello,
I want to know if it is possible to load the timeout value for DB with something like:
modparam("avpops","avp_aliases","inv_timeout=i:1234") modparam("tm", "fr_inv_timer_avp", "$inv_timeout")
... avp_db_load("$ruri", "$inv_timeout/forwardingDB")
Thanks
Laurent
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Java Rockx Sent: vendredi, 3. décembre 2004 15:27 To: marian.dumitru@voice-sistem.ro Cc: ser users Subject: Re: [Serusers] Dynamic Invite Timer w/AVPOPS
Thanks, however I must be doing something wrong because the avp_write() doesn't seem to have any effect on the INVITE timer timeout.
My ser.cfg looks like this:
# ------------- tm parameters modparam("tm", "fr_timer", 15) modparam("tm", "fr_inv_timer", 22) modparam("tm", "wt_timer", 5) modparam("tm", "fr_inv_timer_avp", "inv_timeout")
route {
# sanity checks, record route, alias lookup, etc, etc if (!lookup("location")) { if (uri=~"^sip:[0-9]{10}@") { # Send to PSTN Gateway avp_write("45", "inv_timeout"); route(3); break; } sl_send_reply("404", "User Not Found"); break; }; # normal SIP->SIP routing with default fr_inv_timer # set to 22 seconds with mod_param() above route(2);
}
Shouldn't this do the trick?
Regards, Paul
--- Marian Dumitru marian.dumitru@voice-sistem.ro wrote:
Hi Paul,
you can control final_response_timer and final_response_invite_timer via avps. Set in TM fr_inv_avp / fr_inv_timer_avp parameters with some AVP string names and use AVPOPS to give values to these AVPS:
modparam("tm","fr_inv_timer_avp","inv_timeout")
.... avp_write("20","inv_timeout"); # set timeout to 20 sec t_relay(); .....
Best regards, Marian
Java Rockx wrote:
Hi All.
I thought I read something a while ago about using avpops to dymanically
change the INVITE
timer -
but I can't seem to find that thread.
Can anyone tell me if this is possible?
I'd like to have a shorter INVITE timer for SIP->SIP calls and a longer
INVITE timer for
SIP->PSTN
calls. We see some 408 replies because a SIP phone is dialing a cell
phone and get transfered
to
the voicemail of the cell phone user, but to prevent the 408 due to a
slow voicemail system we
have our INVITE timer currently set at 40 seconds which is rather
annoying for SIP->SIP calls.
I'm using -dev-21
Regards, Paul
__________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Voice Sistem http://www.voice-sistem.ro
__________________________________ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers