Author Topic: Live call monitor - Not working.  (Read 6446 times)

troubled

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
    • Email
Live call monitor - Not working.
« on: March 22, 2011, 06:05:27 »
G'day

I have setup queuemetrics for our 2 seat help desk and have been very happy with what it can do. Call recording is working fine for listening to calls that have already completed, but I have now been trying to enable live call monitoring by following the Trixbox document but i cant hear anything. When i press the phone icon, and type in my extension, my extension rings then i just hear a beep and nothing else. I have looked at the asterisk log and think the issue might be something to do with this line:
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck,20110322-155236,1300769556.414: Inbound recording not enabled

But i have checked and call recording is enabled for both inbound/outbound at the extension level as well as on the queue. I have changed the line 11,7 and 14,6 as per the documention.

Here is the parts of the extension_queuemetrics.conf;

; extension 11 makes remote monitoring possible
exten => 11,1,Answer
exten => 11,2,NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )
exten => 11,3,NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" )
exten => 11,4,NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )
exten => 11,5,NoOp( "QM_LOGIN: ${QM_LOGIN}" )
exten => 11,6,NoOp( "QM_AGENT_LOGEXT: ${QM_AGENT_LOGEXT}" )
exten => 11,7,ChanSpy(${QM_AGENT_EXT})
exten => 11,8,Hangup


; extension 14 makes remote monitoring possible for OUTBOUND CALLS
exten => 14,1,Answer
exten => 14,2,NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )
exten => 14,3,NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" )
exten => 14,4,NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )
exten => 14,5,NoOp( "QM_LOGIN: ${QM_LOGIN}" )
exten => 14,6,ChanSpy(${QM_AGENT_EXT})
exten => 14,7,Hangup


