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..
This post has been edited 2 time(s), it was last edited by zem on 09.10.2012 at 01:58.
|