Changeset 11330

Show
Ignore:
Timestamp:
02/09/11 04:24:21 (2 years ago)
Author:
mbrevda
Message:

re #4750 - one more change to make the call flow more intuative

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.8/directory/agi-bin/directory.agi

    r11328 r11330  
    9494    } 
    9595    //wait for a responce before restarting loop 
    96     $ret = $dir->agi->wait_for_digit(10000); 
    97     if (trim($ret['result'])) { 
    98       $ret['result'] = chr($ret['result']); 
    99     } 
     96    if (!isset($ret) || !$ret) { 
     97      $ret = $dir->agi->wait_for_digit(10000); 
     98      if (trim($ret['result'])) { 
     99        $ret['result'] = chr($ret['result']); 
     100      } 
     101    }  
     102 
    100103     
    101104    debug("got result: ".$ret['result']);