switchboard panel permissions

Talk with others about developing applications for Switchvox

Moderators: bmdhacks, dpodolsky, tristand, jwitt, joshuas

switchboard panel permissions

Postby punkgenius » Tue Jul 03, 2012 11:37 am

to call this api call: switchvox.users.callQueues.getTodaysStatus ( http://developers.digium.com/switchvox/ ... daysStatus ), you need two parameters:
1- the account_id of someone
2- the account_id of a callqueue

so, I chose my account_id which i got from the URL while editing my extension and I looped through all the callqueue account_ids from switchvox.extensions.search

but for each, the result is blank, for example:
<result>
<callQueue account_id="1250" name="mycallqueue" extension="1000" >
<my_status login_status="" current_call_duration="" current_caller_id_name="" current_caller_id_number="" calls_taken="" login_time="" time_of_last_call="" total_talk_time="" avg_talk_time="" max_talk_time="" paused_time="" />
</callQueue>
</result>

the api doc page mentions, "The results will differ depending on the Switchboard Panel Permissions for the spcified user in the specified queue."

so... how do I give my account_id/extension permission to view callqueue stats?

i went to setup->extensions->permissions and I created an extension permission mapping for my extension to have all permissions to all extensions, but still I get no data on any call queues.

ideas on what am I doing wrong?
punkgenius
Newsterisk
 
Posts: 3
Joined: Tue Jul 03, 2012 10:24 am

Re: switchboard panel permissions

Postby IraH » Thu Jul 05, 2012 12:33 pm

I just tried the same thing.

If I run the:
Code: Select all
<request method="switchvox.callQueues.getCurrentStatus">
    <parameters>
        <account_id>1167</account_id>
    </parameters>
</request>

I get:
Code: Select all
<response method="switchvox.callQueues.getCurrentStatus">
   <result>
      <call_queue account_id="1167" extension="6001" call_queue_name="Reception" strategy="ring_all">
         <queue_members>
            <queue_member account_id="1150" extension="3400" fullname="Pam Johnson" order="1" logged_in_status="permanent" login_type="permanent" talking_to_name="CINTI BELL TELE" talking_to_number="5134210133" time_of_last_call="2012-07-05 14:25:02" paused_since="" paused="0" completed_calls="24" missed_calls="0" avg_talk_time="30.21" max_talk_time="135" login_time="52018" paused_time="0" />
               </queue_members>
         <waiting_callers>
               </waiting_callers>
      </call_queue>
   </result>
</response>


With the account_id 1150 and call_queue_account 1167, I get:
Code: Select all
<response method="switchvox.users.callQueues.getTodaysStatus">
   <result>
      <callQueue account_id="1167" name="Reception" extension="6001"  >
          <my_status  login_status="" current_call_duration="" current_caller_id_name="" current_caller_id_number="" calls_taken="" login_time="" time_of_last_call="" total_talk_time="" avg_talk_time="" max_talk_time="" paused_time="" />
      </callQueue>
   </result>
</response>


It's obvious there is stats to be retrieved. I would say it's broken.
IraH
Newsterisk
 
Posts: 28
Joined: Thu Jan 27, 2011 9:19 am

Re: switchboard panel permissions

Postby dpodolsky » Sat Aug 04, 2012 10:01 am

Permissions are per queue. Under Manage Extensions, find the queue you are interested in, click modify, then under the "Permissions" tab you can give different members different permissions levels. Based on the permission level you will get different levels of information from the API.
dpodolsky
Oldsterisk
 
Posts: 325
Joined: Thu Apr 23, 2009 2:35 pm


Return to Switchvox Developers

Who is online

Users browsing this forum: No registered users and 2 guests