[asterisk-users] Asterisk 1.6 and PrivacyManager with SIP

Jaap Winius jwinius at umrk.nl
Mon Aug 2 19:40:44 CDT 2010


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



More information about the asterisk-users mailing list