AbanteCart Community

Shopping Cart Operations => Support => Topic started by: Sam_78 on April 04, 2018, 11:43:44 AM

Title: twilio extension throwing error
Post by: Sam_78 on April 04, 2018, 11:43:44 AM
I have changed the default from number which was +155... to my twilio test number now I get error
Connection to Twilio server can not be established.
The 'To' number +14... is not a valid phone number..
Check your server configuration or contact your hosting provider.

My number is valid but it should be From +1 4.. not 'To'. Can someone help me to change the test setting of number 'To' 
I have made changes \extensions\default_twilio\admin\controller\responses\extension\default_twilio.php  line 43 and 52 and updated it with my number
\extensions\default_twilio\core\lib\default_twilio.php  line 47 and changed it with my number where is the setting for 'To' so I Can add my mobile number there

Title: Re: twilio extension throwing error
Post by: abolabo on April 05, 2018, 06:39:39 AM
please test sending of sms here
https://www.twilio.com/console/sms/getting-started/build
Also check your countries list.
Title: Re: twilio extension throwing error
Post by: Sam_78 on April 05, 2018, 09:41:18 AM
It works here. If I remove it from test mode everything works so the issue is with test mode. I just need to know if we enter the number from which sms will be send where is the number for 'To' to test it. I think you are using same number as 'To' and 'From' in test connection is this right?
Title: Re: twilio extension throwing error
Post by: abolabo on April 05, 2018, 11:11:43 AM
yes, there was a bug. We already fixed it.
See this commit for details https://github.com/abantecart/abantecart-src/commit/aadda3c7993e85ec6e9668ec893048683f02aca8
Title: Re: twilio extension throwing error
Post by: Sam_78 on April 06, 2018, 11:02:54 AM
Thank you sir! appreciate you.