public function hangup($channel = false) { $cmd = 'HANGUP'; if ($channel !== false) { $cmd .= ' "' . $channel . '"'; } $result = $this->send($cmd); if ($result->isResult(-1)) { throw new ChannelDownException('Hangup failed'); } }
public function hangup() { $args = func_get_args(); $this->assertCall('hangup', $args); return parent::hangup(); }