You are on page 1of 2

Setting CallerID in Asterisk

http://www.faktortel.com.au/support/asterisk/caller_id.php

VoIP

ACCOUNT LOGIN:

USER ID:

PASSWORD:

LOGIN

Support

>

Asterisk / Trixbox

SUPPORT FREQUENTLY ASKED QUESTIONS NETWORK STATUS OUR INFRASTRUCTURE COMMUNITY FEEDBACK If you are unable to nd an answer to any of your questions here, please let us know by providing us with a little feedback so that we may be in a position to assist yourself, our valued customer, and others in the future. We greatly appreciate it. Thank-you!

ASTERISK / TRIXBOX SETTING CALLERID IN ASTERISK Conguring Asterisk

Search Support and FAQ...

< - GO BACK

Setting CallerID in Asterisk can be done in two way with FaktorTel. The following two methods are the most common way to set it. 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 ags in your SIP headers. This can be done easily by inserting the following code in your extensions.conf before dialling a number:

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

Will set the call to PRIVATE when sent to the PSTN, and changing it to Privacy:off will allow the callerID to be sent through. You will also have to make a change to SIP .CONF and add the following two settings under the [general] section: SIP.CONF [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. The CallerID will then be sent to FaktorTel and passed to the PSTN. The following is how this can be implemented in Asterisk:

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)=)

1 of 2

02/09/2012 03:28 PM

Setting CallerID in Asterisk

http://www.faktortel.com.au/support/asterisk/caller_id.php

Finally, when setting CallerID please make sure that you use the Australian 10 digit number format ( 0NSN ) E.g 0755123456 or the E164 Format 61755123456. These are the only two ways to set CallerID. Invalid CallerID's will be automatically set to Private by FaktorTel and usually by the terminating carrier as well. CLICK HERE - TOP OF PAGE

Terms and Conditions

Our Policies

Sitemap

Feedback

Copyright 2012 FaktorTel

Phone: 1300 731 625

International: +61 7 3118 9598

2 of 2

02/09/2012 03:28 PM

You might also like