<br><br><div><span class="gmail_quote">2008/4/25, Johansson Olle E &lt;<a href="mailto:oej@edvina.net">oej@edvina.net</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> 25 apr 2008 kl. 17.30 skrev Andreas Brodmann:<br> <br><br> &gt; 2008/4/25, Johansson Olle E &lt;<a href="mailto:oej@edvina.net">oej@edvina.net</a>&gt;:<br> &gt; 25 apr 2008 kl. 16.44 skrev Andreas Brodmann:<br> &gt;<br>
 &gt;<br> &gt; &gt; 2008/4/25, Kevin P. Fleming &lt;<a href="mailto:kpfleming@digium.com">kpfleming@digium.com</a>&gt;: Andreas Brodmann<br> &gt; &gt; wrote:<br> &gt; &gt; &gt; After chasing a problem I looked at the SIP code (1.4.19)<br>
 &gt; &gt; &gt; with a colleague and as far as we understood it, overlapped<br> &gt; &gt; &gt; dialing on sip trunks for outgoing calls is not supported (yet?).<br> &gt; &gt;<br> &gt; &gt;<br> &gt;<br> &gt; &gt; in sip.conf you can set &#39;allowoverlap=yes&#39;<br>
 &gt; &gt;<br> &gt; &gt; If a phone is configured accordingly (early dial) it will send an<br> &gt; &gt; INVITE request<br> &gt; &gt; for each key a user presses. e.g. 1@asterisk, 11@asterisk and then<br> &gt; &gt; 111@asterisk.<br>
 &gt; &gt; For each incomplete INVITE asterisk will return 484 &quot;Number<br> &gt; &gt; incomplete&quot; until the<br> &gt; &gt; client sends a number which is complete (e.g. matches a pattern).<br> &gt; &gt;<br> &gt; &gt; This works fine until a client tries to call a number that asterisk<br>
 &gt; &gt; reaches via a sip trunk to<br> &gt; &gt; another pbx (or carrier), whereas the length of the number is<br> &gt; unknown:<br> &gt; &gt; // e.g. International Calls<br> &gt; &gt; e.g. exten =&gt; 000!,1,Dial(SIP/${EXTEN:1}@carrier,120)<br>
 &gt; &gt;<br> &gt; &gt; in this case, asterisk will send an INVITE to the carrier after the<br> &gt; &gt; first 3 zeros. The answer<br> &gt; &gt; from the carrier will be 484 (number incomplete). Instead of<br> &gt; &gt; forwarding this response to the<br>
 &gt; &gt; phone asterisk will end the call -&gt; congestion.<br> &gt; &gt;<br> &gt;<br> &gt; That&#39;s another issue. Outbound overlap dialling is something that is<br> &gt; propably not implemented.<br> &gt; That will require a lot of coding I think, but other developers might<br>
 &gt; understand overlap dialling<br> &gt; *through* asterisk better.<br> &gt;<br> &gt; For PRI, I believe we put the call in UP state and then simply forward<br> &gt; dtmf...<br> &gt;<br> &gt; Olle<br> &gt;<br> &gt; this would mean that either you use PRIs to your carrier or you cannot<br>
 &gt; use overlapped dialing with sip in asterisk at all, because you cannot<br> &gt; have the phones use overlap and the sip trunk to the carrier not use<br> &gt; overlap, right?<br> &gt;<br> &gt; -&gt; global on or global off<br>
 <br> <br>I will have to clarify documentation here, because as I said, I hadn&#39;t<br> thought of it from your perspective.<br> We do support overlap on incoming calls, but not on outbound. My<br> question, since this is the developer<br>
 list, is how to implement this on the PBX to chan_sip interface - how<br> would I know when to go into<br> overlap mode on SIP. Or actually, if the sip trunk provider sent me a<br> 484 - what would I return to the PBX<br>
 to request more digits?</blockquote><div><br>The goal is that if the sip trunk provider sends you a 484, the phone<br>which initiated the call will also receive a 484, so it knows it is on<br>the right track but the number is incomplete.<br>
<br>How to get there. I am not as familiar with asterisk&#39;s core as you are.<br>Normally phone A initiates a call/channel to asterisk. Asterisk will<br>initiate a call to another end point or to anything via a sip trunk. Once<br>
the 2nd call setup is complete the calls/channels are bridged, right?<br><br>What if once asterisk receives the command to initiate a call it does so,<br>and when receiving a 484 it tells the other side anything like 484 (you&#39;re<br>
on the right way but you are missing figures) and drops its newly initiated<br>call. This continues until asterisk receives a 200 from the sip trunk.<br><br>Possible like that?<br><br>-Andreas<br><br></div><br></div><br>