News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
SMS is sending 2 times through API
Tags: sdk
Sep 22, 2016 at 12:53pm   •   5 replies  •  0 likes
z-admin

SMS was sending 2 times from the sandbox account, it was working fine till yesterday. When i checked the request from the integration it sends only one time but the API is sending the SMS twice to the phone number.

5 Answers
answered on Sep 30, 2016 at 12:57pm  
You should not need to continue isolating the issue, your results clearly identify this issue as residing within one of two locations:

1. Your application code
2. The SDK which your application code uses

I would continue to Step #2 outlined above: If after sending an SMS successfully using the API Explorer and following the prescribed directions precisely you receive only a single SMS message, this helps isolate the issue you are experiencing to either your implementation code or the C# SDK. I would recommend creating an issue in theRingCentral C# SDK issue tracker on Github. Make sure to provide a link back to this community post as well as providing any other useful information such as which version of the C# SDK you are using and pertinent environment variables.

 0
answered on Sep 30, 2016 at 8:44am  
thanks for the answer, i tried api explorer to send out the sms . It worked fine and has sent the sms only once. as a next step do still need to check the account level setting or i need to post this issue in c#  SDK forum.

 0
answered on Sep 29, 2016 at 7:50am  
Thanks for sharing your code. I've tested (as have several other members of the team) this repeatedly since you've reported it, and I (we) only ever receive a single SMS (of course I am not using the C# Client). Here are some steps you can follow to help isolate this issue better so we can determine the cause of your mysterious duplicate SMS messages.
  1. Use the RingCentral API Explorer to test sending an SMS message. Make sure to use the exact same API keys and user credentials from your sandbox account as what you have used to first obtain a valid access_token using the API Explorer. The API Explorer will cache the access_token until it expires which allows you to test sending an SMS message. Please be certain that when you send the SMS, the POST body you use matches identically to the values you are using for each property in your C# code.

  2. If after sending an SMS successfully using the API Explorer and following the prescribed directions precisely you receive only a single SMS message, this helps isolate the issue you are experiencing to either your implementation code or the C# SDK. I would recommend creating an issue in the RingCentral C# SDK issue tracker on Github. Make sure to provide a link back to this community post as well as providing any other useful information such as which version of the C# SDK you are using and pertinent environment variables.

  3. However, if you still receive a duplicate SMS message, this indicates to me this could be an account-level setting in your RingCentral account or that you might have a 3rd party service such as Zapier configured to send a duplicate message. In this case, I would recommend first making sure you do not have any 3rd party services set to act as a relay for your SMS messages, and if you discover any...retest your code and see if this resolves the issue.

  4. If you do not discover (or know for certain you do not have any 3rd party services configured to operate with your account or extension), then I would recommend investigating the settings in your sandbox account to be certain nothing is configured to relay/duplicate/backup/send this additional SMS.

  5. If you do not locate, or are unable to find any "smoking gun" in your sandbox account, I would recommend you create a developer support case to get some help resolving this issue. Should you however locate a possible cause in your account configuration, I would revert that setting and retry your C# code to see if this resolves the issue.
I'm very interested in learning what the cause of this issue is and how this turns out, so please keep us informed.

 0
answered on Sep 29, 2016 at 6:16am  
Hello Team,

I was doing some more tests and the issue persists, i am sending only one but receiving 2 sms messages after an interval of around 5-7 minutes containing the same text. i have verified my code and it executes only time and after that i quit my application.  I am using c# SDK.
this was sending only one sms some days back but i am not sure why it is seding multiple sms now. please check
////ring central code starts                     
                    var ringCentral = new RingCentral.XDK.ApiClient(appkey, appsecret,defaultendpoint);

                    //Login
                    ringCentral.Login(userphonenumber, password);

                    //Sending SMS
                    ringCentral.SMS.Send(fromnumber, phonenumber, msgcontent);
                   
                    szResponseString = ringCentral.res;
                    
                    var obj = JObject.Parse(szResponseString);
                    string statusresp = (string)obj.SelectToken(ConfigurationManager.AppSettings["messagestatuskey"]);
                    string messageid = (string)obj.SelectToken(ConfigurationManager.AppSettings["messageidkey"]);




 0
answered on Sep 23, 2016 at 12:50pm  
This is the only report of this which we have received. I just tested this many times successfully, and I also tested this with one of our other developer relations engineers in his sandbox account, he also only ever receives a single SMS message.

Could you provide the code you are using to send the SMS message via the API please?

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us