Grandstream Early Dial

Home » Asterisk Users » Grandstream Early Dial
Asterisk Users 6 Comments

Hi list,

I’ve been using Grandstream phones for more than 10 years, but only 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_pjsip on Asterisk-13.7.1.

Thanks,
– —
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
—–BEGIN PGP SIGNATURE—–

iEYEARECAAYFAlbGLL8ACgkQuu7Rv+oOo/g55ACeON0aeNt9TFGw5lcUb1FhN7rH
XqAAn2HRmx65LRP4hFUsCOvlAoV7/y8R
=4iVe
—–END PGP SIGNATURE—–

6 thoughts on - Grandstream Early Dial

  • 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 for you.

    Bryant

    ————————————–

  • 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

    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

    ————————————–