[asterisk-users] Setting custom field in CDR

Mike list at virtutel.ca
Thu Dec 6 10:39:12 CST 2007


Thanks for the quick and precise response.

Mick 

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Atis Lezdins
> Sent: Thursday, December 06, 2007 11:40
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Setting custom field in CDR
> 
> Mike wrote:
> > Hi,
> >  
> > The Asterisk Wiki (page: 
> > http://www.voip-info.org/wiki/view/Asterisk+func+cdr) 
> mentions I can 
> > set any custom CDR field I want.  Here is the example it gives:
> >  
> > ; Update our accountcode field and then save some random 
> music facts 
> > too exten => s,1,Set(CDR(accountcode)=8675309) exten => 
> > s,2,Set(CDR(MyFavoriteBand)=Foo Fighters) exten => 
> > s,3,Set(CDR(MyFavoriteSong)=Hero)
> >  
> > I am using CDR on MySQL.  I tried this, with a new colum called 
> > MyFavoriteSong.  Guess what?  That field wasn`t populated at all.
> >  
> > Anything else I should be doing?
> 
> Won't work yet, not implemented for MySQL CDR engine. Maybe in 1.6.
> 
> Only custom field you can use for now is CDR(userfield) and 
> if you want multiple values, you can separate them by something like #
> 
> Regards,
> Atis
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list