Dialplan Question

Hello All,

I have a problem with my dial plan. For example, my extensions are declared in users.conf as CONTEXT + EXTEN, Ex: LHFN100, but if I want to dial this extension, are this statements correct: Dial(IAX2/$[${CONTEXT} + ${EXTEN}]) and VoiceMail(CONTEXT+EXTEN,su)?

users.conf:

[LHFN100]
fullname = Luis Felice
email = luish.felice@gmail.com
secret = 1234
dahdichan = 0
hasvoicemail = yes
vmsecret = 1234
hassip = no
hasiax = yes
hash323 = no
hasmanager = no
callwaiting = no
context = LHFN

extensions.conf

[general]
static=no
writeprotect=no
priorityjumping=no
autofallthrough=yes
clearglobalvars=no

[globals]

[incoming]

exten => _02129421980,1,Goto(LHFN,100,1)

[LHFN]

exten => 100,1,Background(intro,LHFN)
exten => 100,n,WaitExten(100,m(default))
exten => 100,n,Hangup()
exten => 1XX,1,Dial(IAX2/$[${CONTEXT} + ${EXTEN}])
exten => 1XX,n,GotoIf($["${DIALSTATUS}" = “CHANUNAVAIL”]?lbl_LHFN_0:)
exten => 1XX,n,GotoIf($["${DIALSTATUS}" = “CONGESTION”]?lbl_LHFN_0:)
exten => 1XX,n,GotoIf($["${DIALSTATUS}" = “NOANSWER”]?lbl_LHFN_0:)
exten => 1XX,n,GotoIf($["${DIALSTATUS}" = “BUSY”]?lbl_LHFN_0:)
exten => 1XX,n(lbl_LHFN_0),VoiceMail(CONTEXT+EXTEN,su)
exten => 1XX,n,GotoIf($["${VMSTATUS}" = “USEREXIT”]?lbl_LHFN_1:)
exten => 1XX,n(lbl_LHFN_1),Hangup()

Thanks in advance.

Luis Felice

Hi,

No, if you declare something in users.conf as:

LHFN100

Then you will have to dial like:

exten => LHFN100,1,Dial(SIP/LHFN100)

which will be difficult if you’re planning on using the keypad for dialing.

Cheers.