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 [*2245150@from-internal:1] Macro(“PJSIP/5110-00000019”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/5110-00000019”, “TOUCH_MONITOR=1588464849.25”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/5110-00000019”, “AMPUSER=5110”) in new stack
– Executing [s@macro-user-callerid:3] Set(“PJSIP/5110-00000019”, “HOTDESCKCHAN=5110-00000019”) in new stack
– Executing [s@macro-user-callerid:4] Set(“PJSIP/5110-00000019”, “HOTDESKEXTEN=5110”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/5110-00000019”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:6] ExecIf(“PJSIP/5110-00000019”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:7] ExecIf(“PJSIP/5110-00000019”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“PJSIP/5110-00000019”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“PJSIP/5110-00000019”, “1?Set(REALCALLERIDNUM=5110)”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/5110-00000019”, “AMPUSER=5110”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“PJSIP/5110-00000019”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:12] Set(“PJSIP/5110-00000019”, “AMPUSERCIDNAME=5110”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“PJSIP/5110-00000019”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“PJSIP/5110-00000019”, “0?report”) in new stack
– Executing [s@macro-user-callerid:15] Set(“PJSIP/5110-00000019”, “AMPUSERCID=5110”) in new stack
– Executing [s@macro-user-callerid:16] Set(“PJSIP/5110-00000019”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:17] Set(“PJSIP/5110-00000019”, “CALLERID(all)=“5110” <5110>”) in new stack
– Executing [s@macro-user-callerid:18] ExecIf(“PJSIP/5110-00000019”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-user-callerid:19] GotoIf(“PJSIP/5110-00000019”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:20] ExecIf(“PJSIP/5110-00000019”, “0?Set(GROUP(concurrency_limit)=5110)”) in new stack
– Executing [s@macro-user-callerid:21] ExecIf(“PJSIP/5110-00000019”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:22] NoOp(“PJSIP/5110-00000019”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:23] GotoIf(“PJSIP/5110-00000019”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,24)
– Executing [s@macro-user-callerid:24] GotoIf(“PJSIP/5110-00000019”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:25] ExecIf(“PJSIP/5110-00000019”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [s@macro-user-callerid:26] Set(“PJSIP/5110-00000019”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:27] GotoIf(“PJSIP/5110-00000019”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,43)
– Executing [s@macro-user-callerid:43] Set(“PJSIP/5110-00000019”, “CALLERID(number)=5110”) in new stack
– Executing [s@macro-user-callerid:44] Set(“PJSIP/5110-00000019”, “CALLERID(name)=5110”) in new stack
– Executing [s@macro-user-callerid:45] GotoIf(“PJSIP/5110-00000019”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:46] Set(“PJSIP/5110-00000019”, “CDR(cnam)=5110”) in new stack
– Executing [s@macro-user-callerid:47] Set(“PJSIP/5110-00000019”, “CDR(cnum)=5110”) in new stack
– Executing [s@macro-user-callerid:48] Set(“PJSIP/5110-00000019”, “CHANNEL(language)=en”) in new stack
– Executing [*2245150@from-internal: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 [*2245150@from-internal:3] NoCDR(“PJSIP/5110-00000019”, “”) in new stack
– Executing [*2245150@from-internal:4] Wait(“PJSIP/5110-00000019”, “1”) in new stack
– Executing [*2245150@from-internal: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