Set External CID But Retain Internal Extension In CDR…

Home » Asterisk Users » Set External CID But Retain Internal Extension In CDR…
Asterisk Users 9 Comments

    Usually phone companies set the outgoing CallerID for you but recently we got control over that and are now setting the outgoing Calleir ID ourselves.  My problem now is that the CDR will put the outgoing CID in the CDR instead of the extension that dialed and that causes problems for reports.  What is the proper way to set outgoing CID
and keeping the original extension number in the CDR?


Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez
+52 (55)8116-9161

9 thoughts on - Set External CID But Retain Internal Extension In CDR…

  • Surely the CDR field “clid” is your Caller ID, whereas the CDR field “src” is the originating extension?

    Antony.

  • Another thought – if that doesn’t automatically work for you (probably depends on your dialplan / Asterisk setup), then how about setting:
    CDR(accountcode)=${CALLERID(number)}
    in your dialplan sometime before you set the outbound Caller ID to whatever your PSTN number is?

    Then you have the internal extension number in accountcode and the external CallerID in clid.

    Antony.

  • the extension name but also the external number.


    Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez
    +52 (55)8116-9161

  • administrative groups and the software the company uses to make reports uses the src field to determine who made the call.


    Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez
    +52 (55)8116-9161

  •     Like I mentioned, the problem really lies in that the software used for call reports is coded to the “src” field.  Than is why I need src to hace the extension number.


    Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez
    +52 (55)8116-9161

  • extension number before changing the outgoing callerid.  With this src will remain as the extension number.


    Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez
    +52 (55)8116-9161

  • Set(CALLERID(ani)=${CALLERID(num)})


    Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez
    +52 (55)8116-9161

  • Aha, thank you 🙂

    Now I understand why our systems do this by default – as per my first reply to you (I thought that src should contain the extension and clid the external number) – I just didn’t realise there was a line in the dialplan responsible for ensuring this.

    I keep learning something new every day.

    Antony.