question

William Reulein avatar image
William Reulein asked Phong Vu answered

Create meeting API - error

We can create meetings successfully when using the main number/extension.

But when indicating the Host ext id we are receiving the following error :

{ "errorCode": "MET-106", "message": "Cannot create meeting. Reason : [Provider internal error]" }

What does this mean ?

This is the request :

{  "host": {    "id": "3045786020"  },  "allowJoinBeforeHost": false,  "startHostVideo": false,  "startParticipantsVideo": false,  "autoRecordType": "local",  "topic": "Test",  "meetingType": "Instant" }

restapi
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

·
Phong Vu avatar image
Phong Vu answered

I think the API reference is incorrect. I got the same error when assigning the host extension id that way. Let me talk to the documentation team.

Meanwhile, this way works well for me. I don't know what programming language you are writing but this snippet is in Node JS

function create_meeting(extId)
    var endpoint = "/account/~/extension/~/meeting"
    if (extId != "")
        endpoint == "/account/~/extension/" + extId + "/meeting"
    platform.post(endpoint, {
              topic: 'Test Meeting',
              meetingType: 'Instant',
              allowJoinBeforeHost: false,
              startHostVideo: true,
              startParticipantsVideo: false
        })
        .then(function (resp) {
            console.log( 'Start Your Meeting: ' + resp.json().links.startUri )
            console.log( 'Meeting id: ' + resp.json().id )
        })
        .catch(function(e){
          console.log(e.message)
        });
}


1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.