Author Topic: Real Time Monitor - Broken Pipe  (Read 2126 times)

grim8634

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Real Time Monitor - Broken Pipe
« on: June 24, 2013, 11:20:44 »
Hi All,

I'm trying to get real time monitors working. Unfortunately I'm getting a Broken Pipe error when the monitor extension is answered.

Upon answer I get the  following log snippet:

Code: [Select]
    -- Connected line update to Local/4828@from-internal-000000ad;2 prevented.
    -- SIP/4828-000001b8 answered Local/4828@from-internal-000000ad;2
    -- Executing [s@macro-auto-blkvm:1] Set("SIP/4828-000001b8", "__MACRO_RESULT=") in new stack
    -- Executing [s@macro-auto-blkvm:2] Macro("SIP/4828-000001b8", "blkvm-clr,") in new stack
    -- Executing [s@macro-blkvm-clr:1] Set("SIP/4828-000001b8", "SHARED(BLKVM,Local/4828@from-internal-000000ad;2)=") in new stack
    -- Executing [s@macro-blkvm-clr:2] Set("SIP/4828-000001b8", "GOSUB_RETVAL=") in new stack
    -- Executing [s@macro-blkvm-clr:3] MacroExit("SIP/4828-000001b8", "") in new stack
    -- Executing [s@macro-auto-blkvm:3] ExecIf("SIP/4828-000001b8", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=4828)") in new stack
    -- Executing [s@macro-auto-blkvm:4] ExecIf("SIP/4828-000001b8", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=Graeme Lawton)") in new stack
       > Channel Local/4828@from-internal-000000ad;1 was answered.
[2013-06-24 10:16:54] ERROR[23580]: utils.c:1218 ast_careful_fwrite: fwrite() returned error: Broken pipe
[2013-06-24 10:16:54] ERROR[23580]: utils.c:1218 ast_careful_fwrite: fwrite() returned error: Broken pipe
    -- Executing [11@queuemetrics:1] Answer("Local/4828@from-internal-000000ad;1", "") in new stack
    -- Executing [11@queuemetrics:2] NoOp("Local/4828@from-internal-000000ad;1", " "QM_AGENT_CODE: agent/5985" ") in new stack
    -- Executing [11@queuemetrics:3] NoOp("Local/4828@from-internal-000000ad;1", " "QM_EXT_MONITOR: 4828" ") in new stack
    -- Executing [11@queuemetrics:4] NoOp("Local/4828@from-internal-000000ad;1", " "QM_AGENT_EXT: --" ") in new stack
    -- Executing [11@queuemetrics:5] NoOp("Local/4828@from-internal-000000ad;1", " "QM_LOGIN: admin / " ") in new stack
    -- Executing [11@queuemetrics:6] NoOp("Local/4828@from-internal-000000ad;1", " "QM_AGENT_LOGEXT: sip/5985" ") in new stack
    -- Executing [11@queuemetrics:7] ChanSpy("Local/4828@from-internal-000000ad;1", "5985") in new stack
    -- <Local/4828@from-internal-000000ad;1> Playing 'beep.gsm' (language 'en')

I hear the beeps on the monitor extension, but no call. I've got a chanspy feature code setup on the system that works fine.

Anyone able to point me in the right direction?

Thanks a lot!

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Real Time Monitor - Broken Pipe
« Reply #1 on: June 25, 2013, 14:24:40 »
You should pass ChanSpy the whole string SIP/5985 and not just 5985 - Asterisk would not know what 5985 is. Check what you have at 11@queuemetrics