$fm['grplist'][$selection + 1] = $temp; Aastra_manage_followme_Asterisk($user, 'set_grplist', $fm['grplist']); } break; # Update idle screen message status # Update idle screen message status case 'msg': # update screen message require_once 'AastraIPPhoneStatus.class.php'; $object = new AastraIPPhoneStatus(); $object->setSession('aastra-xml'); $index = Aastra_get_status_index_Asterisk('follow'); if ($value != '1') { $object->addEntry($index, ''); } else { if (Aastra_is_status_uri_supported()) { $object->addEntry($index, Aastra_get_label('Follow-me activated', $language), '', NULL, $XML_SERVER . '&action=change_status2', 1); $object->addIcon('1', 'Icon:World'); } else { $object->addEntry($index, Aastra_get_label('Follow-me activated', $language)); } } break; # Select way to add external number # Select way to add external number case 'select_info': # Get Current value $fm = Aastra_manage_followme_Asterisk($user, 'get_all'); # Retrieve personal numbers $array_user = Aastra_manage_userinfo_Asterisk($user, 'get'); $array_user = array_flip($array_user);
} Aastra_save_user_context($user, 'notify', $data); break; # Message # Message case 'send': # Retrieve Message $data = Aastra_get_user_context($user, 'message'); # Send message if ($data['long'] != '' and $data['short'] != '') { require_once 'AastraIPPhoneStatus.class.php'; $object = new AastraIPPhoneStatus(); $object->setBeep(); $object->setSession('message'); if (Aastra_size_display_line() > 20) { if (Aastra_is_status_uri_supported() and $data['uri'] != '') { $object->addEntry('0', $data['long'], 'alert', '10', $data['uri']); } else { $object->addEntry('0', $data['long'], 'alert', '10'); } } else { $object->addEntry('0', $data['short'], 'alert', '10'); } # Delete message Aastra_save_user_context($user, 'message', NULL); } else { require_once 'AastraIPPhoneExecute.class.php'; $object = new AastraIPPhoneExecute(); $object->addEntry(''); } break;