SOLVED Phone Genie w/ Asterisk 11

Stewart

Guru
Joined
Sep 16, 2009
Messages
603
Reaction score
6
We have, in the past, used the Phone Genie app with some custom php to create an advanced call routing table that coordinates multiple systems. It allows a user at any office to log in to the main system and set where calls get routed to and works rather well. I'm trying to accomplish the same thing with the PIAF-Green build (Asterisk 11) but can't seem to get the nv-genie.php to output for me. When I run:

http://ipofpbx/nv-genie.php?action=dbshow&pw=1234

All I get is a blank page while I would expect some results. In the CLI if I input "Manager show commands" I don't see dbshow as a command, but I don't see it as an available command in Asterisk 1.4 either so I'm not sure how relevant that is. Any ideas?
 
Solved. Register_globals is off by default in php.ini. Just set it to on and restarted Apache.
 
Setting that to on is very dangerous. Even more so when using freepbx

There is a reason the php group disabled it.

Solved. Register_globals is off by default in php.ini. Just set it to on and restarted Apache.
 
Yes, it does allow someone to manually enter in to appear as if they are authenticated when they aren't but it's they only way I've found to make this work.
 
This has been fixed, I think. No need to set register_globals=On in php.ini. Just download the new script into /var/www/html.
 
That is not only what it does. I don't think you fully grasp the concept of what that setting does globally. Disable it now and download ward's fixed script.

and please READ this: http://php.net/manual/en/security.globals.php

Yes, it does allow someone to manually enter in to appear as if they are authenticated when they aren't but it's they only way I've found to make this work.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
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