Re: [asterisk-users] How to log caller IP address in the CDR?

2014-07-14 Thread Rafael
can you please tell me exactly which file to edit please. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs:

Re: [asterisk-users] How to log caller IP address in the CDR?

2014-07-14 Thread Rafael dos Santos Saraiva
Hi Set(CDR(userfield)=${SIPPEER(${CALLERID(num),ip)}) If caller is SIP peer. Att, *Rafael dos Santos Saraiva* http://br.linkedin.com/pub/rafael-saraiva/52/aab/230 2014-07-14 14:10 GMT-03:00 Rafael rrich...@gmail.com: can you please tell me exactly which file to edit please. --

[asterisk-users] How to log caller IP address in the CDR?

2012-10-05 Thread Benoit Panizzon
Hello We had this situation: Some bot-net did try to guess SIP logins and finally succeeded. The Asterisk Server was abused to call a large number of expensive destinations. It is clear that the sip logins have been passed to various persons (probably posted on a forum somewhere inviting to

Re: [asterisk-users] How to log caller IP address in the CDR?

2012-10-05 Thread Joshua Colp
Benoit Panizzon wrote: Hello Hola, snipped out parts, check archives for those who are curious Well for this case it is too late now. But is there a way to get the IP Address of the SIP Client being logged in each CDR? You can access the IP address of the received signaling traffic

Re: [asterisk-users] How to log caller IP address in the CDR?

2012-10-05 Thread Patrick Lists
On 10/05/2012 02:10 PM, Benoit Panizzon wrote: Hello We had this situation: Some bot-net did try to guess SIP logins and finally succeeded. The Asterisk Server was abused to call a large number of expensive destinations. I'm sorry to hear that. In the Asterisk source there is a doc that

Re: [asterisk-users] How to log caller IP address in the CDR?

2012-10-05 Thread Ishfaq Malik
On Fri, 2012-10-05 at 14:10 +0200, Benoit Panizzon wrote: Hello We had this situation: Some bot-net did try to guess SIP logins and finally succeeded. The Asterisk Server was abused to call a large number of expensive destinations. It is clear that the sip logins have been passed to

Re: [asterisk-users] How to log caller IP address in the CDR?

2012-10-05 Thread Alex Oniciuc
Ishfaq is right, that's the way to go. Here's a dialplan line to help you achieve that: exten = YOUREXTEN_CHANGE_ME,PRIORITY_CHANGE_ME,Set(CDR(UserField)=SIP HEADER CONTACT: ${SIP_HEADER(CONTACT)}, SIPURI: ${SIPURI}, SIP PEER IP: ${SIPCHANINFO(peerip)}, SIP RECEIVED IP: ${SIPCHANINFO(recvip)},

Re: [asterisk-users] How to log caller IP address in the CDR?

2012-10-05 Thread Benoit Panizzon
Hi Joshua and all others who replied. exten = _X.,1,Set(CDR(userfield)=${CHANNEL(recvip)}) Thank you, that did it. It's an asterisk 1.6.2.9 actualy. Are additional CDR fields like CDR(recvip) only possible from some newer release or do they have to be defined somewhere? Well sure I now have

Re: [asterisk-users] How to log caller IP address in the CDR?

2012-10-05 Thread Joshua Colp
Benoit Panizzon wrote: Hi Joshua and all others who replied. Hola, exten = _X.,1,Set(CDR(userfield)=${CHANNEL(recvip)}) Thank you, that did it. Glad to hear it! It's an asterisk 1.6.2.9 actualy. Are additional CDR fields like CDR(recvip) only possible from some newer release or do