Hi, How can i log the IP address of the caller on asterisk mysql cdr? Regards, Nhadie
Maybe you can use ${SIP_HEADER(FROM)}. Regards, Juan On Sat, Oct 18, 2008 at 10:31 PM, Nhadie <nhadie at gmail.com> wrote:> Hi, > > How can i log the IP address of the caller on asterisk mysql cdr? > > Regards, > Nhadie > > _______________________________________________ > -- 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 >-- Juan E. Rodr?guez Cel. 829-886-5565 Work: 809-724-9227 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081019/a99a47ed/attachment.htm
Define "IP address of the caller?" From header, Contact, literal IP source of request...? Nhadie wrote:> Hi, > > How can i log the IP address of the caller on asterisk mysql cdr? > > Regards, > Nhadie > > _______________________________________________ > -- 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-- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (706) 338-8599
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 Alex Balashov wrote:> Define "IP address of the caller?" > > From header, Contact, literal IP source of request...? > > Nhadie wrote: > >> Hi, >> >> How can i log the IP address of the caller on asterisk mysql cdr? >> >> Regards, >> Nhadie >> >> _______________________________________________ >> -- 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 > >
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 > NhadieHello, 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