[Asterisk-Users] Menu/IVR and transfering to an extension after pressing an option number.

Erik Versaevel - InfoPact Netwerkdiensten erik at infopact.nl
Tue Oct 18 22:03:44 MST 2005


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

That would match anything entered starting with a 1 and dial it without the first digit.


Jeremy Koski wrote:
> 
> 
> 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:
> 
> [MainMenu]
> 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?
> 
> Thanks.
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
InfoPact Netwerkdiensten B.V.
http://www.infopact.nl/

Emmastraat 11-13
3255 BD Oude Tonge
tel. +31 (0)187 64 77 11
mob. +31 (0)645 18 69 67
fax. +31 (0)187 64 77 99




More information about the asterisk-users mailing list