Changeset 11342 for modules/branches/2.9/core/agi-bin
- Timestamp:
- 02/11/11 18:40:47 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/core/agi-bin/user_login_out.agi
r9667 r11342 52 52 $que_devstate = get_var( "QUEDEVSTATE" ) == "TRUE" ? true : false; 53 53 $intercom_code = get_var( "INTERCOMCODE" ); 54 $campon_toggle = get_var( "CAMPONTOGGLE" ); 54 55 55 56 $ast_version14 = version_compare($ast_version, "1.4", "ge"); … … 278 279 global $dnd_devstate; 279 280 global $intercom_code; 281 global $campon_toggle; 280 282 global $ast_version14; 281 283 … … 285 287 if ($devices) { 286 288 $dial_string = get_dial_string($devices); 289 290 if ($campon_toggle != 'nocampon' && $campon_toggle != '') { 291 $dev_arr = explode('&',$dial_string); 292 $hint_val = 'ccss:'.implode('&ccss:',$dev_arr); 293 $response = $astman->send_request('Command',array('Command'=>$dp_pre."add extension {$campon_toggle}{$user},hint,{$hint_val} into ext-local replace")); 294 } 287 295 if ($dnd_devstate) { 288 296 $dial_string .= "&Custom:DND$user"; … … 298 306 if ($intercom_code != 'nointercom' && $intercom_code != '') { 299 307 $response = $astman->send_request('Command',array('Command'=>$dp_pre."remove extension {$intercom_code}{$user}@ext-local hint")); 308 } 309 if ($campon_toggle != 'nocampon' && $campon_toggle != '') { 310 $response = $astman->send_request('Command',array('Command'=>$dp_pre."remove extension {$campon_toggle}{$user}@ext-local hint")); 300 311 } 301 312 }
