BARGE, LISTEN and WHISPER

Hi guys i Followed this process for Barging, Listen and Whisper

But when i tried and tested it i cant hear any voice or anything on the conversing two extensions at all and they can hear either, any idea guys.?

.

Add below snippet to extensions_custom.conf . Reload asterisk and you’re good to go. To listen on extension 123, simply dial *222123.

[ext-local-custom]

;listen
exten => _*222x.#,1,Macro(user-callerid,)
exten => _*222x.#,n,Answer
exten => _*222x.#,n,NoCDR
exten => _*222x.#,n,Wait(1)
exten => _*222x.#,n,ChanSpy(sip/${EXTEN:4},q)
exten => _*222x.#,n,Hangup

;whisper
exten => _*223x.#,1,Macro(user-callerid,)
exten => _*223x.#,n,Answer
exten => _*223x.#,n,NoCDR
exten => _*223x.#,n,Wait(1)
exten => _*223x.#,n,ChanSpy(sip/${EXTEN:4},qw)
exten => _*223x.#,n,Hangup

;barge
exten => _*224x.#,1,Macro(user-callerid,)
exten => _*224x.#,n,Answer
exten => _*224x.#,n,NoCDR
exten => _*224x.#,n,Wait(1)
exten => _*224x.#,n,ChanSpy(SIP/${EXTEN:4},qB)
exten => _*224x.#,n,Hangup

here is the logs of the barging process

== Setting global variable ‘SIPDOMAIN’ to ‘10.10.123.250’
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Executing [*[email protected]:1] Macro(“PJSIP/5110-00000019”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/5110-00000019”, “TOUCH_MONITOR=1588464849.25”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/5110-00000019”, “AMPUSER=5110”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/5110-00000019”, “HOTDESCKCHAN=5110-00000019”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/5110-00000019”, “HOTDESKEXTEN=5110”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/5110-00000019”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:6] ExecIf(“PJSIP/5110-00000019”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:7] ExecIf(“PJSIP/5110-00000019”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/5110-00000019”, “0?report”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/5110-00000019”, “1?Set(REALCALLERIDNUM=5110)”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/5110-00000019”, “AMPUSER=5110”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/5110-00000019”, “0?limit”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/5110-00000019”, “AMPUSERCIDNAME=5110”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/5110-00000019”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/5110-00000019”, “0?report”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/5110-00000019”, “AMPUSERCID=5110”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/5110-00000019”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/5110-00000019”, “CALLERID(all)=“5110” <5110>”) in new stack
– Executing [[email protected]:18] ExecIf(“PJSIP/5110-00000019”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:19] GotoIf(“PJSIP/5110-00000019”, “0?limit”) in new stack
– Executing [[email protected]:20] ExecIf(“PJSIP/5110-00000019”, “0?Set(GROUP(concurrency_limit)=5110)”) in new stack
– Executing [[email protected]:21] ExecIf(“PJSIP/5110-00000019”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:22] NoOp(“PJSIP/5110-00000019”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:23] GotoIf(“PJSIP/5110-00000019”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,24)
– Executing [[email protected]:24] GotoIf(“PJSIP/5110-00000019”, “0?continue”) in new stack
– Executing [[email protected]:25] ExecIf(“PJSIP/5110-00000019”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:26] Set(“PJSIP/5110-00000019”, “__TTL=64”) in new stack
– Executing [[email protected]:27] GotoIf(“PJSIP/5110-00000019”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,43)
– Executing [[email protected]:43] Set(“PJSIP/5110-00000019”, “CALLERID(number)=5110”) in new stack
– Executing [[email protected]:44] Set(“PJSIP/5110-00000019”, “CALLERID(name)=5110”) in new stack
– Executing [[email protected]:45] GotoIf(“PJSIP/5110-00000019”, “0?cnum”) in new stack
– Executing [[email protected]:46] Set(“PJSIP/5110-00000019”, “CDR(cnam)=5110”) in new stack
– Executing [[email protected]:47] Set(“PJSIP/5110-00000019”, “CDR(cnum)=5110”) in new stack
– Executing [[email protected]:48] Set(“PJSIP/5110-00000019”, “CHANNEL(language)=en”) in new stack
– Executing [*[email protected]:2] Answer(“PJSIP/5110-00000019”, “”) in new stack
> 0x7f54b4037e70 – Strict RTP learning after remote address set to: 10.10.122.43:49168
> 0x7f54b4037e70 – Strict RTP switching to RTP target address 10.10.122.43:49168 as source
– Executing [*[email protected]:3] NoCDR(“PJSIP/5110-00000019”, “”) in new stack
– Executing [*[email protected]:4] Wait(“PJSIP/5110-00000019”, “1”) in new stack
– Executing [*[email protected]:5] ChanSpy(“PJSIP/5110-00000019”, “SIP/5150,qB”) in new stack
> 0x7f54b4037e70 – Strict RTP learning complete - Locking on source address 10.10.122.43:49168

Is ext 5150 ChanSIP or PJSIP?

Here you are listening for SIP only

@PitzKey

5150 is PJPSIP

all extensions are PJPSIP only

Then edit your dialplan to ChanSpy PJSIP/${EXTEN:4} instead of SIP/${EXTEN:4}

@PitzKey Thank you so much, i will try this now

@PitzKey is my context correct.?

should it be – [ext-local-custom] or [from-internal-custom]

That dialplan has been floating around forever, and is not well suited to modern FreePBX systems. Try this:

You can us as-is or modify yours.

1 Like

@lgaetz how do i implement this somehow.? i just copy the dial plan to extensions_custom.conf

and paste it.? then reload asterisk thats all.?

what this mean.?

; Dial local extension with 556 prefix to spy. While spying on
; active channel use the following dtmf input to toggle modes:
; dtmf 4 - spy mode
; 5 - whisper mode
; 6 - barge mode

Yes.

To spy on ext 101, you would dial 556101. While you are spying, you can then press 5 to whisper (only spying channel hears you), press 6 to barge (all parties hear you) or press 4 again to go back to spy (no parties hear you).

@lgaetz

Thanks a lot for your help, i will test this and let you know

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