php - Is there anyway to send a text message from Twilio so that the from number contains an extension? -


is there anyway send text message twilio number contains extension?

something this:

<?php // php helper library twilio.com/docs/php/install require_once('twilio-php/services/twilio.php'); // loads library  // account sid , auth token twilio.com/user/account $sid = "..."; $token = "..."; $client = new services_twilio($sid, $token); $client->account->messages->sendmessage(     "+441337944066+123#", //     "+441234567891", //     "hello world" // body ); 

at moment attempting produces error message:

 fatal error: uncaught exception 'services_twilio_restexception' message 'the 'from' number +441337944066+123# not valid phone number or shortcode.' 

twilio support here.

unfortunately not support extensions when sending messages.

however if you're looking dial extension on voice calls can use senddigits parameter:

https://www.twilio.com/docs/api/rest/making-calls

tom


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -