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

2018-03-29 Thread Daniel Tryba
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.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2018-03-28 Thread Carlos Chavez
    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


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users