unintelligible audio using ExtenSpy

Hello everyone,

I’m trying to use Extenspy with D option to get both sides of the call separated,

But I can’t hear the audio correctly, when spy, the audio is noisy and unintelligible. I’ve even tried programmatically decoding and separating the channels. In case option D doesn’t generate an “standard audio” but without success…

I have some pjsip extensions configured as follows:

[6001]
type=endpoint
transport=transport-udp
context=from-internal
allow=all
auth=6001
aors=6001
direct_media=no
force_rport=yes

This is my dialplan:

[from-internal]
exten => _555.,1,ExtenSpy(PJSIP/${EXTEN:3:4},DqE)
exten => _555.,n,Hangup

exten => _600[123],1,NoOp(calling)
same => n,Dial(PJSIP/${EXTEN},30)
same => n,hangup

I’m using microsip as a softphone and opus as audio codec. I’ve tried other codecs but same result…

What am I doing wrong? I am using asterisk 20.12.0

Best Regards,

Pachi

What is your end goal?

Hi Jcolp,

Thanks for your quick response.

My goal is transcribe the call conversation in real time.

I have a program to call the extenSpy to receive de audio to be transcibed, each speaker separately.

I think that in my case, Extenspy is better than MixMonitor to transcribe in real time,

The D option in extenSpy would be perfect but I cannot use the audio correctly.

The audio is noisy calling using a softphone or decoding and deinterleave the audio programatically :(.

Regards.

Another option would be to make 2 calls to spy the caller and called,
but I cannot configure the dialplan to spy a specific leg, always listen the same leg:

[from-internal]
exten => _555.,1,Answer()
exten => _555.,n,NoOp(Channel : ${CHANNEL})
exten => _555.,n,NoOp(Context : ${CONTEXT})
exten => _555.,n,NoOp(Extensions : ${EXTEN})
exten => _555.,n,ExtenSpy(PJSIP/${EXTEN:3:4}@from-internal,qEo)
exten => _555.,n,Hangup

scenario:

user 6001 call 6003
user 6002 call 5556001

     -- Executing [5556001@from-internal:1] Answer("PJSIP/6002-00000091", "") in new stack
       > 0x7fd37c03e5b0 -- Strict RTP learning after remote address set to: 192.168.90.70:4022
    -- Executing [5556001@from-internal:2] NoOp("PJSIP/6002-00000091", "Channel : PJSIP/6002-00000091") in new stack
    -- Executing [5556001@from-internal:3] NoOp("PJSIP/6002-00000091", "Context : from-internal") in new stack
    -- Executing [5556001@from-internal:4] NoOp("PJSIP/6002-00000091", "Extensions : 5556001") in new stack
    -- Executing [5556001@from-internal:5] ExtenSpy("PJSIP/6002-00000091", "PJSIP/6001,qEo") in new stack
       > 0x7fd37c03e5b0 -- Strict RTP switching to RTP target address 192.168.90.70:4022 as source
  == Spying on channel PJSIP/6003-00000087
    -- Attaching spy channel PJSIP/6002-00000091 to PJSIP/6003-00000087    ****** spy 6003 leg *****

Maybe the ‘o’ option is not valid here, I tried other options without success

I don’t know what I’m doing wrong :frowning:

Regards.

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