[asterisk-users] cdr_mysql custom fields ?

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri May 1 10:10:41 CDT 2009


On Friday 01 May 2009 01:26:25 Kev Szaszvari wrote:
> I am using the cdr_mysql addon –  I have set userfield = 1  and if i set a
> Variable “Userfield” it gets to the database. Everything there is working
> as expected.
>
> My Query is... If i set a custom Variable EG
>
>  exten => s,n,Set(CDR(mycustomvar)=12345)
>
> and create a column in my table called “mycustomvar” it does  not update
> the field.
>
> I am not sure if this is the intended functionality for this  function, But
> is there any way at all to have custom variables updating in the  MySQL
> database as we want to add some custom fields that get updated with the 
> CDR.
>
> We are running Asterisk 1.4.21.1

That behavior is a new feature starting in the recently released 1.6.1.0.  It
is not available at all in 1.4, unless you use the cdr_adaptive_odbc backport.

-- 
Tilghman



More information about the asterisk-users mailing list