Carlos Chavez
2018-Mar-29 02:16 UTC
[asterisk-users] Setting outgoing CALLERID without changing CDR(src)
??? 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
Daniel Tryba
2018-Mar-29 09:34 UTC
[asterisk-users] Setting outgoing CALLERID without changing CDR(src)
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.