Enforcing restrictcid on outgoing Zap

Hi!

I recently upgraded to the latest Asterisk version 1.2.9.1.
Unfortuneately I cannot restrict CIDs on outgoing zaptel calls.
All clients connect via SIP or IAX2 to place calls on the zaptel lines. We’re using a Digium Wildcard TE110P.
There used to be no issue with eralier versions of Asterisk 1.x.
Simply hat to set restrictcid=yes within sip.conf and things did as they should.

Is there perhaps even a way to properly enforce restricted CIDs on all outgoing calls placed on the zaptel interface?

Any help appreciated

my zapata.conf

[code][channels]
language=de
context=incoming
switchtype=euroisdn
pridialplan=local
pritrustusercid = yes
overlapdial=yes
signalling=pri_cpe
usecallerid=yes
;-------------------------
hidecallerid=no
restrictcid=yes
;-------------------------
usecallingpres=yes
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
rxgain=0.0
txgain=0.0
immediate=no
useincomingcalleridonzaptransfer=yes
amaflags=billing
busydetect=no
callprogress=no
musiconhold=default
callgroup=1
pickupgroup=1

context=incoming
group=1
callerid=asreceived
channel => 1-15,17-31
[/code]

we are using TE210P, but it should be the same…
did you already try to SetCallerPres(prohib) before the dial command?

exten => _0X.,1,SetCallerPres(prohib)
exten => _0X.,n,Dial(${ZAPOUT}/${EXTEN})
exten => _0X.,n,Macro(dial-result)

In our config (connected to german E1 trunks) this works.
Robert

Thank you for responding so fast :smiley:

In fact I did - tried prohib und unavailable parameter both didn’t help.

Would you perhaps post your zapata.conf just so that I can check-up on my settings. Perhaps I missed something. :wink:

i have a very “small” zapata.conf
most default parms work for us.

;; /etc/asterisk/zapata.conf
[channels]
relaxdtmf=no
; #### DUAL SPAN DIALPLAN TE205P
switchtype=euroisdn
pridialplan=local
prilocaldialplan=local
internationalprefix=00
nationalprefix=0
usecallingpres=yes
busydetect=no ; not needed on pri
callprogress=no ; was yes but wiki says experimatley could be produce hangups
callwaitingcallerid=yes ; show callerid on callwaitingcalls
echotraining=no
echocancel=no
echocancelwhenbridged=no
overlapdial=yes
immediate=no
callerid=asreceived
language=de
rxgain=0.0
txgain=0.0

group=1
signalling=pri_cpe
context=pri1
channel => 1-15,17-31

group=2
signalling=pri_cpe
context=pri2
channel =>32-46,48-62
;; end of file

did you also set any Callerid?
we had the problem on german E1 trunks that
our default callerid has been sent when no callerid has been set
even when prohib flag was set.

Robert

Cheers to you Robert! :smiley:

Setting the CallerID to something before setting the CallPres did the trick! Great Job.

Thank you very much!

You’re welcome!
Believe me, I also nearly went crazy about that issue :wink:
Have a nice day,
Robert