Thanks a lot..everything is fine now.
Here is a code:
// start replaced by Sipk;
set_queue_hint($user, $device);
if (version_compare(get_var("ASTVERSION"), "1.8.21.0", "ge")) {
$user_event_body = "\"UserDeviceAdded,Data: {$user}\\\\,{$device}\"";
} else 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}\"";
}
// end replaced by Sipk;
// start replaced by Sipk;
if(version_compare(get_var("ASTVERSION"), "1.8.21.0", "ge")) {
$user_event_body = "\"UserDeviceRemoved,Data: {$current_user}\\\\,{$device}\"";
} else if(version_compare(get_var("ASTVERSION"), "1.6.1", "ge")) {
$user_event_body = "\"UserDeviceRemoved|Data: {$current_user}\\,{$device}\"";
} else if(version_compare(get_var("ASTVERSION"), "1.6.0", "ge")) {
$user_event_body = "UserDeviceRemoved,\"Data: {$current_user}\\\\,{$device}\"";
} else {
$user_event_body = "\"UserDeviceRemoved|Data: {$current_user},{$device}\"";
}
// end replaced by Sipk;