"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 [[email protected]:1] Set("PJSIP/20-0000002b", "__RINGTIMER=15") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:1] Macro("PJSIP/20-0000002b", "user-callerid,") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:2] Set("PJSIP/20-0000002b", "AMPUSER=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:3] GotoIf("PJSIP/20-0000002b", "0?report") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:5] Set("PJSIP/20-0000002b", "AMPUSER=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:6] GotoIf("PJSIP/20-0000002b", "0?limit") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:7] Set("PJSIP/20-0000002b", "AMPUSERCIDNAME=Cavern") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:9] GotoIf("PJSIP/20-0000002b", "0?report") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:10] Set("PJSIP/20-0000002b", "AMPUSERCID=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:11] Set("PJSIP/20-0000002b", "__DIAL_OPTIONS=HhTtr") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:13] GotoIf("PJSIP/20-0000002b", "0?limit") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:18] GotoIf("PJSIP/20-0000002b", "0?continue") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:20] Set("PJSIP/20-0000002b", "__TTL=64") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:37] Set("PJSIP/20-0000002b", "CALLERID(number)=20") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:38] Set("PJSIP/20-0000002b", "CALLERID(name)=Cavern") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:39] GotoIf("PJSIP/20-0000002b", "0?cnum") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:40] Set("PJSIP/20-0000002b", "CDR(cnam)=Cavern") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]er-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 [[email protected]:42] Set("PJSIP/20-0000002b", "CHANNEL(language)=en") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:2] Set("PJSIP/20-0000002b", "RingGroupMethod=none") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:3] Set("PJSIP/20-0000002b", "__EXTTOCALL=22") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]:4] Set("PJSIP/20-0000002b", "__PICKUPMARK=22") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:13] ExecIf("PJSIP/20-0000002b", "0?MacroExit()") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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 [[email protected]:15] ExecIf("PJSIP/20-0000002b", "0?MacroExit()") in new stack
[2019-07-19 15:59:24] VERBOSE[12843][C-0000003b] pbx.c: Executing [[email protected]: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.