Answer call from AMI

I need to be able to issue a command from AMI to answer a call ringing on a Digium Handset

Do I need to write a custom app for the phone to allow this ?

where do I start please ?

Can I use DPMAMessageSend ?

If so what is the syntax please

I have also seen on another post the following comment - is it correct ?

“If you want to control the phone from your web page, you’ll need to have the phone poll your server for commands to execute via NetRequest. You can also use standard long polling techniques.”

Yes.

phones.digium.com has some good documentation on the Phones API.

If the phone’s communicating with Asterisk using DPMA, yes. You can use that Action to send a message to the phone that can be picked up by your custom application running on the phone.

See - wiki.asterisk.org/wiki/display/ … andtheDPMA

[quote]
I have also seen on another post the following comment - is it correct ?

“If you want to control the phone from your web page, you’ll need to have the phone poll your server for commands to execute via NetRequest. You can also use standard long polling techniques.”[/quote]

If you’re not using DPMA, which gives you an easily ability to push unsolicited messages to the phone, then yes, you’d have to do something like that.

Thank you Malcolm - I’ll start working on that :smiley:

Are there any examples anywhere of a phone application which receives commands from DPMA and acts upon them ?

Howdy,

You’re just looking for uses of digium.event.observe.

Here are a few:
viewtopic.php?t=86447

github.com/digium/digium-phone- … ef=cmdform

forums.digium.com/viewtopic.php?f=49&t=87888

Thanks Malcolm,

I have got the event observe working and can now answer incoming calls and make outgoing calls from AMI