[Asterisk-Users] how to ask for number to dial and then dial it?
Robert La Ferla
robertlaferla at comcast.net
Sun Jul 2 12:42:25 MST 2006
I want to create an extension say "8000" that prompts the user to
enter a number and then dial that entered number according to a set
of rules. The rules for dialing out are in different context (dial-
out-rules).
[mymenu]
exten => 8000,1,Answer()
????
[dial-out-rules]
; toll-free numbers out pots line
exten => _1800XXXXXXX,1,Dial(${ANALOG_POTS}/${EXTEN})
exten => _1800XXXXXXX,n,Hangup()
; long-distance out voip line
exten => _NXXXXXXXXX,1,Dial(SIP/${EXTEN}@myprovider.com,30)
exten => _NXXXXXXXXX,n,Hangup()
etc...
How do I do it?
More information about the asterisk-users
mailing list