Re: [asterisk-users] question about CDR command

2006-10-20 Thread William Piper
I don't believe there is any quick  simple way of doing this. 
You would need to add the column in the DB and modify cdr.c.

I'm sure someone out there has a step by step doc on how to do this. You may try the #asterisk channel on irc.

bp
On 10/19/06, unplug [EMAIL PROTECTED] wrote:
Thanks!!Just one more question.Can I do the same add fieldname=1 if I adda field fieldname in the cdr table to perform the same action?
On 10/19/06, William Piper [EMAIL PROTECTED] wrote: In cdr_mysql.conf add userfield=1 under the globals setting. bp
 On 10/18/06, unplug [EMAIL PROTECTED] wrote:   I want to set some custom data in the field of userfield in table CDR  as following.
  exten = s,19,Set(CDR(userfield)=1234)  exten = s,20,Dial(SIP/1234)   However, the userfield doesn't get update after making the call.  After that, I relocate the command as following.
   exten = s,19,Dial(SIP/1234)  exten = s,20,Set(CDR(userfield)=1234)   The userfield doens't get update at all.I don't know why the field  can't update after issuing the command.Anyone can help?
  ___  --Bandwidth and Colocation provided by Easynews.com --   asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:  http://lists.digium.com/mailman/listinfo/asterisk-users 
 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users___
--Bandwidth and Colocation provided by Easynews.com --asterisk-users mailing listTo UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] question about CDR command

2006-10-19 Thread William Piper
In cdr_mysql.conf add userfield=1 under the globals setting.

bp
On 10/18/06, unplug [EMAIL PROTECTED] wrote:
I want to set some custom data in the field of userfield in table CDRas following.exten = s,19,Set(CDR(userfield)=1234)
exten = s,20,Dial(SIP/1234)However, the userfield doesn't get update after making the call.After that, I relocate the command as following.exten = s,19,Dial(SIP/1234)exten = s,20,Set(CDR(userfield)=1234)
The userfield doens't get update at all.I don't know why the fieldcan't update after issuing the command.Anyone can help?___--Bandwidth and Colocation provided by 
Easynews.com --asterisk-users mailing listTo UNSUBSCRIBE or update options visit:http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] question about CDR command

2006-10-19 Thread unplug

Thanks!!
Just one more question.  Can I do the same add fieldname=1 if I add
a field fieldname in the cdr table to perform the same action?

On 10/19/06, William Piper [EMAIL PROTECTED] wrote:

In cdr_mysql.conf add userfield=1 under the globals setting.

bp


On 10/18/06, unplug [EMAIL PROTECTED] wrote:

 I want to set some custom data in the field of userfield in table CDR
 as following.
 exten = s,19,Set(CDR(userfield)=1234)
 exten = s,20,Dial(SIP/1234)

 However, the userfield doesn't get update after making the call.
 After that, I relocate the command as following.

 exten = s,19,Dial(SIP/1234)
 exten = s,20,Set(CDR(userfield)=1234)

 The userfield doens't get update at all.  I don't know why the field
 can't update after issuing the command.  Anyone can help?
 ___
 --Bandwidth and Colocation provided by Easynews.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users




___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] question about CDR command

2006-10-18 Thread unplug

I want to set some custom data in the field of userfield in table CDR
as following.
exten = s,19,Set(CDR(userfield)=1234)
exten = s,20,Dial(SIP/1234)

However, the userfield doesn't get update after making the call.
After that, I relocate the command as following.

exten = s,19,Dial(SIP/1234)
exten = s,20,Set(CDR(userfield)=1234)

The userfield doens't get update at all.  I don't know why the field
can't update after issuing the command.  Anyone can help?
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users