<HTML dir=ltr><HEAD><TITLE>Re: [asterisk-users] Dial timeout with SIP - how to set timeout for INVITE ACK</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText89444 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2>&gt;So why not use 30 and let Asterisk take care of the SIP details/<BR>&gt;timeouts?</FONT></DIV></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Asterisk will&nbsp;wait the&nbsp;until it&nbsp;receive "answer" or timeout</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>I need&nbsp;to timeout a SIP call on SIP INVITE ACK, in ISDN for exmaple this is translated to PROCEEDING </FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Meaning "I have received the call, now I will look what&nbsp;to do&nbsp;with it"</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>The result with the suggested timeout is not good enought, you may wait for the whole timeout even if the other side as not sent anything, this will be the case for all your calls, depending on the timeout this&nbsp;would be&nbsp;killing&nbsp;the traffic.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><BR><FONT face="Courier New" size=2>
<HR tabIndex=-1>
</FONT><FONT face="Courier New"><FONT size=2><B>From:</B> asterisk-users-bounces@lists.digium.com on behalf of Philipp Kempgen<BR><B>Sent:</B> Thu 18/12/2008 4:17 PM<BR><B>To:</B> Asterisk Users<BR><B>Subject:</B> Re: [asterisk-users] Dial timeout with SIP - how to set timeout for INVITE ACK<BR><BR></FONT></FONT></DIV>
<DIV>
<P><FONT face="Courier New" size=2>Julien Chavanton schrieb:<BR>&gt; I have a concern with Dial command, I want to enable a secondary route with a remote partner, if the first route fails then we use the second one :<BR><BR>&gt; Solution1: it will try both (there will be 2 simultanious actives calls ringing) this is not clean when calling an endusers<BR>&gt;&nbsp;<BR>&gt;&nbsp; exten =&gt; _X.,1,Dial(SIP/${EXTEN}@remote-sip1,5 &lt;</FONT><A href="mailto:SIP/${EXTEN}@remote-sip1,5"><FONT face="Courier New" size=2>SIP/${EXTEN}@remote-sip1,5</FONT></A><FONT face="Courier New" size=2>&gt; )<BR>&gt;&nbsp; exten =&gt; _X.,1,Dial(SIP/${EXTEN}@remote-sip2,5 &lt;</FONT><A href="mailto:SIP/${EXTEN}@remote-sip2,5"><FONT face="Courier New" size=2>SIP/${EXTEN}@remote-sip2,5</FONT></A><FONT face="Courier New" size=2>&gt; )<BR><BR>You can't have the same "priority" (1) more than once per<BR>extension (_X.).<BR><BR>&gt; Solution2: it will wait until 5 seconds of timeout (on answer) and then try the second alternative "n"<BR>&gt;&nbsp;<BR>&gt;&nbsp; exten =&gt; _X.,1,Dial(SIP/${EXTEN}@remote-sip1,5 &lt;</FONT><A href="mailto:SIP/${EXTEN}@remote-sip1,5"><FONT face="Courier New" size=2>SIP/${EXTEN}@remote-sip1,5</FONT></A><FONT face="Courier New" size=2>&gt; )<BR>&gt;&nbsp; exten =&gt; _X.,n,Dial(SIP/${EXTEN}@remote-sip2,5 &lt;</FONT><A href="mailto:SIP/${EXTEN}@remote-sip2,5"><FONT face="Courier New" size=2>SIP/${EXTEN}@remote-sip2,5</FONT></A><FONT face="Courier New" size=2>&gt; )<BR>&gt;&nbsp;<BR>&gt; the problem is we can not select what timeout represents, timeout on ACK from INVITE would be perfect I think (1 second for example), timeout for answer ? this is to hard to predict, some mobile phone can ring for 30 seconds, etc.<BR><BR>So why not use 30 and let Asterisk take care of the SIP details/<BR>timeouts?<BR><BR>And just to be sure: Don't put those "mailto" things in<BR>extensions.conf.&nbsp; :-)<BR><BR><BR>&nbsp;&nbsp; Philipp Kempgen<BR><BR>--<BR></FONT><A href="http://www.das-asterisk-buch.de/"><FONT face="Courier New" size=2>http://www.das-asterisk-buch.de</FONT></A><FONT face="Courier New" size=2>&nbsp; -&nbsp; </FONT><A href="http://www.the-asterisk-book.com/"><FONT face="Courier New" size=2>http://www.the-asterisk-book.com</FONT></A><BR><FONT face="Courier New" size=2>Amooma GmbH - Bachstr. 126 - 56566 Neuwied&nbsp; -&gt;&nbsp; </FONT><A href="http://www.amooma.de/"><FONT face="Courier New" size=2>http://www.amooma.de</FONT></A><BR><FONT face="Courier New" size=2>Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998<BR>--<BR><BR>_______________________________________________<BR>-- Bandwidth and Colocation Provided by </FONT><A href="http://www.api-digital.com/"><FONT face="Courier New" size=2>http://www.api-digital.com</FONT></A><FONT face="Courier New" size=2> --<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR>&nbsp;&nbsp; </FONT><A href="http://lists.digium.com/mailman/listinfo/asterisk-users"><FONT face="Courier New" size=2>http://lists.digium.com/mailman/listinfo/asterisk-users</FONT></A><BR></P></DIV></BODY></HTML>