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 <[email protected]> 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
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> der
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users