FreePBX Device and User mode problem

  1. 11 years ago

    Hello,

    We have been using FOP@ for several months now. We recently moved from Elastix to FreePBX. After the migration we installed a NEW license of FOP2 and everything worked as expected.

    However when we changed to "Device and User" mode, all of our automatically populated users disappeared. Also, the board now displays that all lines are active, when many phones are offline.

    How can we fix this?

  2. admin

    26 Oct 2013 Administrator

    The bug is in FREEPBX not in FOP2, It was discussed several times in the forum:

    View Post 1056

    Here is your own fix as you submited via email, for the benefit of other users bitten by that bug:

                 set_queue_hint($user, $device);
                    if(version_compare(get_var("ASTVERSION"), "1.6.1", "ge")) {
                            $user_event_body = "\"UserDeviceAdded|Data: {$user}\\,{$device}\"";
                    } else if(version_compare(get_var("ASTVERSION"), "1.6.0", "ge")) {
                            $user_event_body = "UserDeviceAdded,\"Data: {$user}\\\\,{$device}\"";
                    } else {
                            $user_event_body = "\"UserDeviceAdded|Data: {$user},{$device}\"";
                    }
                    //Added for FOP2 by Ralph Burleson on 24 Oct 2013
                    $user_event_body = "\"UserDeviceAdded,Data: {$user}\\\\,{$device}\"";
        $agi->exec("UserEvent", $user_event_body);

    Best regards,

or Sign Up to reply!