Note: Please make sure you have contacted FaktorTel and requested the ability to set CallerID on your account.
SIP Connections: The best way to set CallerID on a SIP connection is to use the P-ASSERTED-IDENTITY and PRIVACY flags in your SIP headers.exten => _X.,n,SIPAddHeader(P-Asserted-Identity: <sip:${CALLERID(num)}@YOUR_IP>)
exten => _X.,n,SIPAddHeader(Privacy:off)
The " ${CALLERID(num))@YOUR_IP " is replaced with something like: 0755123456@202.32.44.55
with the part before the " @ " being the number you want to send as CallerID.
E.g.
exten => _X.,n,SIPAddHeader(P-Asserted-Identity: <sip:0755123456@202.32.44.55>)
exten => _X.,n,SIPAddHeader(Privacy:off)
The second header is: Privacy:off
Changing this to: Privacy:id
Privacy:off will allow the callerID to be sent through.
[general]
sendrpid=yes ; For Asterisk 1.8 you need sendrpid=pai
trustrpid=yes
IAX Connections:
IAX connections can use the standard Asterisk CallerID command to change the CallerID.exten => _X.,1,Set(CALLERID(num)=0755123456)
Doing this will set the CallerID to 0755123456
If you want to set the callerID to Private simply erase it by doing:
exten => _X.,1,Set(CALLERID(num)=)