[Asterisk-Users] PrivacyManager & CallerID not passing

Patrick asterisk at puzzled.xs4all.nl
Mon Jan 9 16:16:44 MST 2006


On Mon, 2006-01-09 at 16:52 +0100, Patrick wrote:
> Hi all,
> 
> Please see the dialplan snippet below. Any hint why it does not pass the
> correctly entered 10 digit number as calleridnum on to the SIP phone?
> The SIP phone always shows "Unknown".
> 
> exten => s,1,PrivacyManager(1,10)
> exten => s,n,GotoIf($["${PRIVACYMGRSTATUS}" =
> "SUCCESS"]?privok:privfailed)
> exten => s,n(privok),NoOp(CallerIDnum: ${CALLERIDNUM})
> exten => s,n,Dial(SIP/9000,20)
> exten => s,n,Voicemail(u9000)
> exten => s,n(privfailed),Hangup()

For future reference, the solution is to add
SetCallerPress(allowed_not_screened) before dialing the phone (many
thanks to Corydon-w for the tip). Correct snippet:

exten => s,1,PrivacyManager(1,10)
exten => s,n,GotoIf($["${PRIVACYMGRSTATUS}" =
"SUCCESS"]?privok:privfailed)
exten => s,n(privok),NoOp(CallerIDnum: ${CALLERIDNUM})
exten => s,n,SetCallerPres(allowed_not_screened)
exten => s,n,Dial(SIP/9000,20)
exten => s,n,Voicemail(u9000)
exten => s,n(privfailed),Hangup()

Regards,
Patrick



More information about the asterisk-users mailing list