Page 1 of 1

Answer call from AMI

PostPosted: Wed Jun 25, 2014 5:56 pm
by markgc2014
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."

Re: Answer call from AMI

PostPosted: Thu Jun 26, 2014 7:39 am
by malcolmd
Do I need to write a custom app for the phone to allow this ?


Yes.

where do I start please ?


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

Can I use DPMAMessageSend ?


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.

If so what is the syntax please


See - https://wiki.asterisk.org/wiki/display/ ... andtheDPMA

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."


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.

Re: Answer call from AMI

PostPosted: Thu Jun 26, 2014 6:04 pm
by markgc2014
Thank you Malcolm - I'll start working on that :D

Re: Answer call from AMI

PostPosted: Thu Jun 26, 2014 6:08 pm
by markgc2014
Are there any examples anywhere of a phone application which receives commands from DPMA and acts upon them ?

Re: Answer call from AMI

PostPosted: Fri Jun 27, 2014 7:55 am
by malcolmd

Re: Answer call from AMI

PostPosted: Sun Jun 29, 2014 6:20 pm
by markgc2014
Thanks Malcolm,

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