cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1627
Views
0
Helpful
6
Replies

Mediasense API: getSessions by isConference

zeroone555
Level 1
Level 1

Hi all,

I try to call Mediasense API via getSession with condition "isConference", but I receive result "The fieldName parameter is invalid".

I don't know how to solve this. Below is my code:

{

  "requestParameters": [{

  "fieldName": "isConference",

  "fieldConditions": [{

  "fieldOperator": "between",

  "fieldValues": ["true"]

  }],

  "paramConnector": "AND"

  }, {

  "fieldName": "sessionState",

  "fieldConditions": [{

  "fieldOperator": "equals",

  "fieldValues": ["CLOSED_NORMAL"]

  }]

  }],

  "pageParameters": {

  "offset": 0,

  "limit": 1000

  }

}

Thank you for help

Trinnachart

1 Accepted Solution

Accepted Solutions

nitinsi
Cisco Employee
Cisco Employee

Hi Trinnachart,

"isConference" isn't a valid input parameter for the MediaSense getSessions API, thus it's failing at your end.

As mentioned in the guide, "isConference" is an Output string in this API.

Please have a look at the developer guide to see valid input parameters. I am pasting MS 11.0 guide. Please have a look at the guide for your respective release.

http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/mediasense/11/Developer_Guide/CUMS_BK_ms-…

Let me know in case of any queries.

Thanks

Nitin Singh

MediaSense Support

View solution in original post

6 Replies 6

ewindgat
Level 5
Level 5

If the issue is the pageParameters, you JSON looks correct. The default is 1,000, so you might try it without providing the paging parameters.

Thank you ewindgat, but I want to search result that is "isConference" calls.

I noticed for isConference, you used between as the operator. I believe isConference is a Boolean, and you might try equals.

Hi ewindgat,

I used

{

  "requestParameters": [{

  "fieldName": "isConference",

  "fieldConditions": [{

  "fieldOperator": "equals",

  "fieldValues": ["true"]

  }],

  "paramConnector": "AND"

  }, {

  "fieldName": "sessionState",

  "fieldConditions": [{

  "fieldOperator": "equals",

  "fieldValues": ["CLOSED_NORMAL"]

  }]

  }],

"pageParameters": {

  "offset": 0,

  "limit": 1000

  }

}

and I got result "The fieldName parameter is Invalid".

It looks like the fieldvalues can only be strings. Booleans are not accepted.

nitinsi
Cisco Employee
Cisco Employee

Hi Trinnachart,

"isConference" isn't a valid input parameter for the MediaSense getSessions API, thus it's failing at your end.

As mentioned in the guide, "isConference" is an Output string in this API.

Please have a look at the developer guide to see valid input parameters. I am pasting MS 11.0 guide. Please have a look at the guide for your respective release.

http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/mediasense/11/Developer_Guide/CUMS_BK_ms-…

Let me know in case of any queries.

Thanks

Nitin Singh

MediaSense Support