[Asterisk-Users] dialplan woes
William Glynn
wglynn at freedomhealthcare.org
Tue Aug 17 15:31:47 MST 2004
> CONTEXTS....
>
> [main context]
> --------Dial 1 for support
> | Dial 2 for special
> | Dial 3 sales
> | Dial 5 For sales
> [support context]
> ; don't include main context
> |______________________________submenu
> Dial 1 for product a support
> Dial 2 for pdoduct b support
> Dial 3 for product c support
> [special context[
> [sales context]
> [and so on.]
To elaborate, try something like this:
[mainmenu]
exten => s,1,Background(greeting)
; ...
; Do your closed/holiday logic here, whatever
; Dialing 1-3 takes you to different contexts which have their own logic
exten => 1,Goto(support,s,1)
exten => 2,Goto(special,s,1)
exten => 3,Goto(sales,s,1)
[support]
exten => s,1,Background(product-support)
; Jump to [support-a] context which might give them a new menu
exten => 1,Goto(support-a,s,1)
; Only one guy knows product B, so send to his phone
exten => 2,Dial(SIP/1234)
...
--Will Glynn
Freedom Healthcare Group, Inc.
More information about the asterisk-users
mailing list