Here is the log of asterisk when i press the monitor button;
melvoip*CLI>
  == Manager 'admin' logged on from 127.0.0.1
    -- Executing [305@from-internal:1] Macro("Local/305@from-internal-f958;2", "exten-vm,305,305") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("Local/305@from-internal-f958;2", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/305@from-internal-f958;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/305@from-internal-f958;2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] GotoIf("Local/305@from-internal-f958;2", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:12] Set("Local/305@from-internal-f958;2", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("Local/305@from-internal-f958;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("Local/305@from-internal-f958;2", "Using CallerID "" <>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("Local/305@from-internal-f958;2", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("Local/305@from-internal-f958;2", "VMBOX=305") in new stack
    -- Executing [s@macro-exten-vm:4] Set("Local/305@from-internal-f958;2", "EXTTOCALL=305") in new stack
    -- Executing [s@macro-exten-vm:5] Set("Local/305@from-internal-f958;2", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("Local/305@from-internal-f958;2", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("Local/305@from-internal-f958;2", "RT=15") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("Local/305@from-internal-f958;2", "record-enable,305,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Local/305@from-internal-f958;2", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("Local/305@from-internal-f958;2", "recordingcheck,20110322-155236,1300769556.414") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
 recordingcheck,20110322-155236,1300769556.414: Inbound recording not enabled
    -- <Local/305@from-internal-f958;2>AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("Local/305@from-internal-f958;2", "") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("Local/305@from-internal-f958;2", "dial,15,tr,305") in new stack
    -- Executing [s@macro-dial:1] GotoIf("Local/305@from-internal-f958;2", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("Local/305@from-internal-f958;2", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
  == Manager 'admin' logged on from 127.0.0.1
 dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
 dialparties.agi: Methodology of ring is  'none'
    -- dialparties.agi: Added extension 305 to extension map
    -- dialparties.agi: Extension 305 cf is disabled
    -- dialparties.agi: Extension 305 do not disturb is disabled
    -- dialparties.agi: DbDel CALLTRACE/305 - Caller ID is not defined
    -- dialparties.agi: Filtered ARG3: 305
  == Manager 'admin' logged off from 127.0.0.1
    -- <Local/305@from-internal-f958;2>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("Local/305@from-internal-f958;2", "SIP/305,15,tr") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 6
    -- Called 305
    -- SIP/305-09ff78e0 is ringing
    -- SIP/305-09ff78e0 answered Local/305@from-internal-f958;2
    -- Executing [11@queuemetrics:1] Answer("Local/305@from-internal-f958;1", "") in new stack
    -- Executing [11@queuemetrics:2] NoOp("Local/305@from-internal-f958;1", " "QM_AGENT_CODE: agent/308" ") in new stack
    -- Executing [11@queuemetrics:3] NoOp("Local/305@from-internal-f958;1", " "QM_EXT_MONITOR: 305" ") in new stack
    -- Executing [11@queuemetrics:4] NoOp("Local/305@from-internal-f958;1", " "QM_AGENT_EXT: --" ") in new stack
    -- Executing [11@queuemetrics:5] NoOp("Local/305@from-internal-f958;1", " "QM_LOGIN: demoadmin" ") in new stack
    -- Executing [11@queuemetrics:6] NoOp("Local/305@from-internal-f958;1", " "QM_AGENT_LOGEXT: " ") in new stack
    -- Executing [11@queuemetrics:7] ChanSpy("Local/305@from-internal-f958;1", "--") in new stack
    -- <Local/305@from-internal-f958;1> Playing 'beep.gsm' (language 'en')
    -- Executing [h@macro-dial:1] Macro("Local/308@from-internal-1656;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("Local/308@from-internal-1656;2", "vw") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("Local/308@from-internal-1656;2", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("Local/308@from-internal-1656;2", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("Local/308@from-internal-1656;2", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("Local/308@from-internal-1656;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("Local/308@from-internal-1656;2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Local/308@from-internal-1656;2' in macro 'hangupcall'
  == Spawn extension (macro-dial, h, 1) exited non-zero on 'Local/308@from-internal-1656;2'
  == Spawn extension (macro-dial, s, 7) exited non-zero on 'Local/308@from-internal-1656;2' in macro 'dial'
  == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'Local/308@from-internal-1656;2' in macro 'exten-vm'
  == Spawn extension (from-internal, 308, 1) exited non-zero on 'Local/308@from-internal-1656;2'
  == End MixMonitor Recording Local/308@from-internal-1656;2
  == Spawn extension (ext-queues, 340, 11) exited non-zero on 'SIP/088XXXXXX9-0a0959d8'
  == End MixMonitor Recording SIP/088xxxxxx9-0a0959d8
  == Manager 'admin' logged off from 127.0.0.1

If anyone can point me in the right direction, that would be great.

Thanks

Paul

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Live call monitor - Not working.
« Reply #1 on: March 22, 2011, 14:50:33 »
    -- Executing [11@queuemetrics:2] NoOp("Local/305@from-internal-f958;1", " "QM_AGENT_CODE: agent/308" ") in new stack
    -- Executing [11@queuemetrics:3] NoOp("Local/305@from-internal-f958;1", " "QM_EXT_MONITOR: 305" ") in new stack
    -- Executing [11@queuemetrics:4] NoOp("Local/305@from-internal-f958;1", " "QM_AGENT_EXT: --" ") in new stack
    -- Executing [11@queuemetrics:5] NoOp("Local/305@from-internal-f958;1", " "QM_LOGIN: demoadmin" ") in new stack
    -- Executing [11@queuemetrics:6] NoOp("Local/305@from-internal-f958;1", " "QM_AGENT_LOGEXT: " ") in new stack
    -- Executing [11@queuemetrics:7] ChanSpy("Local/305@from-internal-f958;1", "--") in new stack



As you can see, you are trying to chanspy  on extension "--", so this does not do much sense.
In the example above, you were trying to chanspy on agent/308 that was likely SIP/308, correct?

Then you could do something like:

Code: [Select]
exten => 11,7,ChanSpy(SIP/${QM_AGENT_CODE:6})

And it would likely work.




troubled

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
    • Email
Re: Live call monitor - Not working.
« Reply #2 on: March 24, 2011, 03:45:42 »
G'day

I treid that and it didnt work. The caller was agent/308 as they are hot desking. When i changed the line to  QM_AGENT_CODE, it tried to chanspy agent/302, but I guess it should of been SIP/302. The agents number is the same as the SIP number, ie SIP301 logs in with agent/301.

    -- Executing [11@queuemetrics:1] Answer("Local/305@from-internal-6198;1", "") in new stack
    -- Executing [11@queuemetrics:2] NoOp("Local/305@from-internal-6198;1", " "QM_AGENT_CODE: agent/302" ") in new stack
    -- Executing [11@queuemetrics:3] NoOp("Local/305@from-internal-6198;1", " "QM_EXT_MONITOR: 305" ") in new stack
    -- Executing [11@queuemetrics:4] NoOp("Local/305@from-internal-6198;1", " "QM_AGENT_EXT: --" ") in new st ack
    -- Executing [11@queuemetrics:5] NoOp("Local/305@from-internal-6198;1", " "QM_LOGIN: demoadmin" ") in new stack
    -- Executing [11@queuemetrics:6] NoOp("Local/305@from-internal-6198;1", " "QM_AGENT_LOGEXT: " ") in new s tack
    -- Executing [11@queuemetrics:7] ChanSpy("Local/305@from-internal-6198;1", "agent/302") in new stack
    -- <Local/305@from-internal-6198;1> Playing 'beep.gsm' (language 'en')


Paul

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Live call monitor - Not working.
« Reply #3 on: March 24, 2011, 10:10:59 »
That s why you need to make it SIP/${QM_AGENT_CODE:6} - this means SIP/ plus the AGENT_CODE minus its first 6 characters.

troubled

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
    • Email
Re: Live call monitor - Not working.
« Reply #4 on: March 29, 2011, 12:28:39 »
Thank you very much, it works nicely now.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Live call monitor - Not working.
« Reply #5 on: March 30, 2011, 16:52:21 »
 ;D