[Asterisk-Users] GotoIf sample...

anderson at skyweb.co.ke anderson at skyweb.co.ke
Mon Sep 5 08:22:42 MST 2005


exten => 1111,1,GotoIf($["${CALLERIDNUM}" = "2000"]?3)
exten => 1111,2,GotoIf($["${CALLERIDNUM}" = "2001"]?4:5)
exten => 1111,3,WaitExten(10)
exten => 1111,4,WaitMusicOnHold(60)
exten => 1111,5,Hangup()

If the caller ID of the caller is 2000 then run WaitExten(10)
if it's not 2000 and it's 2001 put the person on hold, if it's neither
Hangup.

Hope that helps.




On Mon Sep 05, 2005 at 03:19:20AM -0700, ryan nalupa wrote:
> hi everyone. can anyone provide me concrete examples on how to use the GotoIf application? can't figure out how to use it in my dialplan coz im having errors....thanks! : )
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> --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



More information about the asterisk-users mailing list