Jaap Winius
2010-Aug-03 00:40 UTC
[asterisk-users] Asterisk 1.6 and PrivacyManager with SIP
Hi all, My latest Asterisk system is based on Debian squeeze with Asterisk 1.6.2.6-1 and SIP only. One of my favorite features that I had working with Asterisk 1.4 is the PrivacyManager. However, this was not straightforward, because anonymous SIP calls arrive with ${CALLERID(num)} = "anonymous", instead of being blank. So, to get it to work I added the first three rules to the following: exten => jaap,1,GotoIf($[${CALLERID(num)}=anonymous]?true:false) exten => jaap,n(true),Set(CALLERID(num)="") exten => jaap,n(false),NoOp() exten => jaap,n,PrivacyManager() exten => jaap,n,GotoIf($["${PRIVACYMGRSTATUS}"="FAILED"]?bad) exten => jaap,n,Dial(SIP/1000,20,w) exten => jaap,n,Hangup() exten => jaap,n(bad),Playback(im-sorry) exten => jaap,n,Playback(vm-goodbye) exten => jaap,n,Hangup() Unfortunately, this no longer seems to work with Asterisk 1.6: the second rule is still executed, but for some reason the PrivacyManager always decides that the caller ID is present anyway. Should I be doing this differently now, or is something else wrong? Thanks, Jaap
Warren Selby
2010-Aug-03 01:10 UTC
[asterisk-users] Asterisk 1.6 and PrivacyManager with SIP
Try removing the quotes in your n(true) priority. Thanks, --Warren Selby On Aug 2, 2010, at 7:40 PM, Jaap Winius <jwinius at umrk.nl> wrote:> Hi all, > > My latest Asterisk system is based on Debian squeeze with Asterisk > 1.6.2.6-1 and SIP only. One of my favorite features that I had working > with Asterisk 1.4 is the PrivacyManager. However, this was not > straightforward, because anonymous SIP calls arrive with > ${CALLERID(num)} = "anonymous", instead of being blank. So, to get it > to work I added the first three rules to the following: > > exten => jaap,1,GotoIf($[${CALLERID(num)}=anonymous]?true:false) > exten => jaap,n(true),Set(CALLERID(num)="") > exten => jaap,n(false),NoOp() > exten => jaap,n,PrivacyManager() > exten => jaap,n,GotoIf($["${PRIVACYMGRSTATUS}"="FAILED"]?bad) > exten => jaap,n,Dial(SIP/1000,20,w) > exten => jaap,n,Hangup() > exten => jaap,n(bad),Playback(im-sorry) > exten => jaap,n,Playback(vm-goodbye) > exten => jaap,n,Hangup() > > Unfortunately, this no longer seems to work with Asterisk 1.6: the > second rule is still executed, but for some reason the PrivacyManager > always decides that the caller ID is present anyway. > > Should I be doing this differently now, or is something else wrong? > > Thanks, > > Jaap > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users