[OpenSIPS-Users] Storing an extra variable using Radius and CDRTool

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Aug 6 17:40:28 CEST 2014


Hi Nick,

You can grab that info and push into OpenSIPS accounting, not sure how 
it works further with CDRtool.

What you need to do is:
* in onreply_route extract the "c" like and put it in a pvar like $var(my_c)
* put that $var() in the db_extra .

Note the variable must be a $var() !

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 01.08.2014 07:26, Nick Cameo wrote:
> Hello Everyone,
>
> We would like to store the c= in our freeradius and CDRTool.
> The issue is, the variable is in the on_reply block and the
> accounting is done in the main route...
>
> There are variables such as  `User-Agent` that magically get
> populated somehow. Can someone please let me know how
> we can do the same for an additional variable?
>
>
> The field is already included in the query,table,plsql script
> etc...
>
> Kind Regards,
>
> Nick.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list