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