[Asterisk-Users] Manager API Call Origination & Variables

Peter Svensson psvasterisk at psv.nu
Mon Nov 15 13:49:41 MST 2004


On Mon, 15 Nov 2004, Peter Osborne wrote:

> I am using the Asterisk Manager API to originate calls and it is working well, 
> when a call is placed the local phone rings, once you pick it up you can here 
> the call ringing the other end. Now, I am using Polycom IP 300 and I have 
> them setup to auto-answer if I set the ALERT_INFO variable to "Ring Answer". 
> This works fine from my dial plan but I can't figure out how to set 
> ALERT_INFO from the Manager API. Basically I want calls that are originated 
> from the Manager API to automatically take place on the speaker phone.
> 
> I have tried
> 
> Action: SetVar
> Channel: sip/pete_desk
> Variable: ALERT_INFO
> Value: Ring Answer

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






More information about the asterisk-users mailing list