[asterisk-users] peer IP address in CDR

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Tue Jun 29 10:20:01 CDT 2010


Hi!

> Do you already have script to capture user's IP address? If not, check
> it here how I am capturing it:
>
> http://www.ilovetovoip.com/2010/05/getting-users-ip-address-remaining-
> within-the-dialplan

Or simply use one fo these:

  ${SIPCHANINFO(peerip)}
  ${SIPCHANINFO(recvip)}
  ${SIPCHANINFO(uri)}

More details with "show function SIPCHANINFO" on the CLI.

But: Anyone has an idea how to store the codec(s) that were employed for
the call in the CDR (or access it during hangup in the dialplan)?

The Wiki has a suggested patch to enhance SIPCHANINFO, but I wonder if 
there is a cleaner and built-in way to do it:
http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sipchaninfo

Philipp




More information about the asterisk-users mailing list