version of asterisk and documentation

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

Moderators: jwitt, sruffell, malcolmd, Moderator

version of asterisk and documentation

Postby wallnutmonkeys » Thu Jun 20, 2013 9:48 am

Hi, we currently evaluation the phone API to see what it can bring us, and I have a few questions, maybee someone can help me out:

1-I was told that Asterisk 11 would provide more features for the phone to use versus for example asterisk 1.6. Now I presume that means that using the digium phone api along with asterisk11 would allow me to use the pbx.request and send various "requests" to asterisk?

2-Anyone know where the documentation is located, I am currently using the api reference, but for example I wanted to tryout the pbx.request method, but I cannot find what the possible parameters that I can use. I found 2 examples which seem to require the use of switchvox as the PBX:

pbx.request({
'method' : ' switchvox.users.getMyInfo',
'loadingText' : 'Getting extension info',
'onSuccess' : function (response) {
util.debug(response.result.extension.number);
}
});


pbx.request({
'method' : 'switchvox.users.presence.options.getList',
'parameters' : {
'account_id' : "1235"
},
'loadingText' : app.t('STATUSLIST_LOADING'),
'onSuccess' : function (p) {
util.debug("We got status options");
util.debug(JSON.stringify(p.result.presence_options));
}
});


I would like to know where I can find all possible values for the "method" parameter.

Thanks in advance

wallnut
wallnutmonkeys
Newsterisk
 
Posts: 28
Joined: Thu Feb 10, 2011 9:52 pm

Re: version of asterisk and documentation

Postby malcolmd » Thu Jun 20, 2013 10:47 am

Howdy,

pbx.request allows you to call any arbitrary method. Asterisk 11 doesn't expose a standard set of methods like you're seeing with Switchvox, it doesn't have that kind of an API. Rather, pbx.request allows you to push a request out via AMI that can then be ready any application you've got that rides on AMI. Then, responses can be sent.

See -
https://wiki.asterisk.org/wiki/display/ ... andtheDPMA
"Interacting with Asterisk"
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: version of asterisk and documentation

Postby wallnutmonkeys » Fri Jun 21, 2013 6:53 am

thanks malcomd, I think I'll need to readup on dpma.

cheers

wallnut
wallnutmonkeys
Newsterisk
 
Posts: 28
Joined: Thu Feb 10, 2011 9:52 pm


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 1 guest