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,