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
You could do this:
[mymenu]
exten = 8000,1,Answer()
exten = 8000,n,GoTo(dial-out-rules,s,1)
[dial-out-rules]
; you'll have to record a prompt, or find an appropriate one in the distribution
exten = s,1,Playback(dial_number_after_the_beep)
exten = s,n,Playback(beep)
exten = s,n,WaitExten(5)
;
Robert La Ferla wrote:
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).
[some-context]
exten =