public function hangup()
    {
      $url = URIResource::Make($this->path, array($this->id));
      $data = new DataPacket(array("state" => CALL_STATES::completed));
      $this->client->post($url, $data->get());

      return Constructor::Make($this, $data->get());
    }
public function hangup()
    {
      $url = URIResource::Make($this->path, array($this->id));
      $data = new DataPacket(array("state" => CALL_STATES::completed));
      $this->client->post($url, $data->get());

      return Constructor::Make($this, $data->get());
    }
public function hangup ( ) { $ url = URIResource :: Make ( $ this -> path , array ( $ this -> id ) ) ; $ data = new DataPacket ( array ( "state" => CALL_STATES :: completed ) ) ; $ this -> client -> post ( $ url , $ data -> get ( ) ) ; return Constructor :: Make ( $ this , $ data -> get ( ) ) ; }
Hangup a call

needs a call id
@return void
Hangup a call