[Asterisk-Users] Manager API Call Origination & Variables

Bob Knight bk at minusw.com
Mon Nov 15 16:09:20 MST 2004


Peter Osborne wrote:
> Hi all,
> 
> 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
> 
> but it gives me about no such channel but this is the same channel I use to 
> place the call immediately after attempting to set the variable.
> 
> Any ideas?

I have 2 extension entries for all my auto-answer phones.
If you dial just the normal extension (like 1234) it does the
normal answer thing.
If you dial an * before the extension (like *1234) it does
the auto answer thing.
So you could just use:
Channel: sip/*1234 or
Channel: sip/*pete_dest

-- 
Bob Knight
[-w] the work option
bk at minusw.com
925-449-9163



More information about the asterisk-users mailing list