[asterisk-users] followme scenarios

ronald ramos ronramos1004 at yahoo.com
Thu Apr 24 20:57:03 CDT 2008


Hi All,

I'm tryng to test different scenarios for followme for different users:

[localext]
exten => 101,1,Set(FM = "ALWAYS");
exten => 101,n,Macro(dial-ext|SIP/${EXTEN}|vm-10000|moh-101|fm-101);
exten => 101,n,Hangup
exten => 102,1,Set(FM = "NEVER");
exten => 102,n,Macro(dial-ext|SIP/${EXTEN}|vm-10000|moh-102|fm-102);
exten => 102,n,Hangup
exten => 103,1,Set(FM = "WHENBUSY");
exten => 103,n,Macro(dial-ext|SIP/${EXTEN}|vm-10000|moh-103|fm-103);
exten => 103,n,Hangup
exten => 104,1,Set(FM = "WHENUNAVAILABLE");
exten => 104,n,Macro(dial-ext|SIP/${EXTEN}|vm-10000|moh-103|fm-103);
exten => 104,n,Hangup
exten => 105,1,Set(FM = "CUSTOM");
exten => 105,n,Macro(dial-ext|SIP/${EXTEN}|vm-10000|moh-103|fm-103);
exten => 105,n,Hangup

[macro-dial-ext]
exten => s,1,SetMusicOnHold(${ARG3})
exten => s,n,Dial(${ARG1},5,M(setmusiconhold,${ARG3}))
exten => s,n,GotoIf(FM = "NEVER"|?vm)
exten => s,n,GotoIf(FM = "CUSTOM"|?s-CUSTOM,1)
exten => s,n,GotoIf(FM = "WHENUNAVAILABLE"|?s-CHANUNAVAIL)
exten => s,n,GotoIf(FM = "WHENBUSY"|?s-BUSY)
exten => s-CHANUNAVAIL,1,Followme(${ARG4})
exten => s-BUSY,1,Followme(${ARG4})
exten => s-CUSTOM,1,GotoIftime(17:00-19:00|*|*|*?c-CUSTOM,n)
exten => s-CUSTOM,n,Followme(${ARG4})
exten => s,n,Followme(${ARG4})
exten => s,n(vm),Voicemail(${MACRO_EXTEN}@${ARG2}|u)
exten => s,n,Playback(vm-goodbye)
exten => s,n,Hangup


but it just keeps on going to this line
exten => s,n,GotoIf(FM = "NEVER"|?vm)

ami using GotoIf correctly? or am i referring to the FM variable properly? and is there easier way of doing this? TIA

regards
Ron

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080424/50fbd2e3/attachment.htm 


More information about the asterisk-users mailing list