ruby on rails - Connect Twilio phone number with Twiml app -
when buy new number twilio , connecting sms url recieve sms reply user following:
twilio.object.account.incoming_phone_numbers.create( :phone_number => number, :sms_url => url )
but when change url have go through numbers , change sms url create twiml app.
question is: can connect phone number when buy twiml app like:
twilio.object.account.incoming_phone_numbers.create( :phone_number => number, :twiml_sid => sid // trying achieve )
or sms_url
!
twilio evangelist here.
you can absolutely this. set voiceapplicationsid parameter when creating new phone number:
$number = $client->account->incoming_phone_numbers->create(array( "friendlyname" => "my company line", "voiceapplicationsid" => "apxxxxxxxxxxxxxxxxxxxxxxxxx", "phonenumber" => "+15105647903" ));
hope helps.
Comments
Post a Comment