Author Topic: Live monitoring can't hear the audio  (Read 5516 times)

jboily

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Live monitoring can't hear the audio
« on: September 13, 2011, 15:06:06 »
Hi,
On my installation the live monitoring dial the extension i get the phone ringing but i can't hear any voice or audio
I might be missing something with the Chanspy

I look all over but still can't find a solution


(From the install manual)
In order to implement this, you must edit the /etc/asterisk/extensions_queuemetrics.conf and change the following lines as shown here:

...
exten => 11,7,ChanSpy(${QM_AGENT_EXT})
...

...
exten => 14,6,ChanSpy(${QM_AGENT_EXT})

jboily

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: Live monitoring can't hear the audio
« Reply #1 on: September 13, 2011, 17:22:51 »
I found something like changing Local@ext for SIP@ext but since i am new on this i am not sure where to look for to do this change
I am using Trixbox  2.8.0.4

[Sep 13 10:22:50] VERBOSE[17296] logger.c:     -- SIP/264-0000004e answered Local/264@from-internal-052a;2
[Sep 13 10:22:50] VERBOSE[17295] logger.c:        > Channel Local/264@from-internal-052a;1 was answered.
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- Executing [11@queuemetrics:1] Answer("Local/264@from-internal-052a;1", "") in new stack
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- Executing [11@queuemetrics:2] NoOp("Local/264@from-internal-052a;1", " "QM_AGENT_CODE: agent/302" ") in new stack
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- Executing [11@queuemetrics:3] NoOp("Local/264@from-internal-052a;1", " "QM_EXT_MONITOR: 264" ") in new stack
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- Executing [11@queuemetrics:4] NoOp("Local/264@from-internal-052a;1", " "QM_AGENT_EXT: -" ") in new stack
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- Executing [11@queuemetrics:5] NoOp("Local/264@from-internal-052a;1", " "QM_LOGIN: jboily" ") in new stack
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- Executing [11@queuemetrics:6] NoOp("Local/264@from-internal-052a;1", " "QM_AGENT_LOGEXT: sip/3089" ") in new stack
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- Executing [11@queuemetrics:7] ChanSpy("Local/264@from-internal-052a;1", "-") in new stack
[Sep 13 10:22:50] VERBOSE[17301] logger.c:     -- <Local/264@from-internal-052a;1> Playing 'beep.gsm' (language 'en')

jboily

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: Live monitoring can't hear the audio
« Reply #2 on: September 13, 2011, 22:03:39 »
One more thing that i found and if someone can validate.

I am recording the call at the same time and what i found is that you can't do both at the same time, record and lesson live.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Live monitoring can't hear the audio
« Reply #3 on: September 14, 2011, 09:51:36 »
On old versions of Asterisk you could not Chanspy and record at the same time, but I though it was solved since 1.6

jboily

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: Live monitoring can't hear the audio
« Reply #4 on: September 14, 2011, 14:16:09 »
I got that info searching through Google that is why i wander if someone can validate if that info id true or not.
I do run ver 1.6 Asterisk with Trixbox 2.8

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Live monitoring can't hear the audio
« Reply #5 on: September 15, 2011, 09:25:56 »
I am sure this was true up to version 1.4 and I think it was changed in 1.6....

jboily

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: Live monitoring can't hear the audio
« Reply #6 on: September 15, 2011, 15:37:59 »
So if it supposed to work i am still getting no audio, i guess that i am missing something to make it work
Heres the CLI when i try to lesson to live call
I dont know if that can help to solve my problem
ext 264 is the one i am listenning with and QM_AGENT_LOGEXT: sip/3202 is the agent
When i pickup the line i can hear the beep and then i am connected but can't hear the agent talk

Executing [264@from-internal:1] Macro("Local/264@from-internal-eab6;2", "exten-vm,264,264") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("Local/264@from-internal-eab6;2", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/264@from-internal-eab6;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/264@from-internal-eab6;2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("Local/264@from-internal-eab6;2", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("Local/264@from-internal-eab6;2", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("Local/264@from-internal-eab6;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("Local/264@from-internal-eab6;2", "Using CallerID "" <>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("Local/264@from-internal-eab6;2", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("Local/264@from-internal-eab6;2", "VMBOX=264") in new stack
    -- Executing [s@macro-exten-vm:4] Set("Local/264@from-internal-eab6;2", "EXTTOCALL=264") in new stack
    -- Executing [s@macro-exten-vm:5] Set("Local/264@from-internal-eab6;2", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("Local/264@from-internal-eab6;2", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("Local/264@from-internal-eab6;2", "RT=15") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("Local/264@from-internal-eab6;2", "record-enable,264,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Local/264@from-internal-eab6;2", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("Local/264@from-internal-eab6;2", "recordingcheck,20110915-090314,1316091794.3") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
 recordingcheck,20110915-090314,1316091794.3: Inbound recording not enabled
    -- <Local/264@from-internal-eab6;2>AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("Local/264@from-internal-eab6;2", "") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("Local/264@from-internal-eab6;2", "dial,15,tr,264") in new stack
    -- Executing [s@macro-dial:1] GotoIf("Local/264@from-internal-eab6;2", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("Local/264@from-internal-eab6;2", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
       > dialparties.agi: USE_CONFIRMATION:  'FALSE'
       > dialparties.agi: RINGGROUP_INDEX:   ''
 dialparties.agi: Methodology of ring is  'none'
    -- dialparties.agi: Added extension 264 to extension map
    -- dialparties.agi: Extension 264 cf is disabled
    -- dialparties.agi: Extension 264 do not disturb is disabled
       > dialparties.agi: extnum 264 has:  cw: 1; hascfb: 0 [] hascfu: 0 []
 dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
    -- dialparties.agi: DbDel CALLTRACE/264 - Caller ID is not defined
    -- dialparties.agi: Filtered ARG3: 264
    -- <Local/264@from-internal-eab6;2>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("Local/264@from-internal-eab6;2", "SIP/264,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 264
    -- SIP/264-00000001 is ringing
    -- SIP/264-00000001 answered Local/264@from-internal-eab6;2
       > Channel Local/264@from-internal-eab6;1 was answered.
    -- Executing [11@queuemetrics:1] Answer("Local/264@from-internal-eab6;1", "") in new stack
    -- Executing [11@queuemetrics:2] NoOp("Local/264@from-internal-eab6;1", " "QM_AGENT_CODE: agent/301" ") in new stack
    -- Executing [11@queuemetrics:3] NoOp("Local/264@from-internal-eab6;1", " "QM_EXT_MONITOR: 264" ") in new stack
    -- Executing [11@queuemetrics:4] NoOp("Local/264@from-internal-eab6;1", " "QM_AGENT_EXT: -" ") in new stack
    -- Executing [11@queuemetrics:5] NoOp("Local/264@from-internal-eab6;1", " "QM_LOGIN: jboily" ") in new stack
    -- Executing [11@queuemetrics:6] NoOp("Local/264@from-internal-eab6;1", " "QM_AGENT_LOGEXT: sip/3202" ") in new stack
    -- Executing [11@queuemetrics:7] ChanSpy("Local/264@from-internal-eab6;1", "-") in new stack
    -- <Local/264@from-internal-eab6;1> Playing 'beep.gsm' (language 'en')

agorosti

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Re: Live monitoring can't hear the audio
« Reply #7 on: November 27, 2011, 09:58:08 »
We are also experiencing the same problem..  :'(  Is extrange, because on our case, we are able to get audio monitoring using estandar phones and standar dialplan programming in Asterisk,  but we are not able to do it from QM interface....

If you find the solution, please, let us known..

thks

jboily

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: Live monitoring can't hear the audio
« Reply #8 on: November 28, 2011, 18:08:39 »
I did not find any solution to fix this issue but instead i do record the call and it suit my purpose for now.  If i find a solution i will post it

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Live monitoring can't hear the audio
« Reply #9 on: January 18, 2012, 17:52:27 »
One common reason for chanspy not to work is to do this on a monitored call on an old Asterisk.  ;D
Should be fixed on 1.8+