<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 19, 2013 at 9:02 AM, Olivier <span dir="ltr"><<a href="mailto:oza_4h07@yahoo.fr" target="_blank">oza_4h07@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br><br></div><div>Asterisk 11 doc says CDR(src) value is read-only (see <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CDR" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CDR</a>).<br>
<br></div><div>For various reasons, I would appreciate to change its value so that it my own presentation rules instead of telco rules.<br></div><div>Very often, I'm connected to telcos through DAHDI (and ISDN).<br></div>
<div>For instance, telco presents calls with 123456789 while I would prefer a normalized +34123456789.<br></div><div><br></div><div>Whenever I change CallerID presentation, the updated value persists in CDR(callerid) which matches my needs.<br>
Unfortunately, for CDR(dst), I'm still looking for an appropriate function or application.<br><br></div><div>Looking at Asterisk doc, I saw NoCDR and ForkCDR apps but couldn't link those to what I'm after.<br>
<br></div><div>How can I (re-)set CDR(src) value ?<br><br></div></div></blockquote><div><br></div><div style>You can't. It is a read-only property.</div><div style><br></div><div style>If you want a custom value - "my-src" or something like that - you can add a new value to your CDR record by using the CDR function, i.e., Set(CDR(my-src)=+34123456789). Certain CDR backends - such as cdr_custom or cdr_adpative_odbc - have the ability to store custom values.</div>
<div style><br></div><div style>Matt </div></div><div><br></div>-- <br><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div>
<div>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></div></div>
</div></div>