"Monitor" function on Digium phones?

Anybody know how to get this to work? Is it like the intercom function where you need to add a ‘call alert’ in the Digium Phones module?

It appears in the logs as

[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [22@from-internal:1] Set("PJSIP/20-0000002b", "__RINGTIMER=15") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [22@from-internal:2] Macro("PJSIP/20-0000002b", "exten-vm,22,22,0,0,0") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:1] Macro("PJSIP/20-0000002b", "user-callerid,") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/20-0000002b", "TOUCH_MONITOR=1563551964.124") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/20-0000002b", "AMPUSER=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("PJSIP/20-0000002b", "0?report") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("PJSIP/20-0000002b", "1?Set(REALCALLERIDNUM=20)") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:5] Set("PJSIP/20-0000002b", "AMPUSER=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("PJSIP/20-0000002b", "0?limit") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:7] Set("PJSIP/20-0000002b", "AMPUSERCIDNAME=Cavern") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:8] ExecIf("PJSIP/20-0000002b", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:9] GotoIf("PJSIP/20-0000002b", "0?report") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:10] Set("PJSIP/20-0000002b", "AMPUSERCID=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:11] Set("PJSIP/20-0000002b", "__DIAL_OPTIONS=HhTtr") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:12] Set("PJSIP/20-0000002b", "CALLERID(all)="Cavern" <20>") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:13] GotoIf("PJSIP/20-0000002b", "0?limit") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:14] ExecIf("PJSIP/20-0000002b", "0?Set(GROUP(concurrency_limit)=20)") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:15] ExecIf("PJSIP/20-0000002b", "0?Set(CHANNEL(language)=)") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:16] NoOp("PJSIP/20-0000002b", "Macro Depth is 2") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:17] GotoIf("PJSIP/20-0000002b", "1?report2:macroerror") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx_builtins.c: Goto (macro-user-callerid,s,18)
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:18] GotoIf("PJSIP/20-0000002b", "0?continue") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:19] ExecIf("PJSIP/20-0000002b", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:20] Set("PJSIP/20-0000002b", "__TTL=64") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:21] GotoIf("PJSIP/20-0000002b", "1?continue") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx_builtins.c: Goto (macro-user-callerid,s,37)
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:37] Set("PJSIP/20-0000002b", "CALLERID(number)=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:38] Set("PJSIP/20-0000002b", "CALLERID(name)=Cavern") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:39] GotoIf("PJSIP/20-0000002b", "0?cnum") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:40] Set("PJSIP/20-0000002b", "CDR(cnam)=Cavern") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:41] Set("PJSIP/20-0000002b", "CDR(cnum)=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-user-callerid:42] Set("PJSIP/20-0000002b", "CHANNEL(language)=en") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:2] Set("PJSIP/20-0000002b", "RingGroupMethod=none") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:3] Set("PJSIP/20-0000002b", "__EXTTOCALL=22") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:4] Set("PJSIP/20-0000002b", "__PICKUPMARK=22") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:5] Set("PJSIP/20-0000002b", "RT=15") in new stack
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:6] ExecIf("PJSIP/20-0000002b", "0?Macro(vm,22,DIRECTDIAL,)") in new stack
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:7] ExecIf("PJSIP/20-0000002b", "0?MacroExit()") in new stack
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:8] ExecIf("PJSIP/20-0000002b", "0?Gosub(ext-intercom,*8022,1())") in new stack
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:9] ExecIf("PJSIP/20-0000002b", "0?MacroExit()") in new stack
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:10] ExecIf("PJSIP/20-0000002b", "0?ChanSpy(PJSIP/22,q)") in new stack
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:11] ExecIf("PJSIP/20-0000002b", "0?MacroExit()") in new stack
[2019-07-19 15:59:24] WARNING[12843][C-0000003b] chan_sip.c: This function can only be used on SIP channels.
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:12] ExecIf("PJSIP/20-0000002b", "0?Macro(vm,22,DIRECTDIAL,)") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:13] ExecIf("PJSIP/20-0000002b", "0?MacroExit()") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:14] ExecIf("PJSIP/20-0000002b", "0?Gosub(ext-intercom,*8022,1())") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:15] ExecIf("PJSIP/20-0000002b", "0?MacroExit()") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [s@macro-exten-vm:16] ExecIf("PJSIP/20-0000002b", "1?ChanSpy(PJSIP/22,q)") in new stack

it appears to ‘work’, as in, the monitoring phone shows a call in progress, but the monitored phone is blisfully unaware a monitoring attempt is underway! :wink:

thanks

That’s the part that’s doing the monitoring, and the ‘w’ option isn’t specified, so it’s just going to be listening.

ah - have I misunderstood what the monitor function is? It’s not designed to ring an extension, open a connection and then “listen” like a room monitor on an older PBX?
Instead its function is to silently intrude on an existing call, allowing someone to listen in?
That could make sense…

ChanSpy is for an existing channel. With older “traditional” PBXes, you didn’t to have a SIP session already running, so taking the phone off-hook to listen in would be a different thing.

Now having said that - there should be a way to put an Intercom call into “listen” mode and perform a largely similar process.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.