bar top left
bar top right
left curve
right curve
Welcome, Guest

2.0 BUG FIX for embedded pbxadmin MOH module!!!
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 1
TOPIC: 2.0 BUG FIX for embedded pbxadmin MOH module!!!
#58661
2.0 BUG FIX for embedded pbxadmin MOH module!!! 1 Year, 5 Months ago Karma: 3
Hi,

Not sure where to post this fix I found so here it goes...


Please replace below in /var/www/html/modules/pbxadmin/index.php

// The next block is to fix a music on hold issue
$category = strtr(isset($_REQUEST['category'])?$_REQUEST['category']:''," ./\"\'\`", "------");
if ($category == null) $category = 'default';

if ($category == "default")
$path_to_dir = $asterisk_conf['astvarlibdir']."/".$amp_conf["MOHDIR"]."/"; //path to directory u want to read.
else
$path_to_dir = $asterisk_conf['astvarlibdir']."/".$amp_conf["MOHDIR"]."/$category/"; //path to directory u want to read.

$GLOBALS['path_to_dir'] = $path_to_dir;

$path_to_moh_dir = $amp_conf['ASTVARLIBDIR'].'/'.$amp_conf['MOHDIR'];
$GLOBALS['path_to_moh_dir'] = $path_to_moh_dir;


I think it's currently is:

// The next block is to fix a music on hold issue
$category = strtr(isset($_REQUEST['category'])?$_REQUEST['category']:''," ./\"\'\`", "------");
if ($category == null) $category = 'default';

if ($category == "default")
$path_to_dir = $asterisk_conf['astvarlibdir']."/mohmp3"; //path to directory u want to read.
else
$path_to_dir = $asterisk_conf['astvarlibdir']."/mohmp3/$category"; //path to directory u want to read.

$GLOBALS['path_to_dir'] = $path_to_dir;



Thanks, and keep up the good work!


Gil
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
gl1176
Junior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/27 04:46 By gl1176.
Reply Quote
 
#58662
Re:2.0 BUG FIX for embedded pbxadmin MOH module!!! 1 Year, 5 Months ago Karma: 155
Thank you for your efforts, I ask you to please take the time to post it at bugs.elastix.org (the link at the bottom of this page named "bug-tracker")

It might well help others, or even the Elastix developers.

dicko
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4101
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2010/08/27 02:54 By dicko.
There are other solutions!!
Reply Quote
 
#58664
Re:2.0 BUG FIX for embedded pbxadmin MOH module!!! 1 Year, 5 Months ago Karma: 3
Ok, just updated my original post for a better format.

There is still a bug...

In writing to the /etc/asterisk/musiconhold_additional.conf the pbxadmin embedded version creates this output:

[default]
mode=files
directory=/
[none]
mode=files
directory=/.nomusic_reserved


When freepbx does it puts the correct output:

[default]
mode=files
directory=/var/lib/asterisk/moh/
random=yes
[none]
mode=files
directory=/var/lib/asterisk/moh/.nomusic_reserved


So there is still something wrong in the code.. I don't know where yet.

But at least I fixed the gui look and uploading from the pbxadmin...

hopefully we can get this fixed.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
gl1176
Junior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#58671
Re:2.0 BUG FIX for embedded pbxadmin MOH module!!! 1 Year, 5 Months ago Karma: 3
Ok, more digging into the issue, and I found the fix.


I updated the fix again to original post.


Thanks
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
gl1176
Junior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#58673
Re:2.0 BUG FIX for embedded pbxadmin MOH module!!! 1 Year, 5 Months ago Karma: 104
Hi gl1176, nice work.

Coould you please fulfill a bug into the bugtracker, as dicko suggested?

Thank you
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
ramoncio
Gold Boarder
Posts: 1674
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#58691
Re:2.0 BUG FIX for embedded pbxadmin MOH module!!! 1 Year, 5 Months ago Karma: 3
Ok, i submitted the bug to the bugs section.


Currently trying to fix mp3 uploading issue with centos/freepbx without getting error messages.

I have compiled sox, mpg123, lame, and a few others from source.

I can get the sox command to work fine in the shell mp3 to wav, but still get the errors in pbxadmin and freepbx MoH section.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
gl1176
Junior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#59033
Re:2.0 BUG FIX for embedded pbxadmin MOH module!!! 1 Year, 5 Months ago Karma: 3
After I posted bug to the bugs.elastix.org site, I got a reply back needing more info on what this bug fixes. The status of the bug record changed to feedback, so I gave an explanation to the fix. The status of the bug record never changed back to the assigned programmer, and I could not find a way to change the status.

Is there a way to change the status so the can add this fix into the code?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
gl1176
Junior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1
Moderators: rafael, Bob, jgutierrez