[asterisk-users] IP Address on CDR

Stefan Schmidt sst at sil.at
Sun Oct 19 13:40:07 CDT 2008


Nhadie schrieb:
> Hi Sir,
> 
> basically I need the public IP, of the user who registered to my 
> asterisk and made call. users IP address might changed anytime, but need 
> to record the IP during each call so i can be able to trace it.
> 
> Regards
> Nhadie

Hello,


we use the following:

exten => _X.,n,Set(CDR(UserField)=${SIP_HEADER(CONTACT)})

in the contact field you will see a sip adress like
<sip:1234567 at 123.123.123.123:5060> which is exactly what you need.

best regards.

Steve Smith



More information about the asterisk-users mailing list