Ticket #4401: dialparties.agi.patch

File dialparties.agi.patch, 0.8 kB (added by ianf, 2 years ago)
  • dialparties.agi

    old new  
    185185    debug("get_variable got a \"noresponse\"!  Exiting",3); 
    186186    exit($arg_cnt); 
    187187  } 
    188   $extarray = split( '-', $arg ); 
     188  $extarray = preg_split( '/-/', $arg ); 
    189189  foreach ( $extarray as $k ) { 
    190190    $ext[] = $k; 
    191191    debug("Added extension $k to extension map", 3); 
     
    762762    $device = $device['data']; 
    763763     
    764764    // a user can be logged into multipe devices, append the dial string for each    
    765     $device_array = split( '&', $device ); 
     765    $device_array = preg_split( '/&/', $device ); 
    766766    foreach ($device_array as $adevice) { 
    767767      if (trim($use_confirmation) == "FALSE") { 
    768768        $dds = $agi->database_get('DEVICE',$adevice.'/dial');