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

Updating audio service provider info using setuser

RaviSabharanjak
Level 1
Level 1

Hello,

I have extracted subscriber access code, participant access code and dial in numbers from my audio service provider for my users. I want to update these into the corresponding webex account.

I have tried the below XML via powershell -

$ReqUpdate = "<?xml version='1.0' encoding='UTF-8'?>
       <serv:message xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:serv='http://www.webex.com/schemas/2002/06/service'>
       <header><securityContext>
        <webExID>$WBXUser</webExID>
        <password>$WBXPass</password>
        <siteID>$SID</siteID>
       </securityContext></header>
       <body><bodyContent xsi:type='java:com.webex.service.binding.user.SetUser'>
        <webExId>$webExID</webExId>"
$ReqUpdate = $ReqUpdate +
                    "<tspAccount><tspAccountType>
                        <accountIndex>1</accountIndex>
                        <subscriberAccessCode>$Pin</subscriberAccessCode>
                        <participantAccessCode>$ConfCode</participantAccessCode>
                        <tollFreeCallInNumber>$DialTollFree</tollFreeCallInNumber>
                        <tollCallInNumber>$DialToll</tollCallInNumber>
                    </tspAccountType></tspAccount>"

$ReqUpdate = $ReqUpdate + "</bodyContent></body></serv:message>"

However the request fails, with an error:"Authorize TSP account error". Can someone point out what I might be doing wrong?

thanks,

-Ravi

Authorize TSP account error

Authorize TSP account error

3 Replies 3

nmorrow
Cisco Employee
Cisco Employee

Hello,

     This error means that the audio provider rejected the provided audio details as invalid. Your XML request is structured properly for your intent, except that tspAccountType should just be tspAccount:

$ReqUpdate = $ReqUpdate +

                    "<tspAccount><tspAccount>

                        <accountIndex>1</accountIndex>

                        <subscriberAccessCode>$Pin</subscriberAccessCode>

                        <participantAccessCode>$ConfCode</participantAccessCode>

                        <tollFreeCallInNumber>$DialTollFree</tollFreeCallInNumber>

                        <tollCallInNumber>$DialToll</tollCallInNumber>

                    </tspAccount></tspAccount>"

thanks Nathan, Is the information verified against the provider before accepting it? I did not realize that..

I have been trying with dummy information for the codes etc (Just to see if the call goes thro). I will retry with the correct info.

that worked out, thanks for the help!

regards,

-Ravi