Hi,
how to use those macro's in my case
how to use those macro's in my case
I have my incomming calls going to internal 10.
I would like to Check all calls if those are on the blacklist
I would like to forward incomming calls sometime to antoher internal extensions or external my mobile number.
On Extensions 12 I would like to check if on White list if not on White list the call musst be forwardet to extensions 13
I would like to Check all calls if those are on the blacklist
I would like to forward incomming calls sometime to antoher internal extensions or external my mobile number.
On Extensions 12 I would like to check if on White list if not on White list the call musst be forwardet to extensions 13
In the prefs I have
Number Format: ^[0-9]{2,16}$
CID Name Max Length: 16
CID Name Max Length: 16
I have this in my extensions.conf , lockup.agi script make reverese lockup for the caller ID.
exten =>10,hint,SIP/10
exten =>10,1,Set(CHANNEL(language)=de)
exten =>10,n,AGI(lookup.agi, ${CALLERID(num)})
exten =>10,n,Set(CALLERID(name)=${LONGNAME})
exten =>10,n,Macro(local-followme,${EXTEN})
exten =>10,n,System(/mnt/kd/email_in.sh "${CALLERID(name)}" "${CALLERID(num)}")
exten =>10,n,Dial(SIP/10&SIP/12&SIP/17&SIP/18,35,tTwWxXr)
;exten =>10,n,Dial(SIP/10&SIP/12&SIP/0325100000@0325200000,35,tTwWxXr)
exten =>10,n,system(/mnt/kd/sms_077.sh "${CALLERID(name)}" "${CALLERID(num)}")
exten =>10,n,Playback(vm-nobodyavail)
exten =>10,n,Voicemail(10)
exten =>10,n,Hangup
exten =>10,1,Set(CHANNEL(language)=de)
exten =>10,n,AGI(lookup.agi, ${CALLERID(num)})
exten =>10,n,Set(CALLERID(name)=${LONGNAME})
exten =>10,n,Macro(local-followme,${EXTEN})
exten =>10,n,System(/mnt/kd/email_in.sh "${CALLERID(name)}" "${CALLERID(num)}")
exten =>10,n,Dial(SIP/10&SIP/12&SIP/17&SIP/18,35,tTwWxXr)
;exten =>10,n,Dial(SIP/10&SIP/12&SIP/0325100000@0325200000,35,tTwWxXr)
exten =>10,n,system(/mnt/kd/sms_077.sh "${CALLERID(name)}" "${CALLERID(num)}")
exten =>10,n,Playback(vm-nobodyavail)
exten =>10,n,Voicemail(10)
exten =>10,n,Hangup
exten =>12,hint,SIP/12
exten =>12,1,Dial(SIP/12,35,tTwWxXr)
exten =>12,n,Answer
exten =>12,n,Playback(vm-nobodyavail)
exten =>12,n,Voicemail(12)
exten =>12,n,Hangup
[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-Zap]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Zapateller
exten => s,4,Zapateller
exten => s,5,Playback(ss-noservice)
exten => s,6,Hangup
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Zapateller
exten => s,4,Zapateller
exten => s,5,Playback(ss-noservice)
exten => s,6,Hangup
[Blacklist-Hangup]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Hangup
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Hangup
[Blacklist-VM]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Voicemail(11,u)
exten => s,4,Hangup
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Voicemail(11,u)
exten => s,4,Hangup
Regards
Nedi
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.