Set callerid

Hi,

i am rly new to freepbx. Everything works fine but i got a problem with the callerid.

my Provider sent me this

[sipout]
exten => _X.,1,Set(CALLERID(number)=SIPID)
exten => _X.,n,SipAddHeader(P-Preferred-Identity: sip:[email protected])
exten => _X.,n,Dial(SIP/${EXTEN}@sipgate-out,30,trg)
exten => _X.,n,Hangup

I am not able to use this in my freepbx setup.

Incoming Routes => Que => Calls external Agents

so my Agents are not able to see the callerid.

If you have Caller ID activated and still don’t get Caller ID, look at the ZAP configuration file. Typically you may have to look at zapata.conf and/or zapata-auto.conf. You may need to set the following switches in your zapata.conf and zapata-auto.conf:

zapata.conf
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
usecallerid=yes
hidecallerid=no
relaxdtmf=yes

zapata-auto.conf
The following switches may need to be added to the existing ones.
useincommingcalleridonzaptransfer=yes
adsi=yes
sendcalleridafter=2 ;you may need to add this switch

After the above are done, restart PiaF: amportal restart