Author Topic: Problem: one-way audio connection  (Read 15416 times)

Barney

  • Newbie
  • *
  • Posts: 14
    • View Profile
Problem: one-way audio connection
« on: October 18, 2018, 10:55:39 AM »
Hi everybody,

I'm using Yate 5.5 on an OpenWRT router.

Since several weeks I'm using Yate with four easybell VoIP accounts (a
German VoIP provider). The configuration works flawlessly. Now I want to
add my sipgate VoIP account.

I used the easybell definitions as template for the new sipgate account
and made some relevant changes. Following the entry for sipgate in
accfile.conf:

===============================================
[sipgate-id]
enabled=yes
protocol=sip
username=sipgate-id
interval=120
authname=sipgate-id
password=sipgate-pw
domain=sipgate.de
registrar=sipgate.de:5060
outbound=sipgate.de:5060
localaddress=yes
===============================================

Everything else are yate default values.

With the above entry I can sucessfully register, start calls and other can
call me.

When my sipgate number is called, the caller hears me, but I cannot here
the caller. When I call someone via the sipgate number, both parties can
hear each other.

According to a hint on the sipgate support website I added the following
line in accfile.conf:

===============================================
ip_transport_localport=5160
===============================================

I defined an additional listener in ysipchan.conf:

===============================================
[listener sipgate]
port=5160
===============================================

But these changes did not solve the problem.

I think, there's no problem with the router's firewall definitions,
because phoning with easybell works without any problems.

The question is: why does easybell work with the yate standard
definitions, but not sipgate.

The yate log with the call to my sipgate number is attached.

There is one line in the log, which could indicate an error:

===============================================
<yrtp:WARN> Initial timeout in channel sip/3 wrapper [0xc9e980]
===============================================

I hope, someone has an idea how to solve the problem.

Barney

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Problem: one-way audio connection
« Reply #1 on: October 18, 2018, 11:54:44 PM »
Please attach a log with an incoming call containing SIP signaling and internal message
Please raise the debug level
Connect to yate using telnet and type the following commands:
debug sip level 10
sniffer on





Barney

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Problem: one-way audio connection
« Reply #2 on: October 19, 2018, 06:40:32 AM »
Attached a yate log with debug sip level 10 and sniffer on.

Thanks for your time and reading.

Barney

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Problem: one-way audio connection
« Reply #3 on: October 19, 2018, 06:49:13 AM »
The log contains more incoming calls.
Please specify which one is the one to track and what it's suppose to happen

Barney

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Problem: one-way audio connection
« Reply #4 on: October 19, 2018, 08:08:43 AM »
Sorry for the missing information. :-(

The whole log is just on call, this is the call flow:

extension [11] on ip-phone 10.91.25.41
-> yate on router LAN=10.91.25.1 / WAN=192.168.91.52
-> easybell 004950379690842
-> sipgate 050377779993/2538201e0
-> yate on router LAN=10.91.25.1 / WAN=192.168.91.52
-> extension [15] on ip-phone 10.91.25.41

Barney

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Problem: one-way audio connection
« Reply #5 on: October 20, 2018, 02:24:35 PM »
The log contains more incoming calls.
Please specify which one is the one to track and what it's suppose to happen

Attached you'll find a shorter yate log, which shows a real outbound call from 01775757542 to my sipgate number 004950377779993 (sipgate-id 2538201e0). The result is the same as in the previous log: the caller can hear the called party, but the called party can't hear the caller.

Thanks a lot for your efforts und have a nice sunday.

Barney

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Problem: one-way audio connection
« Reply #6 on: October 25, 2018, 12:31:29 AM »
2018-10-20_16:58:01.025520 <yrtp:INFO> Guessed local IP '192.168.91.52' for remote '212.9.44.38'
2018-10-20_16:58:01.025980 <yrtp:INFO> Session 'yrtp/1476115015' 0x67b9d8 bound to 192.168.91.52:17442 +RTCP [0x686470]
2018-10-20_16:58:01.035580 <sip:INFO> 'udp:0.0.0.0:5060' sending code 200 0x5d8938 to 217.10.79.9:5060 [0x5d2a98]
------
SIP/2.0 200 OK
...
o=yate 1540047481 1540047481 IN IP4 109.41.64.217
c=IN IP4 109.41.64.217

This shows local RTP addr is different (configured or detected).
May be a NAT issue.
Can you sahre your configuration: ysipchan.conf, yrtpchan.conf, accfile.conf?
If yes you should remove private data (password, username ...)

Barney

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Problem: one-way audio connection
« Reply #7 on: October 27, 2018, 10:45:17 AM »
Hi Marian,

thanks for your reply.

In the meantime I asked the sipgate support team for help. They suggested to add the following lines to my configuration:

outbound=tcpproxy.sipgate.de:5060
ip_transport=tcp

The whole section for my sipgate basic account in accfile.conf is now:

===============================================
[sipgate-id]
enabled=yes
protocol=sip
username=sipgate-id
interval=120
authname=sipgate-id
password=top-secret
domain=sipgate.de
registrar=sipgate.de:5060
outbound=tcpproxy.sipgate.de:5060
localaddress=yes
; force transport via TCP
ip_transport=tcp
===============================================

With these changes the problem of the one-way audio connection vanished.

Thanks for your efforts and have a nice weekend.

Barney

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Problem: one-way audio connection
« Reply #8 on: October 29, 2018, 01:21:56 AM »
Can you please dump a log with an outgoing call?
Just to compare the IPs

Barney

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Problem: one-way audio connection
« Reply #9 on: October 30, 2018, 04:46:03 AM »
Can you please dump a log with an outgoing call?
Just to compare the IPs

What dump? With the new configuration?

Barney

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Problem: one-way audio connection
« Reply #10 on: October 30, 2018, 04:48:17 AM »
Sorry, forget about it: missed the part the problem was solved!