[Asterisk-Users] dialplan woes

defiance defiance at stratitec.com
Tue Aug 17 15:49:29 MST 2004


Thanks a million man that works beautifully, and thanks for giving me an
example, I am still pretty new at this so that helped alot.

chris

On Tue, 2004-08-17 at 17:31, William Glynn wrote:
> > 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.
> _______________________________________________
> 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
> 



More information about the asterisk-users mailing list