PBXes (http://www1.pbxes.com/forum/index.php)
- English (http://www1.pbxes.com/forum/board.php?boardid=16)
-- Feature Requests (http://www1.pbxes.com/forum/board.php?boardid=23)
--- RE: A way to tell if an extension is registered (via presence API or alert email) (http://www1.pbxes.com/forum/threadid.php?threadid=1349553312)


Posted by zemanek on 06.10.2012 at 21:55:

A way to tell if an extension is registered (via presence API or alert email)

Hi,

I would need a way to programmatically tell if a certain extension (or sub-pbx/trunk) is registered or not. I know that this can be done in the operator panel and I tried to reverse engineer that thing but the protocol is pretty messy and it's push instead of pull.

I would really enjoy a simple API like http://pbxes.org/presence.php?user=abcdef-123&pass=123456 which returns either 0 or 1.

Alternatively one could receive an email if a certain extension goes offline.

Some background: We operate a GSM gateway (Sub PBX) on a pretty dodgy internet connection. I would like to periodically check whether the gateway is online and if not I would like to automatically do some countermeasures (power cycling the modem, execute a command via SSH on the gateway etc.).

I realize that this is a pretty specific problem, but I think many customers would enjoy a way to setup an email alert for their extensions/sub-pbx's similar to the ones for the trunk lines.

UPDATE: I solved the problem myself by reverse engineering the operator panel: http://pastebin.com/8SWHAXcT
I really hope that this company is not as abandoned as it's forum because I love using it..


Posted by flexivr on 06.08.2013 at 09:01:

Augenzwinkern RE: A way to tell if an extension is registered (via presence API or alert email)

do you have a way of creating an extension programmatically?

I like pbxes.org but I need apis for it so I control the system programmatically.

Powered by: Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English translation by Satelk