<div dir="ltr">hi,<div>you have not mentioned which cdr backend you are using.</div><div>peer ip is saved in variable CHANNEL(peerip).</div><div>if you are using mysql for cdr backend you can create a field in cdr table (field name can b any of your choice)</div>
<div>in dialplan assign the value of CHANNEL(peerip) to you ip field and asterisk will fill ip field.</div><div>if you name ip feild "Peer_ip" you can use this example.</div><div><br></div><div>same,n,Set(CDR(Peer_ip)=${CHANNEL(peerip)})</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 12, 2013 at 4:05 AM, CDR <span dir="ltr"><<a href="mailto:venefax@gmail.com" target="_blank">venefax@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am not proxying the media, but never the less I am forced to store<br>
the source media IP in my CDR, for regulatory reasons. Asterisk gets<br>
that information when the reinvite comes, but how do I store it?<br>
If I don't figure this out my next email will be from Federal Prison.<br>
Kindly help me stay away from those guys. Eventually we all need to<br>
save that information or we shall not be able to stay in business.<br>
<span class="HOEnZb"><font color="#888888"><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><br>
</font></span></blockquote></div><br></div>