XML Phonebook thingamabob for 79xx and GXP2000

jpe

Member
Joined
Nov 14, 2007
Messages
149
Reaction score
0
This app looks nice. Uses a database to create xml phone books for Ciaco 79xx and Grandstream gxp2000. I haven't tried to install it yet, I just stumbled across it. In thinking it would be cool to have it use asteridex as it's database. (hint hint).

I wrote about this app in the past, you can view the video demo here. Now I have decided to share it with others -you can find the source here.
 
I've been looking around around GeekHut a bit more and Mr Meloche has some very interesting things going on there. I have invited him to come over here to peruse whats going on here. (i think he still is using on tb)
 
Hey thanks for the plug, I was awake for 32 hours straight reading about (and playing with) phpagi over the last two days writing a script for a client. After all that I think it is safe to say - expect really cool advancements in the field of web based asterisk tools.

I sent Ward a copy of my web stickies app a few months back, no feedback yet however have had a few requests on my blog.
 
VERY COOL STUFF :biggrin5:. Looks like he has the skills to dare I say write up an even better product that Hud.
 
The new version (with stickies) is now ready for some testers!

PM me for source and instructions!
 
Help Me Hasten Release Date

I was contacted by a very nice guy from FonicaPABX who wanted to bundle this script in with his next major release. He made me a sysop on the wiki for project details and what not.

I have almost completed the PiaF install script but it is a bit intrusive, I think I need to find a bash guru who can write a little less destructive script : heres what I have so far.

#!/bin/sh
echo "Installing Dependencies"
yum install php-xml
cd /usr/src
echo "Downloading"
wget http://geekhut.org/downloads/piaf_addons.tar.gz
echo "Extracting"
tar -zxvf piaf_addons.tar.gz
cd piaf_addons
echo "Creating Directories"
mkdir /var/www/vhost
mkdir /var/www/vhost/services
echo "Copying Files"
mv xml /var/www/html/services
mv services /var/www/vhost/services
mv popup.php /var/lib/asterisk/agi-bin/popup.php
echo "Creating Apache Virtual Host"
cat << EOF > /etc/httpd/conf.d/vhost.conf
NameVirtualHost *

<VirtualHost *>
ServerName sip
DocumentRoot "/var/www/html"
DirectoryIndex index.php
<Directory "/var/www/html">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>

<VirtualHost *>
ServerName services
DocumentRoot "/var/www/vhost/services"
DirectoryIndex index.php
<Directory "/var/www/vhost/services">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
EOF
echo "Restarting Apache"
/etc/init.d/httpd reload
echo "Setting Permissions"
chmod 777 -R /tfttpboot
chmod 777 -R /var/www/html/services
chown asterisk:asterisk -R /var/www/html/services
chmod 777 -R /var/www/vhost/services
chown asterisk:asterisk -R /var/www/vhost/services
echo "Creating Database"
mysqladmin -u root -ppassw0rd create services
mysql -u root -ppassw0rd services < services.sql
echo "Adding Contexts to Dial Plan"
cat << EOF >> /etc/asterisk/extensions_custom.conf

[callout]
exten => s,1,Authenticate(4734)
exten => s,2,DISA(no-password|from-internal)

[custom-callboth]
exten => _1NXXNXXXXXX,1,Wait(1)
exten => _1NXXNXXXXXX,2,Background(pls-wait-connect-call)
exten => _1NXXNXXXXXX,3,Macro(dialout-trunk,2,${EXTEN},)
exten => _1NXXNXXXXXX,4,Macro(dialout-trunk,3,${EXTEN},)
exten => _1NXXNXXXXXX,5,Macro(dialout-trunk,0,${EXTEN},)
exten => _1NXXNXXXXXX,6,Macro(dialout-trunk,1,${EXTEN},)
exten => _1NXXNXXXXXX,7,Macro(outisbusy)
exten => _NXXNXXXXXX,1,Wait(1)
exten => _NXXNXXXXXX,2,Background(pls-wait-connect-call)
exten => _NXXNXXXXXX,3,Macro(dialout-trunk,2,${EXTEN},)
exten => _NXXNXXXXXX,4,Macro(dialout-trunk,3,${EXTEN},)
exten => _NXXNXXXXXX,5,Macro(dialout-trunk,0,${EXTEN},)
exten => _NXXNXXXXXX,6,Macro(dialout-trunk,1,${EXTEN},)
exten => _NXXNXXXXXX,7,Macro(outisbusy)

EOF
echo "Reloading Dialplan"
asterisk -rx "dialplan reload"



I still need to sed [from-pstn-custom] and place
exten => _N.,1,AGI(popup.php|${CALLERID(name)}|${CALLERID(number)}|"1")

in there...
Need some help on that.

I also found using a Virtual Host simplified the whole rewrite thing so I just pop a record in my hosts file "10.0.0.101 services".

Any feedback would be awesome (I know the link doesn't work yet so don't try running this script. You have been warned!)
 

Members online

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top