Hello, I created a new field named pre_dst of type varchar(80) exactly like dst field in cdr table. In the dialplan I put: exten => _7.,1,Set(CDR(pre_dst)=${EXTEN:1}) and when I call, all goes fine except that pre_dst has always NULL value in cdr. Do you know why? Is something wrong I did? I know that original fields in cdr are only readable, but in this cas pre_dst is one I created myself !!! Thank you.
Hi, On Wed, 2007-02-28 at 23:43 +0100, Bayrouni wrote:> Hello,> In the dialplan I put: > exten => _7.,1,Set(CDR(pre_dst)=${EXTEN:1}) > > and when I call, all goes fine except that pre_dst has always NULL value > in cdr. > > Do you know why? > Is something wrong I did?As far as I know, custom fields doesn't work with any database backend, only with CSV. There is an addon in the bug tracker but seems that it isn't finished. Regards.
Mike Lynchfield
2007-Feb-28 16:05 UTC
[asterisk-users] read write or only read fields in cdr?
try not using dst.. maybe its a regex on te fieldname that matches for reserved keywords.. try pre_dest instead On 2/28/07, Bayrouni <bayrouni@brutele.be> wrote:> > Hello, > > > I created a new field named pre_dst of type varchar(80) exactly like dst > field in cdr table. > > In the dialplan I put: > exten => _7.,1,Set(CDR(pre_dst)=${EXTEN:1}) > > and when I call, all goes fine except that pre_dst has always NULL value > in cdr. > > Do you know why? > Is something wrong I did? > > > I know that original fields in cdr are only readable, but in this cas > pre_dst is one I created myself !!! > > Thank you. > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > lists.digium.com/mailman/listinfo/asterisk-users >-- Mike Sales Manager voicemeup.com Making it happen 1.877.807.VOIP (8647) 1.514.312.7030 -------------- next part -------------- An HTML attachment was scrubbed... URL: lists.digium.com/pipermail/asterisk-users/attachments/20070228/34e666a4/attachment.htm
Mike Lynchfield a ?crit :> try not using dst.. maybe its a regex on te fieldname that matches for > reserved keywords.. > > try pre_dest instead > > On 2/28/07, Bayrouni <bayrouni@brutele.be> wrote: >> >> Hello, >> >> >> I created a new field named pre_dst of type varchar(80) exactly like dst >> field in cdr table. >> >> In the dialplan I put: >> exten => _7.,1,Set(CDR(pre_dst)=${EXTEN:1}) >> >> and when I call, all goes fine except that pre_dst has always NULL value >> in cdr. >> >> Do you know why? >> Is something wrong I did? >> >> >> I know that original fields in cdr are only readable, but in this cas >> pre_dst is one I created myself !!! >> >> Thank you. >> >>I tried yet pre_dst un cdr table. I even change it to foo or coco or whatever, but nothing is written in this custom field except NULL. +---------------------+------------------------+------------+------------------+ | clid | dstchannel | coco | dst | +---------------------+------------------------+------------+------------------+ | 2007-02-28 13:31:43 | SIP/xxxxxxxxx-081b1fd8 | NULL xxxxxxxxx | thanks.