How to rewrite CID name + number?

Home » Asterisk Users » How to rewrite CID name + number?
Asterisk Users 5 Comments


I use the Linksys 3102 to connect Asterisk to a POTS line, and XLite
on XP as an SIP client:

The problem is that by default, Asterisk doesn’t rewrite the CID name
+ number in incoming calls, so that XLite displays whatever name I
used in the 3102 and the extension the 3102 uses to register with

How can I tell Asterisk to rewrite the CID name + number so that XLite
displays the actual caller’s information instead?

Since the 3102 does display the real caller information in its Voice >
Info page, I assume Asterisk is getting this information and could
rewrite the CID information before ringing XLite, but I don’t know how
to do this.

Thank you.

5 thoughts on - How to rewrite CID name + number?

  • Here how I changed my information calling an xlite client from a polycom
    Sipuser = xlite
    144 = polycom
    Exten => 145,1,set(CALLERID(num)=5551212)
    Exten => 145,n,set(CALLERID(name)=JOES POOL HALL)
    Exten => 145,n,Dial(SIP/sipuser,20,m)

  • On Mon, 6 Dec 2010 10:15:34 -0600, “Danny Nicholas”

    Thanks Danny, but what I need, is to get the real caller ID as sent by
    the telco and available in the Linksys. By default, Asterisk send the
    Linksys name and extension instead of the original caller ID.

    I’m using 1.4.4, but don’t see anything displayed while in the console
    and calling into the 3102:

    exten => 6011,1,NoOp(${CALLERID(all)})
    exten => 6011,n,Dial(SIP/6011)

    Any idea why Asterisk shows nothing, and how to retrieve the original
    CID information?

    Thank you.

  • On Mon, 06 Dec 2010 20:03:03 +0100, Gilles

    Sorry about that, I forgot that the console had to be started in
    verbose mode for NoOp() to display data:


  • On Mon, 6 Dec 2010 13:39:33 -0600, “Danny Nicholas”

    Thanks Danny, and sorry for the trouble: I was paying so much
    attention to the wealth of locale/regional settings in the Linksys…
    that I didn’t think about checking the default sip.conf:


    Commenting out the “callerid=6013” line and reloading Asterisk did the
    trick 🙂

    Thanks again.