Skip to main content
The First Step
Feb 8, 2021 11:20 PM UTC
Question

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

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
    Community Manager
    Feb 8, 2021 11:58 PM UTC

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

    The First Step
    Feb 9, 2021 12:27 AM UTC

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