Answer call from AMI

Community based support for the Digium Phone Application Programming Interface (API).

Moderators: jwitt, sruffell, malcolmd, Moderator

Answer call from AMI

Postby markgc2014 » Wed Jun 25, 2014 5:56 pm

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."
markgc2014
Newsterisk
 
Posts: 14
Joined: Wed Jun 25, 2014 5:54 pm

Re: Answer call from AMI

Postby malcolmd » Thu Jun 26, 2014 7:39 am

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.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Answer call from AMI

Postby markgc2014 » Thu Jun 26, 2014 6:04 pm

Thank you Malcolm - I'll start working on that :D
markgc2014
Newsterisk
 
Posts: 14
Joined: Wed Jun 25, 2014 5:54 pm

Re: Answer call from AMI

Postby markgc2014 » Thu Jun 26, 2014 6:08 pm

Are there any examples anywhere of a phone application which receives commands from DPMA and acts upon them ?
markgc2014
Newsterisk
 
Posts: 14
Joined: Wed Jun 25, 2014 5:54 pm

Re: Answer call from AMI

Postby malcolmd » Fri Jun 27, 2014 7:55 am

Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Answer call from AMI

Postby markgc2014 » Sun Jun 29, 2014 6:20 pm

Thanks Malcolm,

I have got the event observe working and can now answer incoming calls and make outgoing calls from AMI
markgc2014
Newsterisk
 
Posts: 14
Joined: Wed Jun 25, 2014 5:54 pm


Return to Digium Phone API

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest