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

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -