[Asterisk-Dev] res/res_agi.c set accountcode

Cristian Draghici cristian.draghici at gmail.com
Wed Jan 4 23:56:41 MST 2006


Ok thanks everyone for your help

SetAccount works.
SetCDR does not exist yet (I'm on 1.2.0). At least not as an application.

There's also SetCDRUserField that setting and appending a user field in the CDR.

Thanks again,
Cristi

On 1/4/06, Kaloyan Kovachev <kkovachev at varna.net> wrote:
> To access CDR fields just use CDR(field)
>       SET CDR(ACCOUNTCODE) variable
> should work
>
> On Wed, 4 Jan 2006 09:47:00 -0600, Moises Silva wrote
> > hum, i guess this does the trick:
> >
> > http://www.voip-info.org/wiki-Asterisk+cmd+SetAccount
> >
> > Is deprecated, but there you find other way to do it.
> >
> > regards.
> >
> > On 1/4/06, Cristian Draghici <cristian.draghici at gmail.com> wrote:
> > > Hi list
> > >
> > > Is there a way to alter the accountcode CDR field from AGI?
> > >
> > > I didn't find anything in res_agi.c and I've ended up writing my own
> > > "SET ACCOUNTCODE" command (similar to "SET EXTENSION").
> > >
> > > Should I send a patch over or am I reinventing the wheel?
> > >
> > > Thanks and best regards,
> > > Cristi
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > >
> > > Asterisk-Dev mailing list
> > > To UNSUBSCRIBE or update options visit:
> > >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> > >
> >
> > --
> > "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Dev mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>



More information about the asterisk-dev mailing list