[asterisk-users] Set external CID but retain internal extension in CDR...

Carlos Chavez cursor at telecomab.mx
Thu Feb 22 14:43:02 CST 2018


On 2/22/18 2:05 PM, Antony Stone wrote:

> On Thursday 22 February 2018 at 20:07:47, Antony Stone wrote:
>
>> On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote:
>>>       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?
>> Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src"
>> is the originating extension?
> 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.
>
Unfortunately I use the accountcode field to put phones in different 
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




More information about the asterisk-users mailing list