Hi
how can I use the snipet from Lonie in my extensions conf for folowme
blacklist and whitelist
my extensions.conf for extensions 11 look so:
exten =>11,1,Dial(SIP/11,25,r)
exten =>11,n,Answer
exten =>11,n,Playback(vm-nobodyavail)
exten =>11,n,Voicemail(11)
exten =>11,n,Hangup
what to change to use astlinux tabs for make folowme and black-white list for
that extension 11
[macro-local-followme]
exten => s,1,GotoIf($[${DB_EXISTS(followme/${ARG1})}=0]?nofollow)
exten => s,n,GotoIf($[${DB_RESULT:0:1}=0]?nofollow:follow)
exten => s,n(follow),Dial(SIP/${ARG1},20)
exten => s,n,Followme(${ARG1},san)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s,n(nofollow),Dial(SIP/${ARG1},20)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(${ARG1},u) ; If unavailable, send to voicemail
exten => s-BUSY,1,Voicemail(${ARG1},b) ; If busy, send to voicemail w/ busy ann
exten => _s-.,1,Goto(s-NOANSWER,1)
;blacklist snippet
exten => s,100,GotoIf($[${DB_EXISTS(blacklist/${CALLERID(num)})} = 0]?200) ;
blacklist test
exten => s,n,GotoIf($["${DB_RESULT}" = "0"]?110)
exten => s,n,GotoIf($["${DB_RESULT}" = "2"]?120)
exten => s,n,Goto(blacklist,s,1) ; "1" TN in blacklist database, answer and
Zapateller
exten => s,110,Goto(blacklist,no-answer,1) ; "0" TN in blacklist, don't answer
exten => s,120,Goto(voicemail-ivr,s,1) ; "2" TN in blacklist, direct to
voicemail
exten => s,200,NoOp(Valid TN:${CALLERID(num)})
;whitelist snippet
exten => s,100,GotoIf($[${DB_EXISTS(whitelist/${CALLERID(num)})} = 0]?200) ;
whitelist test
exten => s,n,GotoIf($["${DB_RESULT}" = "0"]?110)
exten => s,n,GotoIf($["${DB_RESULT}" = "2"]?120)
exten => s,n,GotoIf($["${DB_RESULT}" = "3"]?130)
exten => s,n,GotoIf($["${DB_RESULT}" = "4"]?140)
exten => s,n,Goto(whitelist,s,1) ; "1" TN in whitelist database, Priority
exten => s,110,Goto(voicemail-ivr,s,1) ; "0" TN in whitelist, direct to
voicemail
exten => s,120,Goto(whitelist,standard,1) ; "2" TN in whitelist, Standard
exten => s,130,Goto(whitelist,followme,1) ; "3" TN in whitelist, Follow Me
exten => s,140,Goto(whitelist,ivr,1) ; "4" TN in whitelist, IVR
exten => s,200,NoOp(Valid TN:${CALLERID(num)})
regards nedi
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].