[OpenSIPS-Users] About Timeout setting

Federico Cabiddu federico.cabiddu at gmail.com
Thu Dec 13 16:29:19 CET 2012


Hello, you can use the dialog module for this and its timeout_avp.

modparam("dialog", "timeout_avp", "$avp(timeout)")

When you receive an INVITE, before relaying to the destination create a
dialog and set the timeout you want

create_dialog("B");
$avp(timeout) = TIMEOUT;

Then in the main route, before loose_route() call you can restore the
dialog lifetime:

if (is_method("ACK")) {
                $avp(timeout) = DIALOG_TIMEOUT;
}

Hope this helps.

Regards,

Federico


On Thu, Dec 13, 2012 at 4:10 PM, Nick <nick.chang at kland.com.tw> wrote:

> Hello
>
> Make a call A to B, A network interruption A will disappear for this call,
> but B will always show "ringing". B Click on button can be recive this
> phone call.
>
> But, Now it can't talk. Can Server set time out?? When Timeout, Send Bye
> to B.
>
> Thanks
> BR
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> der
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121213/59224ce5/attachment.htm>


More information about the Users mailing list