Hello, you can use the dialog module for this and its timeout_avp.<div><br></div><div>modparam("dialog", "timeout_avp", "$avp(timeout)")<br></div><div><br></div><div>When you receive an INVITE, before relaying to the destination create a dialog and set the timeout you want</div>
<div><br></div><div>create_dialog("B");</div><div>$avp(timeout) = TIMEOUT;<br></div><div><br></div><div>Then in the main route, before loose_route() call you can restore the dialog lifetime:</div><div><br></div>
<div><div>if (is_method("ACK")) {</div><div> $avp(timeout) = DIALOG_TIMEOUT;</div><div>}</div></div><div><br></div><div>Hope this helps.</div><div><br></div><div>Regards,</div><div><br></div><div>
Federico</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 4:10 PM, Nick <span dir="ltr"><<a href="mailto:nick.chang@kland.com.tw" target="_blank">nick.chang@kland.com.tw</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>Hello</div><div> </div><div>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.</div>
<div> </div><div>
But, Now it can't talk. Can Server set time out?? When Timeout, Send Bye to B.</div><div> </div><div>Thanks</div><div>BR</div><div> </div><div> </div><div> </div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div>der</div>