Extensions.conf Menu/IVR and transfering to an extension

Here’s what I’m trying to accomplish:

Press 1 to transfer to extension
Press 2 for Directory
Press 0 for Operator

Got directory and operator working. My problem is with transfering to an extension after pressing 1. Asterisk keeps adding the 1 to the extension that I need to transfer to (extension 500 would be 1500 to asterisk rathern than 500). I’ve tried ${EXTEN}, ${EXTEN:1},2,3,4 etc…No luck.

This is what I have currently:

include => extensions

exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
exten => s,3,Set(TIMEOUT(digit)=5)
exten => s,4,Set(TIMEOUT(response)=10)
exten => s,5,Background(danner) ; Play Welcome to companyname greeting
exten => i,1,Playback(invalid)
exten => i,2,GoTo(MainMenu,s,1)

; Dial an extension
exten => 1,1,Dial(SIP/${EXTEN:1})

; Go to the sales department
exten => 2,1,Directory(extensions) ;

; Leave; a voicemail for the operator
exten => 0,1,Dial(${P100}&${P103},30,t) ;

Can anybody be of any assistance?


I accomplished this with the following line:

exten => _1.,1,Dial(SIP/${EXTEN:1})

Thanks Erik!