Jean
If you moved the exten => _. Lines to the bottom of the context then you
should like be able to get away from having to have two separate contexts. I use
that method quiet often, but was in a hurry to get you a response and did not
think remember that nuance.
I will have to try this as we are a heavy grandstream shop. It has been
something on the list.
Thanks
Bryant Zimmerman (ZK Tech Inc.)
616-855-1030 Ext. 2003
----------------------------------------
From: "Jean-Denis Girard" <jd.girard at sysnux.pf>
Sent: Friday, February 19, 2016 11:53 AM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Grandstream Early Dial
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Bryant,
Thanks for your reply.
It didn't work immediately, I had to create a second context, or else it
was looping between the second and first line. This seems to work:
[earlydial] ; Test Early Dial
exten => _.,1,Set(l_Extension=${EXTEN})
exten => _.,n,Goto(earlydial2,${l_Extension},1)
[earlydial2]
exten => _.,n,Goto(noMatch,1)
exten => noMatch,1, Incomplete(n)
exten => i,1,Goto(noMatch,1)
exten => t,1,Goto(noMatch,1)
exten => _1XX,1,Verbose(2, Dialed ${EXTEN})
same => n,Playback(extension)
same => n,SayDigits(${EXTEN})
same => n,Hangup()
Best regards,
- --
Jean-Denis Girard
SysNux Syst?mes Linux en Polyn?sie fran?aise
http://www.sysnux.pf/ T?l: +689 40.50.10.40 / GSM: +689 87.79.75.27
Le 19/02/2016 03:31, Bryant Zimmerman a ?crit :> Jean-Denis Girard
>
> I have not used the Incomplete yet, but you might be able to do
> something like this.
>
> [earlydial]
>
> exten => _.,1,Set(l_Extension = ${EXTEN})
> exten => _.,n,Goto(${l_Extension},1)
> exten => _.,n,Goto(noMatch,1)
>
> exten => i,1,Goto(noMatch,1)
>
> exten => noMatch,1, Incomplete(n)
>
> exten => _1XX,1,Verbose(2, Dialed ${EXTEN})
> same => n,Playback(extension)
> same => n,SayDigits(${EXTEN})
> same => n,Hangup()
>
>
> 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 f
or> you.
>
> Bryant
>
> ----------------------------------------------------------------------
- --> *From*: "Jean-Denis Girard" <jd.girard at sysnux.pf>
> *Sent*: Thursday, February 18, 2016 8:02 PM
> *To*: asterisk-users at lists.digium.com
> *Subject*: Re: [asterisk-users] Grandstream Early Dial
>
> Le 18/02/2016 11:03, Richard Mudgett a ?crit :
>> I've been using Grandstream phones for more than 10 years, but onl
> y
>> yesterday tried to use Early Dial... and I failed. What is needed
> on the
>> Asterisk side to reply 484 to INVITE? Phones are talking to chan_p
> jsip
>> on Asterisk-13.7.1.
>
>
>> Look into the Incomplete application.
>> https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_In
c> omplete
>
> Thanks for prompt answer Richard.
>
> Actually I had already tried the Incomplete application, but failed to
> add the "n" option, and this seems mandatory for SIP. I find the
help
> text misleading : "NOTE: Most channel types need to be in Answer state
> in order to receive DTMF".
>
> This is my test dialplan:
>
> [earlydial] ; Test Early Dial
> exten => 1,1,Verbose(2,Incomplete 1 test)
> same => n,Incomplete(n)
>
> exten => _1X,1,Verbose(2,Incomplete 1X test)
> same => n,Incomplete(n)
>
> exten => _1XX,1,Verbose(2, Dialed ${EXTEN})
> same => n,Playback(extension)
> same => n,SayDigits(${EXTEN})
> same => n,Hangup()
>
> It works, but seems a bit complicated: is this the correct way to use
> Incomplete ?
>
>
> Thanks,
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAlbHSGkACgkQuu7Rv+oOo/gZxACfbdgJl2eKFmO+D8R8MbsayKFm
QkEAoK9JXYXS1XMyMcEKSt+FbzP1Ic1v
=hMTP
-----END PGP SIGNATURE-----
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20160219/f5bfc6e4/attachment.html>