Discussion:
[SR-Users] dlg_set_timeout_by_profile not working on kamailio 4.1.5
Jose Ferreira
2014-09-30 10:55:29 UTC
Permalink
I'm trying to use dlg_set_timeout_by_profile and it doesn't do nothing on
Kamailio 4.1.5

If i try to use the dlg_set_timeout, it also doesn't work, but it gives the
following error

CRITICAL: dialog [dlg_timer.c:205]: update_dlg_timer(): Trying to update a
bogus dlg tl=0x7f9825ac6880 tl->next=(nil) tl->prev=(nil)
ERROR: dialog [dlg_hash.c:1094]: update_dlg_timeout(): failed to update
dialog lifetime

If i set the timeout with the $avp, it only works before dlg_manage(), but
also with a Warning

WARNING: dialog [dlg_handlers.c:1245]: dlg_onroute(): inconsitent dlg timer
data on dlg 0x7f9da0dc7f08 [4066:9857] with clid
'bba73ace3ee94b95bf5b1782406047bd' and tags
'6460df6b8b3947ba96b1cf65330bf524' 'm2pmrUpHN06Fc'


The dialog module configurations are:

modparam("dialog", "db_url", DBURL)
modparam("dialog", "dlg_flag", FLT_DLG)
modparam("dialog", "db_mode", 0)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "profiles_with_value", "user ; domain ; permissions")
modparam("dialog", "profiles_no_value", "inbound ; outbound ; all")
modparam("dialog", "send_bye", 1)
modparam("dialog", "default_timeout", 21600)
modparam("dialog", "ka_timer", 0)
modparam("dialog", "ka_interval", 0)
modparam("dialog", "timeout_avp", "$avp(dlgtimeout)")


I'm very interested to use dlg_set_timeout_by_profile, any idea about what
is wrong with that ?

Regards,

*José Ferreira | Technical Manager*

M. +351 91 775 7166 | jferreira-g+Gt/***@public.gmane.org

Wavecom, Soluções Rádio, SA

Cacia Park | Rua do Progresso, Lote 15

3800-639 AVEIRO | Portugal

T. +351 234 919 190 | F. +351 234 919 191

*www.wavecom.pt <http://www.wavecom.pt/>*





[image: WavecomSignature]
Daniel-Constantin Mierla
2014-10-10 09:35:36 UTC
Permalink
Apparently these functions work when the dialog is established, more
like updating the timeout value that was set via avp. I will look over
the code and fix if that is an error. Maybe it is good to open an issue
on tracker, not to forget about.

Cheers,
Daniel
Post by Jose Ferreira
I'm trying to use dlg_set_timeout_by_profile and it doesn't do nothing
on Kamailio 4.1.5
If i try to use the dlg_set_timeout, it also doesn't work, but it
gives the following error
CRITICAL: dialog [dlg_timer.c:205]: update_dlg_timer(): Trying to
update a bogus dlg tl=0x7f9825ac6880 tl->next=(nil) tl->prev=(nil)
ERROR: dialog [dlg_hash.c:1094]: update_dlg_timeout(): failed to
update dialog lifetime
If i set the timeout with the $avp, it only works before dlg_manage(),
but also with a Warning
WARNING: dialog [dlg_handlers.c:1245]: dlg_onroute(): inconsitent dlg
timer data on dlg 0x7f9da0dc7f08 [4066:9857] with clid
'bba73ace3ee94b95bf5b1782406047bd' and tags
'6460df6b8b3947ba96b1cf65330bf524' 'm2pmrUpHN06Fc'
modparam("dialog", "db_url", DBURL)
modparam("dialog", "dlg_flag", FLT_DLG)
modparam("dialog", "db_mode", 0)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "profiles_with_value", "user ; domain ; permissions")
modparam("dialog", "profiles_no_value", "inbound ; outbound ; all")
modparam("dialog", "send_bye", 1)
modparam("dialog", "default_timeout", 21600)
modparam("dialog", "ka_timer", 0)
modparam("dialog", "ka_interval", 0)
modparam("dialog", "timeout_avp", "$avp(dlgtimeout)")
I'm very interested to use dlg_set_timeout_by_profile, any idea about
what is wrong with that ?
Regards,
*José Ferreira | Technical Manager***
Wavecom, Soluções Rádio, SA
Cacia Park | Rua do Progresso, Lote 15
3800-639 AVEIRO | Portugal
T. +351 234 919 190 | F. +351 234 919 191
*www.wavecom.pt <http://www.wavecom.pt/>*
WavecomSignature
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...