Callerid Overwrite

Home » Asterisk Users » Callerid Overwrite
Asterisk Users 5 Comments

Hi all, I’m having issues with overwrite caller id, when I call someone my caller id should be “mycompanyinc” but instead my id shows up as my extension number 101.

this is what i have in sip.conf
[101]
type=friend context=sipphones call-limit

5 thoughts on - Callerid Overwrite

  • This is how we have it and it works fine on Asterisk 1.8:
    Set(CALLERID(number)=insert your number here)

  • You’re setting CALLERID(num) to a name. Use CALLERID(name) instead. Additionally, you might want to set CALLERID(num) to your DID.

    You can do both name and number at the same time by using CALLERID(all), something like this:

    exten => _91NXXNXXXXXX,1,Set(CALLERID(all)=”mycompanyinc”<123-456-7890>)

  • Thank you for your reply, I updated extensions.conf file to reflect your suggestion, I will monitor Asterisk for any more issues,

    Thanks,

  • look like the issue continues, I am unable to overwrite callerid from sip.conf in extensions.conf,

    In sip.conf under
    [general]
    trustrpid = no < should i change it to yes? Thanks

  • Howdy,

    Before changing any configuration I would highly recommend reading through the entry in the sample file. Trust remote party ID may be set to ‘no’ for a very good reason on your PBX, please take care to understand why it should be changed before doing so.

    Before digging into that though, what does the CLI tell you if you do a NoOp() after having Set() the Caller ID function [1]?

    [1] Something like;

    exten => _9NXXXXXX,1,Set(CALLERID(name)=mycompanyinc)
    same => n,NoOp(The caller ID has been set to ${CALLERID(name)})
    same => n,Dial(SIP/att/${EXTEN:1},80)

    Hope this helps.

    Justin Hester Digium, Inc.