|
that anonymous caller id test script is pretty slick ... I
spend way too much time every day fielding calls from some clown trying to sell
me some "free trade journal" subscription ... have a routine setup to
filter them off into a torture maze ... but your way of testing is much better
than what I am doing ... I am especially impressed with the "try to fool
it test" ... I never thought of that ... consider it stolen ... my own
system will get this one later this week ...
G.Hendershot
From: Lonnie Abelbeck [mailto:[EMAIL PROTECTED] Sent: Monday, October 16, 2006 6:49 PM To: [EMAIL PROTECTED]; Discussion of AstLinux - Asterisk on Compact Flash Subject: Re: [Astlinux-users] call forwarding Astlinux On Oct 16, 2006, at 4:33 PM, Gary G. Hendershot wrote: I understand that callerid is now called and set using the format "Set(ACCOUNTCODE=${CALLERID(number)})" and "Set(ACCOUNTNAME=${CALLERID(name)})" ... that one I did catch on to and have edited my configs to use the new format Yes, set Caller*ID example...
exten => s,n,Set(CALLERID(num)=${WORK_CIDNUM})
exten => s,n,Set(CALLERID(name)=${WORK_CIDNAME})
and get Caller*ID and store in the asterisk database example...
exten => s,n,Set(DB(lastcaller/num)=${CALLERID(num)})
exten => s,n,Set(DB(lastcaller/name)=${CALLERID(name)})
With that in mind using the ",n," numbering scheme helps alot, allowing
coping and pasting without worrying about renumbering priorities (and making an
error). Also, I like to group sections with goto's.
Lonnie
PS: My snippet submission, test for an anonymous inbound call, ask for a
valid number,and then process the valid call (edited for clarity... maybe there
is a useful tip/trick for others.)
------
exten => s,100,GotoIf($[${LEN(${CALLERID(num)})} < 10]?190) ; Test for Anonymous
call
exten => s,n,GotoIf($["${CALLERID(num):0:7}" = "Unknown"]?190)
exten => s,n,GotoIf($["${CALLERID(num):0:10}" = "Restricted"]?190)
exten => s,n,GotoIf($["${CALLERID(num):3:1}" < "0"]?190)
exten => s,n,GotoIf($["${CALLERID(num):3:1}" > "9"]?190)
exten => s,n,Goto(200)
exten => s,190,Goto(anonymous-ivr,s,1) ; Anonymous call
exten => s,200,NoOp(process valid call) ; handle valid, un-answered
inbound call, ring phones
------
[macro-ring-anonymous]
exten => s,1,NoOp(CallPres:${CALLINGPRES})
exten => s,n,SetCallerPres(allowed)
exten => s,n,NoOp(process valid call) ; handle valid, answered inbound
call, ring phones
[macro-ignore-extra-keys]
exten => s,1,Wait(0.2) ; ignore any extra DTMF keys
exten => s,n,Playback(${ARG1})
exten => s,n,Wait(0.4)
[anonymous-ivr]
exten => s,1,Ringing
exten => s,n,Wait(1.1)
exten => s,n,Answer
exten => s,n,Wait(0.9)
exten => s,n,Goto(10)
exten => s,10,NoOp(CIDNum:${CALLERID(num)}) ; No Answer entry
exten => s,n,Playback(privacy-unident)
exten => s,n,Wait(0.4)
exten => s,n,Set(I=0)
exten => s,n,Goto(20)
exten => s,20,Set(TIMEOUT(digit)=10)
exten => s,n,Set(I=$[${I} + 1])
exten => s,n,GotoIf($[$[${I}] > 3]?100) ; Three strikes, your out
exten => s,n,Background(privacy-prompt)
exten => s,n,Background(silence/10)
exten => s,n,Background(silence/10)
exten => s,n,Background(silence/10)
exten => s,n,Goto(100)
exten => s,100,Playback(vm-goodbye)
exten => s,n,Hangup
exten => _NXXNXXXXXX,1,Macro(ignore-extra-keys,privacy-thankyou)
exten => _NXXNXXXXXX,n,Macro(ring-anonymous,${EXTEN})
exten => _1NXXNXXXXXX,1,Macro(ignore-extra-keys,privacy-thankyou)
exten => _1NXXNXXXXXX,n,Macro(ring-anonymous,${EXTEN:1})
exten => _NXX5551212,1,Goto(s,100) ; Try to fool it, your out
exten => _1NXX5551212,1,Goto(s,100)
exten => 2222222222,1,Goto(s,100)
exten => 3333333333,1,Goto(s,100)
exten => 4444444444,1,Goto(s,100)
exten => 5555555555,1,Goto(s,100)
exten => 6666666666,1,Goto(s,100)
exten => 7777777777,1,Goto(s,100)
exten => 8888888888,1,Goto(s,100)
exten => 9999999999,1,Goto(s,100)
exten => i,1,Macro(ignore-extra-keys,vm-sorry)
exten => i,n,Goto(s,20)
exten => #,1,Goto(s,100)
exten => t,1,Hangup
exten => h,1,Hangup
|
_______________________________________________ Astlinux-users mailing list [email protected] http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
