Hi Sir,

Tried it but it seems like it's saving the private IP.

CDR(UserField)=<sip:[EMAIL PROTECTED]: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:[EMAIL PROTECTED]: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
> 

_______________________________________________
-- 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

Reply via email to