shoretel

Execute (sub)commands in secondary shell/command on SSH server in Python Paramiko

一笑奈何 提交于 2019-12-19 10:57:47
问题 I'm having a problem with a ShoreTel voice switch, and I'm trying to use Paramiko to jump into it and run a couple commands. What I believe the problem might be, is that the ShoreTel CLI gives different prompts than the standard Linux $ . It would look like this: server1$:stcli Mitel>gotoshell CLI> (This is where I need to enter 'hapi_debug=1') Is Python still expecting that $ , or am I missing something else? I thought it might be a time thing, so I put those time.sleep(1) between commands.

SSRS Expression for IF, THEN ELSE

落爺英雄遲暮 提交于 2019-12-12 08:21:44
问题 I am creating a field from tables with our shoretel phone system and i am intergrating reports via SSRS and i need some assisstance with an expression. =if(Fields!ExitReason.Value 7, then if (Fields!ExitReason.Value 1, else if (Fields!ExitReason.Value 0,))) Definition results should be: =if(Fields!ExitReason.Value) = 7 then 1 else 0 I am try to get the field to give me 7, 1 else 0. Any assistance would be great. Thanks, Arron 回答1: You should be able to use IIF(Fields!ExitReason.Value = 7, 1,

Shoretel - Outgoing calls query

余生颓废 提交于 2019-12-11 08:24:49
问题 I am trying to figure out which table/column stores the information about the number of outgoing calls an agent has made. I can get the total number of incoming calls using the query below, but I am not sure about how to get total outgoing calls. The database is MySQL and the application is Shoretel. Any help would be greatly appreciated! SELECT sum(a_acd_answered) FROM ecc.agent, ecc.agnto where agent.agent_id = agnto.agent_id and a_date >= ''2014-03-09'' and a_date <= ''2014-03-15'' and

Multiple SELECT CASE statements in Query For Shoretel Reports

。_饼干妹妹 提交于 2019-12-11 06:46:08
问题 I am trying to do a query that allow for multiple columns in a view. Any assistance would be helpful. SELECT queuecall1.StartTime, queuecall1.QueueName CASE WHEN ExitReason = 7 THEN 1 ELSE 0 END AS CallsAbandoned WHEN ExitReason = 1 THEN 1 ELSE 0 END AS CallsAgent WHEN calltype = 1 THEN 1 ELSE 0 END) AS CallsInternal WHEN calltype = 2 THEN 1 ELSE 0 END) AS CallsExternal FROM (queuecall queuecall1 INNER JOIN connect connect1 ON queuecall1.ConnectTableID=connect1.ID) INNER JOIN call call1 ON