[asterisk-users] IP Address on CDR
Nhadie
nhadie at gmail.com
Sun Oct 19 13:59:26 CDT 2008
Hi Sir,
Tried it but it seems like it's saving the private IP.
CDR(UserField)=<sip:100111 at 192.168.1.102:5064>
what am i doing wrong?
TIA
Nhadie
Stefan Schmidt wrote:
> 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
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list