Hi,
Can anyone help me with the script from Lonnie 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    
 
In the prefs I have
Number Format:  ^[0-9]{2,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 =>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
 
[Blacklist-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

Best Regards 
Nedi

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
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].

Reply via email to