Rehan Ahmed
2005-Dec-07 19:32 UTC
[Asterisk-Users] HOW TO: CDR Customer IP address where call came in from
HI Does any one know how to record the IP address of the call that is coming in on the asterisk. I dont see the ip in the Master.csv but you can view the IP when the call comes in on the CLI Window. I am guessing there must be a command or a way to record this ip in your CDR using AGI, we are using agi to make our own CDR but i would apreciate if some one can tell how to record the IP address of the caller. -- Rehan Ahmed AllahWala http://www.SuperTec.com - Tommrow's Technology, Today. http://www.didx.net - DID Number Exchange and Peering Service. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051207/019b3cb5/attachment.htm
Simone Cittadini
2005-Dec-08 01:01 UTC
[Asterisk-Users] HOW TO: CDR Customer IP address where call came in from
Rehan Ahmed ha scritto:> > I dont see the ip in the Master.csv but you can view the IP when the > call comes in on the CLI Window.> > I am guessing there must be a command or a way to record this ip in > your CDR using AGI, we are using agi to make our own CDR but i would > apreciate if some one can tell how to > record the IP address of the caller. >If you install the iaxusers/sipusers mysql backend (which everyone seems to call "realtime") the ip will be stored in a 'ipaddr' column. You can put a select in some agi to retrieve the IP of the peer.