Early dialog with sendonly

BZ
Branko Zebec
Thu, Sep 21, 2023 8:30 AM

Hello,

I use ALSA native audio device. In the early dialogue on 180 I get SDP with
sendonly and the media is updated. I get a ringback tone through RTP, but
it is not heard on the audio device.

If I change manually in pjmedia_stream_start function stream->enc->paused =
0; then it works.

I see that

/* Return sound playback frame. */
if (conf->ports[0]->tx_level) {

is always 0.

What could be the problem?

Thank you.

Best regards,
Branko

Hello, I use ALSA native audio device. In the early dialogue on 180 I get SDP with sendonly and the media is updated. I get a ringback tone through RTP, but it is not heard on the audio device. If I change manually in pjmedia_stream_start function stream->enc->paused = 0; then it works. I see that /* Return sound playback frame. */ if (conf->ports[0]->tx_level) { is always 0. What could be the problem? Thank you. Best regards, Branko
BZ
Branko Zebec
Fri, Sep 22, 2023 9:24 AM

Hello,

I see that i don't get rtp receive on_rx_rtp in early dialog
when stream->enc->paused = 1 because of sendonly in SDP 180 ringing. But
wireshark include rtp with ringback tone.

If I copy this flag stream->enc->paused = 0; hardcoded
into pjmedia_stream_start then it starts working and I get on_rx_rtp.

Best regards,
Branko

V V čet., 21. sep. 2023 ob 10:30 je oseba Branko Zebec <
branko.zebec@gmail.com> napisala:

Hello,

I use ALSA native audio device. In the early dialogue on 180 I get SDP
with sendonly and the media is updated. I get a ringback tone through RTP,
but it is not heard on the audio device.

If I change manually in pjmedia_stream_start function stream->enc->paused
= 0; then it works.

I see that

 /* Return sound playback frame. */
 if (conf->ports[0]->tx_level) {

is always 0.

What could be the problem?

Thank you.

Best regards,
Branko

Hello, I see that i don't get rtp receive on_rx_rtp in early dialog when stream->enc->paused = 1 because of sendonly in SDP 180 ringing. But wireshark include rtp with ringback tone. If I copy this flag stream->enc->paused = 0; hardcoded into pjmedia_stream_start then it starts working and I get on_rx_rtp. Best regards, Branko V V čet., 21. sep. 2023 ob 10:30 je oseba Branko Zebec < branko.zebec@gmail.com> napisala: > Hello, > > I use ALSA native audio device. In the early dialogue on 180 I get SDP > with sendonly and the media is updated. I get a ringback tone through RTP, > but it is not heard on the audio device. > > If I change manually in pjmedia_stream_start function stream->enc->paused > = 0; then it works. > > I see that > > /* Return sound playback frame. */ > if (conf->ports[0]->tx_level) { > > is always 0. > > What could be the problem? > > Thank you. > > Best regards, > Branko > > >