HideCallerID on Outgoing Calls


I want to either with-hold my callerid number or set it to one of my choosing when making outgoing calls.

Outgoing calls are made through the zap channel. In zapata.conf I have tried setting “hidecallerid=yes”. This results in the PRI’s main DDI number being displayed. I have also tried in zapata.conf setting “hidecallerid-no” then in extensions.conf I set callerid to the number I want displayed. Again the PRI’s main DDI number is displayed.

Can anyone point out what I’m doing wrong, here?

The content of zapata.conf is as follows:

language = en
context = incoming
signalling = pri_cpe
pridialplan = unknown
prilocaldialplan = unknown
callerid = asreceived
usecallerid = yes
hidecallerid = no
usecallingpres = yes
switchtype = euroisdn
echocancel = yes
echocancelwhenbridged = yes
rxgain = 0
txgain = 0
musiconhold = default
callwaiting = yes
transfer = yes
cancallforward = yes
callreturn = yes
overlapdial = yes
pulsedial = yes
nationalprefix = 0
internationalprefix = 00
group = 1
channel => 1-15,17-31
channel => 32-46,48-62

And my extensions.conf outbound dial is:

exten => s,1,Set(CALLERID(num)=01215063743)
exten => s,n,Dial(ZAP/g1/${MACRO_EXTEN})
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?97)
exten => s,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?99)
exten => s,97,Playback(telephone-number)
exten => s,98,Playback(is-curntly-busy)
exten => s,99,Playback(telephone-number)
exten => s,100,Playback(is-curntly-unavail)
exten => s,101,Hangup()

Thanks in advance.

My guess is that your provider is setting the caller id for you. Maybe try contacting them and see if they can switch that off.

That’s what I had to do in order to get my callerid blocked. Call your provider and they will be able to turn it off for you.