[OpenSIPS-Users] Dialog and avp_timeout

Marcello Lupo mlist at itspecialist.it
Wed Apr 4 22:59:47 CEST 2012


Hi,
I'm using opensips 1.6.4 with dialog support.
I use dialog default timeout to close automatically calls after 3 hours and it works great.
Sometimes happen that some dialog remain in state 3 (200 OK received but ACK not received) till the default_timeout is reached.
I was trying to set default_timeout to 120 seconds and change the avp_timeout on the ACK to a greater value so the calls in state 3 will be automatically closed form the system after 120 sec.
I read around the docs that the timeout can be changed everywhere in the script after the dialog has been created but it is not working for me.

Every time the system give me:

DBG:dialog:get_dlg_timeout: invalid AVP value, use default timeout

and never update the timeout_avp.

I have in the config:

modparam("dialog", "default_timeout", 120)
modparam("dialog", "timeout_avp", "$avp(i:104)")
modparam("dialog", "bye_on_timeout_flag", 21)

In routing block when dialog start:

create_dialog();
setflag(21);


In routing block to check ACK:

        if(method=="ACK" && $DLG_status!=NULL) {
                $avp(i:104)="10800";
               # $avp(i:104)=10800;
                setflag(21);
        }

I tried to put the avp_timeout value as INT or as STRING but no difference. Looking in the source code seems that default_timeout is INT but timeout_avp expect string value.

Someone can help?
Thank you
Bye
Marcello




More information about the Users mailing list