cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
755
Views
0
Helpful
3
Replies

REM-Session Token API sample doesn't work

wli6
Cisco Employee
Cisco Employee

Hi team,

i tried the sample code listed in the tutorial page as below:

https://developer.cisco.com/media/remote-expert-mobile-developer-tutorials/web-sdk/08-encoding-user-to-user-data/encodin…

But when i called the init.php, the response is not as expected, with the response "HTTP Status 422" as below:

Because this is a tutorial for the REM development, it is better to make it working correctly, thanks a lot.

ewindgatcshiyou

1 Accepted Solution

Accepted Solutions

wli6
Cisco Employee
Cisco Employee

Hi ewindgat,

finally after few tries, i find out we also need add the voice attribute, for example ...

"voice":

        {

            "username": "assist-555123456",

            "displayName": "Bob",

            "domain": "192.168.9.118",

            "inboundCallingEnabled": false

        }

View solution in original post

3 Replies 3

ewindgat
Level 5
Level 5

You need to add the AED2.allowedTopic attribute, for instance....

"additionalAttributes":
        {
            "AED2.metadata":
            {
                "role": "consumer"
            },
            "AED2.allowedTopic": "assist-555123456"
        }

wli6
Cisco Employee
Cisco Employee

Hi ewindgat,

according to your comments, i added the AED2.allowedTopic attribute, but the response is the same as before ("HTTP Status 422").

Could you please contact the author of that post, he should know about the correct format of the json data.

Thanks a lot.ewindgatcshiyou

wli6
Cisco Employee
Cisco Employee

Hi ewindgat,

finally after few tries, i find out we also need add the voice attribute, for example ...

"voice":

        {

            "username": "assist-555123456",

            "displayName": "Bob",

            "domain": "192.168.9.118",

            "inboundCallingEnabled": false

        }

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: