/**
* (non-PHPdoc)
* @see PAGI\Client.IClient::dial()
*/
public function dial($channel, array $options = array())
{
$start = time();
array_unshift($options, $channel);
$result = new DialResult($this->exec('Dial', $options));
$end = time();
$result->setPeerName($this->getFullVariable('DIALEDPEERNAME'));
$result->setPeerNumber($this->getFullVariable('DIALEDPEERNUMBER'));
$result->setDialedTime($end - $start);
$result->setAnsweredTime($this->getFullVariable('ANSWEREDTIME'));
$result->setDialStatus($this->getFullVariable('DIALSTATUS'));
$result->setDynamicFeatures($this->getFullVariable('DYNAMIC_FEATURES'));
return $result;
}