Support
>
Asterisk / Trixbox
    Asterisk / Trixbox
    Setting CallerID in Asterisk
    Configuring Asterisk
    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 flags 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)=)

    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
Copyright © 2012 FaktorTel | Phone: 1300 731 625 | International: +61 7 3118 9598