Switchvox root user (Solved)

Talk with others about developing applications for Switchvox

Moderators: bmdhacks, dpodolsky, tristand, jwitt, joshuas

Switchvox root user (Solved)

Postby orobbert » Wed Oct 19, 2011 3:03 pm

I'm attempting to use the test suite to execute a users.voicemail.getList query on a mailbox. The Switchvox support tells us that we should use the "super administrator" to access this data, but using the admin account we have set up does not work. I suspect they are talking about the root user but we don't have the password for that.

Is there some way for us to access these API calls with the current admin that we have, or do we require the root in order to do this?
Last edited by orobbert on Tue Nov 15, 2011 6:48 pm, edited 1 time in total.
orobbert
Newsterisk
 
Posts: 6
Joined: Wed Oct 19, 2011 3:00 pm

Re: Switchvox root user

Postby barrangatan » Wed Oct 19, 2011 7:21 pm

Hi - you should be able to run the API method using the default 'admin' account credentials (username: admin) that you'd use to log in to the Admin Web Panel. Alternatively, because it is a 'user' API command that is meant to be run by individual extension users, you can also use the extension user's credentials (username: ext. no; password: voicemail or numeric password) to run the API

Also there is no root access to the box as it's not supported.
barrangatan
Newsterisk
 
Posts: 23
Joined: Fri Jul 22, 2011 10:06 am

Re: Switchvox root user

Postby orobbert » Wed Oct 26, 2011 12:25 pm

When I ran the command in the Digium test suite using the credentials of the extension I wanted to get data on (as per your suggestion) I got the following message:

<response method="switchvox.users.voicemail.getList">
<errors>
<error code="27168" message="Your account is not permitted to run this action." />
</errors>
</response>
orobbert
Newsterisk
 
Posts: 6
Joined: Wed Oct 19, 2011 3:00 pm

Re: Switchvox root user

Postby orobbert » Tue Nov 08, 2011 3:00 pm

Bump.
orobbert
Newsterisk
 
Posts: 6
Joined: Wed Oct 19, 2011 3:00 pm

Re: Switchvox root user

Postby ricmarques » Tue Nov 08, 2011 4:09 pm

Were you using the extension number or the account_id of the extension? They are not one and the same...
Ric Marques
Team One Networking, Digium Select Reseller
Roseville, CA
http://www.teamonenetworking.com
ricmarques
Newsterisk
 
Posts: 49
Joined: Wed Jan 05, 2011 6:22 pm
Location: Roseville, CA

Re: Switchvox root user

Postby barrangatan » Tue Nov 08, 2011 8:45 pm

Sorry for not checking in sooner. Yes be sure that the account_id is used in the actual query as in my example below. Otherwise you will get the 'account not permitted' error you got:

Code: Select all
<request method="switchvox.users.voicemail.getList">
    <parameters>
        <account_id>1337</account_id>   --------> Use account_id, not extension number
    </parameters>
</request>
barrangatan
Newsterisk
 
Posts: 23
Joined: Fri Jul 22, 2011 10:06 am

Re: Switchvox root user

Postby orobbert » Wed Nov 09, 2011 6:15 pm

Oh, I wasn't aware there was a difference. I will try that and see what happens. Thanks!
orobbert
Newsterisk
 
Posts: 6
Joined: Wed Oct 19, 2011 3:00 pm

Re: Switchvox root user

Postby orobbert » Wed Nov 09, 2011 6:23 pm

Got this on the API test suite:

"Because of failed login attempts, you can no longer use this page. Please contact your Switchvox administrator to restore full access."

Would this be something I can clear myself from the admin panel?
orobbert
Newsterisk
 
Posts: 6
Joined: Wed Oct 19, 2011 3:00 pm

Re: Switchvox root user

Postby dpodolsky » Mon Nov 14, 2011 11:12 am

Yes. Login to the admin suite and goto Server -> Access Control -> Blocked IP Addresses, find your IP and click the "Unblock" button. You triggered the Switchvox automatic brute force prevention blocking feature in Switchvox. If you have an IP or network you trust then you can click on the "Acces Control Rules" tab and turn on the "Never Block IPs" for a particular network.
dpodolsky
Oldsterisk
 
Posts: 325
Joined: Thu Apr 23, 2009 2:35 pm

Re: Switchvox root user

Postby orobbert » Tue Nov 15, 2011 6:47 pm

I have successfully managed to use the API call on our server. Thanks for your help, everyone.
orobbert
Newsterisk
 
Posts: 6
Joined: Wed Oct 19, 2011 3:00 pm


Return to Switchvox Developers

Who is online

Users browsing this forum: No registered users and 0 guests