[Asterisk-Users] Manager API Call Origination & Variables

Brian D'Arcy bdarcy at akiva.com
Mon Nov 15 15:31:26 MST 2004


I'm using this in production, and it works like a charm. (example from
PHP).  Phone numbers have been changed to protect the innocent. ;)

fputs($socket, "Action: Originate\r\n");
fputs($socket, "Channel: Zap/g1d/1234567890\r\n");
fputs($socket, "Exten: 5002\r\n");
fputs($socket, "Priority: 1\r\n");
fputs($socket, "Context: userexten\r\n");
fputs($socket, "Variable: dialnumber=7600000000|confnumber=3236\r\n");
fputs($socket, "CallerID: Dev Meeting <760-000-0000>\r\n\r\n");

Brian D'Arcy
Operations Engineer
Akiva Corporation

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Peter Osborne
> Sent: Monday, November 15, 2004 2:09 PM
> To: asterisk-users at lists.digium.com
> Cc: Peter Svensson
> Subject: Re: [Asterisk-Users] Manager API Call Origination & Variables
> 
> Well I tried just about every combination that I can think of as well
as
> every
> combination mentioned and it still doesn't work. Not sure why, maybe
it's
> just not possible from the Manager API.
> 
> Pete
> 
> On Monday 15 November 2004 04:56, Peter Svensson wrote:
> > On Mon, 15 Nov 2004, Brian West wrote:
> > > Ok to cut confusion here
> > >
> > > Its:
> > > Variable: _ALERT_INFO
> > > Value: somevalue
> > >
> > > Its always var/val via manager.
> >
> > Not in the Originate action it isn't. This is what both the help
> >   show manager command originate
> > say and what reading the source indicates. From the help:
> >
> >         Variable: Channel variable to set (VAR1=value1|VAR2=value2)
> >
> > Peter
> >
> > > > The channel does not exist prior to the Originate action.
However,
> you
> > > > may be able to pass variables in the originate command itself:
> > > >
> > > > Action: Originate
> > > > Channel: sip/12345
> > > > Exten: 1234
> > > > Context: default
> > > > Variable: _ALERT_INFO=Ring Answer|SomeOtherVar=SomeOtherValue
> > > >
> > > > This may work.
> > > >
> > > > Peter
> >
> > Peter
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 





More information about the asterisk-users mailing list