arnaudcoquelet / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Imposible to change MOH in Call Center Queue to any other than default #717

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In Call Center Queue trying to change MOH
As result caller can't hear RBT 
In debug log:
2014-09-15 12:17:02.549822 [DEBUG] switch_ivr_play_say.c:1714 done playing file 
tone_stream://${us-ring};loops=-1
2014-09-15 12:17:02.549822 [DEBUG] switch_ivr_play_say.c:1305 Codec Activated 
L16@8000hz 1 channels 20ms
2014-09-15 12:17:02.549822 [DEBUG] switch_ivr_play_say.c:1714 done playing file 
tone_stream://${us-ring};loops=-1

Version:    3.7.1 
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux 

After changing settings in file 
/usr/local/freeswitch/conf/autoload_configs/callcenter.conf.xml it works fine.

from: <param name="moh-sound" value="tone_stream://${us-ring};loops=-1"/>

to: <param name="moh-sound" value="tone_stream://$${us-ring};loops=-1"/>

Original issue reported on code.google.com by voipcall...@gmail.com on 15 Sep 2014 at 8:31

GoogleCodeExporter commented 9 years ago
Temporary fix:

In app/call_center/call_center_queue_edit.php around line: 651

Change the section

    if ($queue_moh_sound == "\${us-ring}" || $queue_moh_sound == "us-ring") {
        $select_options .= "        <option value='\${us-ring}' selected='selected'>".$text['option-usring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\${us-ring}'>".$text['option-usring']."</option>\n";
    }
    if ($queue_moh_sound == "\${pt-ring}" || $queue_moh_sound == "pt-ring") {
        $select_options .= "        <option value='\${pt-ring}' selected='selected'>".$text['option-ptring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\${pt-ring}'>".$text['option-ptring']."</option>\n";
    }
    if ($queue_moh_sound == "\${fr-ring}" || $queue_moh_sound == "fr-ring") {
        $select_options .= "        <option value='\${fr-ring}' selected='selected'>".$text['option-frring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\${fr-ring}'>".$text['option-frring']."</option>\n";
    }
    if ($queue_moh_sound == "\${uk-ring}" || $queue_moh_sound == "uk-ring") {
        $select_options .= "        <option value='\${uk-ring}' selected='selected'>".$text['option-ukring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\${uk-ring}'>".$text['option-ukring']."</option>\n";
    }
    if ($queue_moh_sound == "\${rs-ring}" || $queue_moh_sound == "rs-ring") {
        $select_options .= "        <option value='\${rs-ring}' selected='selected'>".$text['option-rsring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\${rs-ring}'>".$text['option-rsring']."</option>\n";
    }

To

    if ($queue_moh_sound == "\$\${us-ring}" || $queue_moh_sound == "us-ring") {
        $select_options .= "        <option value='\$\${us-ring}' selected='selected'>".$text['option-usring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\$\${us-ring}'>".$text['option-usring']."</option>\n";
    }
    if ($queue_moh_sound == "\$\${pt-ring}" || $queue_moh_sound == "pt-ring") {
        $select_options .= "        <option value='\$\${pt-ring}' selected='selected'>".$text['option-ptring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\$\${pt-ring}'>".$text['option-ptring']."</option>\n";
    }
    if ($queue_moh_sound == "\$\${fr-ring}" || $queue_moh_sound == "fr-ring") {
        $select_options .= "        <option value='\$\${fr-ring}' selected='selected'>".$text['option-frring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\$\${fr-ring}'>".$text['option-frring']."</option>\n";
    }
    if ($queue_moh_sound == "\$\${uk-ring}" || $queue_moh_sound == "uk-ring") {
        $select_options .= "        <option value='\$\${uk-ring}' selected='selected'>".$text['option-ukring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\$\${uk-ring}'>".$text['option-ukring']."</option>\n";
    }
    if ($queue_moh_sound == "\$\${rs-ring}" || $queue_moh_sound == "rs-ring") {
        $select_options .= "        <option value='\$\${rs-ring}' selected='selected'>".$text['option-rsring']."</option>\n";
    }
    else {
        $select_options .= "        <option value='\$\${rs-ring}'>".$text['option-rsring']."</option>\n";
    }

In resources/switch.php around line: 2792

Change
                        elseif (substr($queue_moh_sound, 0, 2) == '${' && substr($queue_moh_sound, -5) == 'ring}') {
To

                                                elseif (substr($queue_moh_sound, 0, 3) == '$${' && substr($queue_moh_sound, -5) == 'ring}') {

Original comment by Digitald...@gmail.com on 15 Sep 2014 at 9:34

GoogleCodeExporter commented 9 years ago
PS Anything I post is completely unofficial and may break your system

Original comment by Digitald...@gmail.com on 15 Sep 2014 at 9:38