cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4307
Views
9
Helpful
6
Replies

Call Park Monitoring XML App

sean_simpson
Level 1
Level 1

Hi,

Has anyone created an XML app that is able to monitor a call parking lot in Asterisk (quite possibly using the AMI interface)?

Many thanks

Sean

6 Replies 6

Henry Bonath
Level 1
Level 1

This is an old thread, but to help anyone else out there, I've started working on one and have it published in Github:

https://github.com/hbonath/ciscospaxml

The parking lot runs from /cgi-bin (it's a Bash script) that calls asterisk CLI commands. For it to function, the webserver and asterisk must be run from the same UID.

https://github.com/hbonath/ciscospaxml/blob/master/cgi-bin/parkinglot.sh

I also have a thread over at the PBX in a Flash Forum with more information:

http://pbxinaflash.com/community/index.php?threads/cisco-spa-phone-xml-scripts.15291/

Hope this is helpful!

-Henry

Nice script. But it should be noted that number of entries must not exceed 32 in one CiscoIPPhoneDirectory object. Such limit is not maintained by current version of script.

Thanks for the heads-up on that.

I'm *not* a developer, and am still learning a bit about the XML capabilities of these phones (including the shortcomings!)

The 32-entry limit should be fine for the Asterisk parking lot, as by default I think it's limited to 9 slots.

That being said, I have an App for a directory based on lookups from the FreePBX database which would most definitely be affected by the 32-entry limit.

As they sit today, they are something I whipped up over a weekend, and definitely have a lot of room for improvement. I do plan on trying to refine these somewhat and keep them out there for Asterisk and FreePBX users that deploy these phones.

I've updated and added logic to work around the blank entries - I had experienced this with an SPA504g. (Previously had only tested on SPA525G2)

Updated the directory app - now should effectively support multiple pages of 32.

Just short notice:

1. Race condition - if list of users changed between pages

2. NEXT SoftKey even there is no next page, those non-existent pages have no entry. It is not allowed and is known to cause abend on some firmware versions

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: