public function transfer($phone, $args = array() /* polymorphic */)
    {
      $url = URIResource::Make($this->path, array($this->id));
      $data = Ensure::Input($args);
      $data->add("transferTo", (string) $phone);
      $data->add("state", CALL_STATES::transferring);

      $response = $this->client->post($url, $data->get());
      
      $id = Locator::Find($response);

      $data->add("id", $id);

      return Constructor::Make($this, $data->get());
    }
public function transfer($phone, $args = array() /* polymorphic */)
    {
      $url = URIResource::Make($this->path, array($this->id));
      $data = Ensure::Input($args);
      $data->add("transferTo", (string) $phone);
      $data->add("state", CALL_STATES::transferring);

      $response = $this->client->post($url, $data->get());
      
      $id = Locator::Find($response);

      $data->add("id", $id);

      return Constructor::Make($this, $data->get());
    }
public function transfer ( $ phone , $ args = array ( ) /* polymorphic */ ) { $ url = URIResource :: Make ( $ this -> path , array ( $ this -> id ) ) ; $ data = Ensure :: Input ( $ args ) ; $ data -> add ( "transferTo" , ( string ) $ phone ) ; $ data -> add ( "state" , CALL_STATES :: transferring ) ; $ response = $ this -> client -> post ( $ url , $ data -> get ( ) ) ; $ id = Locator :: Find ( $ response ) ; $ data -> add ( "id" , $ id ) ; return Constructor :: Make ( $ this , $ data -> get ( ) ) ; }
Transfer a call
Call object MUST already be initialized
or created given a Legal call id
if we dont have a call id throw warning

@param phone: phone number
@param transfer_caller_id: A Phone number
Transfer a call Call object MUST already be initialized or created given a Legal call id if we dont have a call id throw warning