public function create($weight, $priority, $enabled, $friendlyName, $sipUrl) {
        $data = Values::of(array(
            'Weight' => $weight,
            'Priority' => $priority,
            'Enabled' => Serialize::booleanToString($enabled),
            'FriendlyName' => $friendlyName,
            'SipUrl' => $sipUrl,
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new OriginationUrlInstance($this->version, $payload, $this->solution['trunkSid']);
    }
public function create($weight, $priority, $enabled, $friendlyName, $sipUrl) {
        $data = Values::of(array(
            'Weight' => $weight,
            'Priority' => $priority,
            'Enabled' => Serialize::booleanToString($enabled),
            'FriendlyName' => $friendlyName,
            'SipUrl' => $sipUrl,
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new OriginationUrlInstance($this->version, $payload, $this->solution['trunkSid']);
    }
public function create ( $ weight , $ priority , $ enabled , $ friendlyName , $ sipUrl ) { $ data = Values :: of ( array ( 'Weight' => $ weight , 'Priority' => $ priority , 'Enabled' => Serialize :: booleanToString ( $ enabled ) , 'FriendlyName' => $ friendlyName , 'SipUrl' => $ sipUrl , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new OriginationUrlInstance ( $ this -> version , $ payload , $ this -> solution [ 'trunkSid' ] ) ; }
Create a new OriginationUrlInstance

@param integer $weight The value that determines the relative load the URI
should receive compared to others with the same
priority
@param integer $priority The relative importance of the URI
@param boolean $enabled Whether the URL is enabled
@param string $friendlyName A string to describe the resource
@param string $sipUrl The SIP address you want Twilio to route your
Origination calls to
@return OriginationUrlInstance Newly created OriginationUrlInstance
@throws TwilioException When an HTTP error occurs.
Create a new OriginationUrlInstance