<div dir="ltr">All right Matt,<div>thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-03 5:37 GMT-03:00 Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Oct 1, 2014 at 8:00 AM, Gabriel Ortiz Lour<br>
<<a href="mailto:ortiz.admin@gmail.com">ortiz.admin@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
>   A question on channel originating (call files and AMI Originate):<br>
><br>
>   How can I change the CALLERID(num) var (because of the E1 provider needs),<br>
> but having another númber (the original one) stored on the "clid" CDR field<br>
> on the database?<br>
<br>
</span>You can't. The clid CDR field cannot be modified from the dialplan,<br>
and is always set to the caller ID of the channel. If you change the<br>
caller ID on the channel, you can expect the CDR clid field to reflect<br>
that.<br>
<br>
That being said, if you are using a flexible backend (such as<br>
cdr_custom or cdr_adaptive_odbc), you can add a custom column to your<br>
CDR records - such as 'clid_original' - and use the CDR function to<br>
set that value prior to changing the caller ID:<br>
<br>
exten => Set(CDR(clid_original)=${CALLERID(num)})<br>
exten => Set(CALLERID(num)=6575309)<br>
<br>
Matt<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Matthew Jordan<br>
Digium, Inc. | Engineering Manager<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></font></span></blockquote></div><br></div>