On Friday 15 February 2008 10:21:33 am Lee Jenkins wrote:
> Anthony Messina wrote:
> > Working with asterisk 1.4; using the AMI Originate command, it is
> > possible to do something like:
> >
> > Variable: CDR(accountcode)123456
> >
> > Or must the variable names be "var[n]" where n is a number?
> >
> > I'd like to set the accountcode for a Local channel that originates a
> > call.
> >
> > Thanks.  -A
>
> Anthony,
>
> I may not understand your question, but setting variables from the AMI is
> easy enough:
>
> Action: Originate
> Channel: local/[EMAIL PROTECTED]
> Context: to_meetme
> Exten: s
> Priority: 1
> Variable: CALLERID(num)=${DEV_NAME}|CALLERID(name)=Conference Waiting
> Async: true

That was exactly my question (even though I forgot the "="sign). However, I am 
not able to get that to work for reason. I'm trying to set the 
CDR(accountcode) on the first leg of the call and am using Channel: Local/...

I am able to get it to work if I use "Variable: var1=12345" then, use 
CDR(accountcode)=${var1} in the dialplan, but I was hoping to avoid this 
hack.

-- 
Anthony -  http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
-- 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

Reply via email to