BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
149 stars 73 forks source link

proxy cannot communicate with b2bua if `transports=sips:*` is specified #192

Open skhrshin opened 3 months ago

skhrshin commented 3 months ago

Overview

When proxy is configured with b2bua, it attempts to communicate with b2bua server when a call arrives, but it fails if proxy is not listening any ports other than TLS.

Environment

Flexisip 2.3.4 on Debian GNU/Linux bookworm

Steps to reproduce

  1. Configure proxy with b2bua, specifying transports=sips:*
  2. Connect to proxy from client
  3. Call somewhere

Expected behavior

proxy can communicate with b2bua server.

Actual behavior

Communication fails with the following error.

flexisip-debug-nta: selecting scheme sip
flexisip-debug-nta outgoing create: no transport protocol

Remarks

As workaround, I had to specify transports=sip:127.0.0.1 sips:* instead.

Failxxx commented 1 month ago

Hello @skhrshin, Thank you for taking the time to report a problem with Flexisip.

Indeed, Flexisip (proxy) cannot send requests to other clients/servers using a transport that is not defined in the global/transports parameter. This is expected behavior.

Sincerely, Félix

skhrshin commented 1 month ago

I see.

I would be nice if some friendly error message is emitted even if log-level is set to "error", whereas the error I reported is recorded only when log-level is set to "debug".