Re: [asterisk-users] Capture Media IP in CDR (CDR)

2013-10-14 Thread Gareth Blades
On 13/10/13 20:06, CDR wrote: I am quite surprised about the degree of surprise in the group. A few days ago, somebody called a school and issued a threat, through my network. The call came from China, but of course it was US caller. The DA wants to know where call came from. The caller ID is

Re: [asterisk-users] Capture Media IP in CDR (CDR)

2013-10-14 Thread Matthew Jordan
On Sun, Oct 13, 2013 at 2:06 PM, CDR vene...@gmail.com wrote: snip I need Digium to store this IP in the CDR. I will be honest with the government and let them know that my tool is incapable of saving lives or safeguarding our national security because nobody thought about this. PD: I am

Re: [asterisk-users] Capture Media IP in CDR (CDR)

2013-10-14 Thread Mitul Limbani
Nailed it to the point Matt +1 on.this entire philosophy of open source. Mitul On Oct 14, 2013 7:19 PM, Matthew Jordan mjor...@digium.com wrote: On Sun, Oct 13, 2013 at 2:06 PM, CDR vene...@gmail.com wrote: snip I need Digium to store this IP in the CDR. I will be honest with the

Re: [asterisk-users] Capture Media IP in CDR (CDR)

2013-10-14 Thread Rodrigo Montiel
+1000 to Matt point. Many many talented developers who can assist in customizing your needs. On Mon, 2013-10-14 at 19:55 +0530, Mitul Limbani wrote: Nailed it to the point Matt +1 on.this entire philosophy of open source. Mitul On Oct 14, 2013 7:19 PM, Matthew Jordan

[asterisk-users] Capture Media IP in CDR

2013-10-14 Thread CDR
Right now,there is no way know to capture the Media IP. The channel variable does not know about it. It requires adding anew variable to CHANNEL(), and also it entails to force every channel to update that variable. New channels like PJSIP do not even update the known variables like

Re: [asterisk-users] Capture Media IP in CDR

2013-10-14 Thread Johan Wilfer
2013-10-14 20:05, CDR skrev: Right now,there is no way know to capture the Media IP. I've seen serval suggestions for you on the list. I suggest you go back and read them again. Gareth Blades even handed you a solution to get sip-traces with all the signaling. That's a good solution. (I

Re: [asterisk-users] Capture Media IP in CDR

2013-10-13 Thread Andres
On 10/11/2013 10:05 PM, CDR wrote: I am not proxying the media, but never the less I am forced to store the source media IP in my CDR, for regulatory reasons. Asterisk gets that information when the reinvite comes, but how do I store it? If I don't figure this out my next email will be from

[asterisk-users] Capture Media IP in CDR (CDR)

2013-10-13 Thread CDR
I am quite surprised about the degree of surprise in the group. A few days ago, somebody called a school and issued a threat, through my network. The call came from China, but of course it was US caller. The DA wants to know where call came from. The caller ID is Restricted and the chinese carrier

Re: [asterisk-users] Capture Media IP in CDR (CDR)

2013-10-13 Thread jg
I doubt that a media IP would really help, because there are proxies out there. If you need this kind of monitoring, then there are probably better ways to take care of this and they are independent of Asterisk. What you could do is to tap any traffic in the background, e.g. with tcpdump using

Re: [asterisk-users] Capture Media IP in CDR (CDR)

2013-10-13 Thread Tiago Geada
Hi, I also doubt that the IP would do any good, anyway you store whatever you want in your cdr, just Set(CDR(something)=${SIP_HEADER(Contact)}); and then have the field something in your cdr storage On 13 October 2013 21:25, jg webaccou...@jgoettgens.de wrote: I doubt that a media IP would

Re: [asterisk-users] Capture Media IP in CDR (CDR)

2013-10-13 Thread Paul Belanger
On 13-10-13 03:06 PM, CDR wrote: I am quite surprised about the degree of surprise in the group. A few days ago, somebody called a school and issued a threat, through my network. The call came from China, but of course it was US caller. The DA wants to know where call came from. The caller ID is

Re: [asterisk-users] Capture Media IP in CDR

2013-10-12 Thread Asghar Mohammad
hi, you have not mentioned which cdr backend you are using. peer ip is saved in variable CHANNEL(peerip). if you are using mysql for cdr backend you can create a field in cdr table (field name can b any of your choice) in dialplan assign the value of CHANNEL(peerip) to you ip field and asterisk

Re: [asterisk-users] Capture Media IP in CDR

2013-10-12 Thread CDR
The CHANNEL() function has no idea about the media IP, and also SIP_HEADER(), since the media IP is not known until the call has been established and a reinvite has been received and dispatched. I am using of course, directmedia=yes and directrtpsetup=yes. Hence my question to the group. --

Re: [asterisk-users] Capture Media IP in CDR

2013-10-12 Thread Matthew Jordan
On Sat, Oct 12, 2013 at 2:19 PM, CDR vene...@gmail.com wrote: The CHANNEL() function has no idea about the media IP, and also SIP_HEADER(), since the media IP is not known until the call has been established and a reinvite has been received and dispatched. I am using of course,

[asterisk-users] Capture Media IP in CDR

2013-10-11 Thread CDR
I am not proxying the media, but never the less I am forced to store the source media IP in my CDR, for regulatory reasons. Asterisk gets that information when the reinvite comes, but how do I store it? If I don't figure this out my next email will be from Federal Prison. Kindly help me stay away

Re: [asterisk-users] Capture Media IP in CDR

2013-10-11 Thread Warren Selby
On Fri, Oct 11, 2013 at 9:05 PM, CDR vene...@gmail.com wrote: I am not proxying the media, but never the less I am forced to store the source media IP in my CDR, for regulatory reasons. Asterisk gets that information when the reinvite comes, but how do I store it? If I don't figure this out