[asterisk-users] CDR IP Authorization

Joshua Colp jcolp at digium.com
Fri Jul 28 04:02:31 MST 2006


----- Original Message -----
From: Khaled Chehab
[mailto:kchehab at xplorium.com]
To: 'Asterisk Users Mailing List -
Non-Commercial Discussion' [mailto:asterisk-users at lists.digium.com]
Cc:
asterisk-users-bounces at lists.digium.com
Sent: Fri, 28 Jul 2006 06:34:05
-0300
Subject: [asterisk-users] CDR IP Authorization


> Dear 
> 
> This function retrieves the ip address of the caller ,I want to import the
> value of  (recvip) in the mysql cdr ,how can I do that 
> 
>  exten => s,1,NoOp(${SIPCHANINFO(recvip)})

The only place that you could put this to have it stored in the record would be the user field. Here's an example for storing it there:

exten => s,1,Set(CDR(userfield)=${SIPCHANINFO(recvip)})

> 
> Regards 
> 

Joshua Colp
Digium



More information about the asterisk-users mailing list