[asterisk-users] Setting outgoing CALLERID without changing CDR(src)

Daniel Tryba daniel at tryba.nl
Thu Mar 29 04:34:27 CDT 2018

On Wed, Mar 28, 2018 at 08:16:26PM -0600, Carlos Chavez wrote:
> ?????? 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?

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.

More information about the asterisk-users mailing list