Skip to main content
Question

"errorCode" : "CMN-101" on CallOut from C# SDK

  • February 8, 2021
  • 2 replies
  • 1018 views

Running this code from my C# program...


callOutRequest.from = new MakeCallOutCallerInfoRequestFrom {deviceId = fromDeviceId};
callOutRequest.to = new MakeCallOutCallerInfoRequestTo {phoneNumber = toNum};
CallSession session = await rc.Restapi().Account().Telephony().CallOut().Post(callOutRequest);


Resulting in this...

Content: {
   "errors" : [
      {
         "errorCode" : "CMN-101",
         "message" : "Parameter [phoneNumber] value is invalid"
      }
   ]
}


The "Phone number is a valid, 10 digit phone number". The "device Id" is a 12 digit number taken from my RC account.


What's wrong with what I'm doing here?


Thanks,

Shelby

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2314 replies
  • February 8, 2021

Phone number is in E.164 format. Make sure to add + sign in front of the country code.


  • Author
  • Participating Frequently
  • 6 replies
  • February 9, 2021

Thanks, but I did try adding a "+1" to the number and got the same results.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings