<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><div>Jean-Denis Girard</div>

<div> </div>

<div>I have not used the Incomplete yet, but you might be able to do something like this.</div>

<div> </div>

<div>[earlydial]</div>

<div> </div>

<div>exten => _.,1,Set(l_Extension = ${EXTEN})</div>

<div>exten => _.,n,Goto(${l_Extension},1)</div>

<div>exten => _.,n,Goto(noMatch,1)</div>

<div> </div>

<div>exten => i,1,Goto(noMatch,1)</div>

<div> </div>

<div>exten => noMatch,1, Incomplete(n)</div>

<div> </div>

<div>exten => _1XX,1,Verbose(2, Dialed ${EXTEN})<br />
      same => n,Playback(extension)<br />
      same => n,SayDigits(${EXTEN})<br />
      same => n,Hangup()</div>

<div> </div>

<div> </div>

<div>I wrote this in this message and have not tested this so use with caution. There may be syntactical issues, but the concept might work for you.</div>

<div> </div>

<div>Bryant</div>

<div> </div>

<hr align="center" size="2" width="100%" />
<div><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><b>From</b>: "Jean-Denis Girard" <jd.girard@sysnux.pf><br />
<b>Sent</b>: Thursday, February 18, 2016 8:02 PM<br />
<b>To</b>: asterisk-users@lists.digium.com<br />
<b>Subject</b>: Re: [asterisk-users] Grandstream Early Dial</span>

<div> </div>
-----BEGIN PGP SIGNED MESSAGE-----<br />
Hash: SHA1<br />
<br />
Le 18/02/2016 11:03, Richard Mudgett a écrit :<br />
> I've been using Grandstream phones for more than 10 years, but onl<br />
y<br />
> yesterday tried to use Early Dial... and I failed. What is needed<br />
on the<br />
> Asterisk side to reply 484 to INVITE? Phones are talking to chan_p<br />
jsip<br />
> on Asterisk-13.7.1.<br />
><br />
><br />
> Look into the Incomplete application.<br />
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Inc<br />
omplete<br />
<br />
Thanks for prompt answer Richard.<br />
<br />
Actually I had already tried the Incomplete application, but failed to<br />
add the "n" option, and this seems mandatory for SIP. I find the help<br />
text misleading : "NOTE: Most channel types need to be in Answer state<br />
in order to receive DTMF".<br />
<br />
This is my test dialplan:<br />
<br />
[earlydial] ; Test Early Dial<br />
exten => 1,1,Verbose(2,Incomplete 1 test)<br />
same => n,Incomplete(n)<br />
<br />
exten => _1X,1,Verbose(2,Incomplete 1X test)<br />
same => n,Incomplete(n)<br />
<br />
exten => _1XX,1,Verbose(2, Dialed ${EXTEN})<br />
same => n,Playback(extension)<br />
same => n,SayDigits(${EXTEN})<br />
same => n,Hangup()<br />
<br />
It works, but seems a bit complicated: is this the correct way to use<br />
Incomplete ?<br />
<br />
<br />
Thanks,<br />
- --<br />
Jean-Denis Girard<br />
<br />
SysNux Systèmes Linux en Polynésie française<br />
http://www.sysnux.pf/ Tél: +689 40.50.10.40 / GSM: +689 87.79.75.27<br />
-----BEGIN PGP SIGNATURE-----<br />
<br />
iEYEARECAAYFAlbGaY0ACgkQuu7Rv+oOo/iJswCgsmebZoRMk8308e1iFhZy+2nt<br />
zS0AnRmvXEbbKaktKLlI8IFqo1xcWVy1<br />
=g2Jy<br />
-----END PGP SIGNATURE-----<br />
<br />
--<br />
_____________________________________________________________________<br />
-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br />
New to Asterisk? Join us for a live introductory webinar every Thurs:<br />
http://www.asterisk.org/hello<br />
<br />
asterisk-users mailing list<br />
To UNSUBSCRIBE or update options visit:<br />
http://lists.digium.com/mailman/listinfo/asterisk-users<br />
 </div></span>