[asterisk-users] Setting custom field in CDR
Carlos Chavez
cursor at telecomabmex.com
Thu Dec 6 10:41:31 CST 2007
On Thu, 2007-12-06 at 10:37 -0500, 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?
The custom fields in CDR only work in the CSV file. CDR in Mysql
cannot accept those custom fields.
>
--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20071206/7e06d220/attachment.pgp
More information about the asterisk-users
mailing list