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

Benoit Panizzon benoit.panizzon at imp.ch
Fri Oct 5 09:36:02 CDT 2012


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 set:

alwaysauthreject=yes

And got a script to scan the logfile all 15min to firewall IP addresses which 
excessively try to login.

You're always smarter after the incident :-/

Benoit Panizzon



More information about the asterisk-users mailing list