src/Twilio.php
protected function makeCall(TwilioCallMessage $message, $to)
    {
        $params = [
            'url' => trim($message->content),
        ];

        $this->fillOptionalParams($params, $message, [
            'statusCallback',
            'statusCallbackMethod',
            'method',
            'status',
            'fallbackUrl',
            'fallbackMethod',
        ]);

        if (! $from = $this->getFrom($message)) {
            throw CouldNotSendNotification::missingFrom();
        }

        return $this->twilioService->calls->create(
            $to,
            $from,
            $params
        );
    }
protected function makeCall(TwilioCallMessage $message, $to)
    {
        $params = [
            'url' => trim($message->content),
        ];

        $this->fillOptionalParams($params, $message, [
            'statusCallback',
            'statusCallbackMethod',
            'method',
            'status',
            'fallbackUrl',
            'fallbackMethod',
        ]);

        if (! $from = $this->getFrom($message)) {
            throw CouldNotSendNotification::missingFrom();
        }

        return $this->twilioService->calls->create(
            $to,
            $from,
            $params
        );
    }
protected function makeCall ( TwilioCallMessage $ message , $ to ) { $ params = [ 'url' => trim ( $ message -> content ) , ] ; $ this -> fillOptionalParams ( $ params , $ message , [ 'statusCallback' , 'statusCallbackMethod' , 'method' , 'status' , 'fallbackUrl' , 'fallbackMethod' , ] ) ; if ( ! $ from = $ this -> getFrom ( $ message ) ) { throw CouldNotSendNotification :: missingFrom ( ) ; } return $ this -> twilioService -> calls -> create ( $ to , $ from , $ params ) ; }
Make a call using the Twilio Service.

@param TwilioCallMessage $message
@param string $to
@return \Twilio\Rest\Api\V2010\Account\CallInstance
@throws \Twilio\Exceptions\TwilioException
Make a call using the Twilio Service .