Setting Outgoing CALLERID Without Changing CDR(src)

Home » Asterisk Users » Setting Outgoing CALLERID Without Changing CDR(src)
Asterisk Users 1 Comment

    I thought I had found and answer to this question by using CALLERID(ani) but it seems that only works on versions prior to 12.  On Asterisk 13 setting CALLERID(num) before dialing to an external trunk always changes CDR(src) to the number you set and the original extension number that dialed is lost.  How are you handling this?  Am I forced to use a custom field to keep the original caller number?  My billing software uses the src field to get the extension that dialed the call. 
Any tips?


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

One thought on - Setting Outgoing CALLERID Without Changing CDR(src)

  • What does your external trunk use as sources for callerID? For example if your provider supports PAI and sets this headers as callerID, your problem is solved. Otherwise you could for example use the custom csv output and set a custom CDR field (that stores the original src) in the place of src.