06-02-2015 11:41 AM
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
06-02-2015 12:09 PM
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>"
06-02-2015 12:34 PM
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.
06-02-2015 01:35 PM
that worked out, thanks for the help!
regards,
-Ravi
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide