Access config XML

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

Moderators: jwitt, sruffell, malcolmd, Moderator

Access config XML

Postby byronsmith » Thu Oct 10, 2013 10:44 am

Hello,

Anyway for me to identify the current phones extension within an app?

I know there is pbx.request however this is used in conjunction with Switchvox, am I right?

Your help would be appreciated.

Many thanks
Byron
byronsmith
Newsterisk
 
Posts: 14
Joined: Fri Jun 24, 2011 4:38 am

Re: Access config XML

Postby malcolmd » Fri Oct 11, 2013 8:40 am

Negative. Information about accounts isn't propagated up, and extension is something that's not related to the phone, rather the PBX.

What do you want to do with the phone's account information?
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: Access config XML

Postby byronsmith » Fri Oct 11, 2013 9:33 am

malcolmd wrote:What do you want to do with the phone's account information?


Hi Malcolm,

We run our own in house PBX and with the Digium phone app I'm attempting to set some variables Asterisk DB however I need to have the phones extension to correctly store and retrieve this information.

Without an identifier in AstDB for the phone, I'm kinda stuff.

Any suggestions?
byronsmith
Newsterisk
 
Posts: 14
Joined: Fri Jun 24, 2011 4:38 am

Re: Access config XML

Postby byronsmith » Mon Oct 14, 2013 2:51 am

Actually, I had an idea. I could in theory store the extension number in <appconfig> for reading.

Unless you can provide any other alternatives?
byronsmith
Newsterisk
 
Posts: 14
Joined: Fri Jun 24, 2011 4:38 am

Re: Access config XML

Postby malcolmd » Mon Oct 14, 2013 8:37 am

Howdy,

You beat me to it. I had the same thought on the drive back from Atlanta to HSV. That's exactly how I'd do it - drop in a key pair for the data you want provided to the app.
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


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 1 guest