freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

no suitable candidates found

Open nikkadim opened this issue 3 years ago • 9 comments

Describe the bug Can't disable proxy on the following scheme (user softphone) ->10.9.0.20 (user SIP portal) -> 10.9.0.23 (Freeswitch)-> 10.9.0.125 (PSTN gate) Only works when inbound-proxy-media is enabled.

getting INCOMPATIBLE_DESTINATION with a matching codecs:

2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:3839 Set Codec sofia/internal/[email protected] PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2020-10-16 02:08:26.681117 [DEBUG] switch_core_codec.c:111 sofia/internal/[email protected] Original read codec set to PCMU:0
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:4329 Searching for rtp candidate.
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:4329 Searching for rtcp candidate.
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:4376 Look for Relay Candidates as last resort
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:4329 Searching for rtp candidate.
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:4329 Searching for rtcp candidate.
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:4382 sofia/internal/[email protected] no suitable candidates found.
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
2020-10-16 02:08:26.681117 [DEBUG] switch_core_media.c:5911 sofia/internal/[email protected] Set 2833 dtmf send payload to 101 recv payload to 101
2020-10-16 02:08:26.681117 [NOTICE] switch_channel.c:3908 Hangup sofia/internal/[email protected] [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
2020-10-16 02:08:26.681117 [DEBUG] switch_ivr_originate.c:3808 sofia/internal/[email protected] Media Establishment Failed.
2020-10-16 02:08:26.681117 [NOTICE] switch_ivr_originate.c:3810 Hangup sofia/internal/73337000967 [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION]
2020-10-16 02:08:26.681117 [DEBUG] switch_ivr_originate.c:3995 Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION]
2020-10-16 02:08:26.681117 [INFO] mod_dptools.c:3631 Originate Failed.  Cause: INCOMPATIBLE_DESTINATION

To Reproduce Using Freeswitch 1.10.5-release under Centos 7.8.2003 (Core)

sofia status profile internal

=================================================================================================
Name                    internal
Domain Name             N/A
Auto-NAT                false
DBName                  sofia_reg_internal
Pres Hosts              10.10.9.23,10.10.9.23
Dialplan                XML
Context                 public
Challenge Realm         auto_from
RTP-IP                  10.9.0.123
SIP-IP                  10.9.0.123
URL                     sip:[email protected]:5060
BIND-URL                sip:[email protected]:5060;transport=udp,tcp
WS-BIND-URL             sip:[email protected]:5066;transport=ws
WSS-BIND-URL            sips:[email protected]:7443;transport=wss
HOLD-MUSIC              /usr/local/freeswitch/sounds/music/16000/partita-no-3-in-e-major-bwv-1006-1-preludio.wav
OUTBOUND-PROXY          N/A
CODECS IN               PCMA,PCMU
CODECS OUT              PCMA,PCMU
TEL-EVENT               101
DTMF-MODE               rfc2833
CNG                     13
SESSION-TO              0
MAX-DIALOG              0
NOMEDIA                 false
LATE-NEG                true
PROXY-MEDIA             false
ZRTP-PASSTHRU           false
AGGRESSIVENAT           false
CALLS-IN                20
FAILED-CALLS-IN         20
CALLS-OUT               20
FAILED-CALLS-OUT        0
REGISTRATIONS           0
=================================================================================================

Expected behavior There should be no difference for the local network with or without proxy.

Package version or git hash

  • Version 1.10.5-release

Trace logs Provide freeswitch logs w/ DEBUG and UUID logging enabled

nikkadim avatar Oct 15 '20 21:10 nikkadim

log.txt

nikkadim avatar Oct 15 '20 21:10 nikkadim

set your candidate-acl correctly

briankwest avatar Nov 06 '20 16:11 briankwest

@briankwest what could be incorrect about candidate-acl? indernal.xml

<param name="apply-inbound-acl" value="domains"/>
<param name="local-network-acl" value="localnet.auto"/>

acl.conf.xml

    <list name="domains" default="deny">
      <node type="allow" domain="$${domain}"/>
       <node type="allow" cidr="10.9.0.0/24"/>
    </list>

nikkadim avatar Nov 06 '20 19:11 nikkadim

had line in dialplan with ignore_sdp_ice=true <action application="bridge" data="{ignore_sdp_ice=true}sofia/gateway/10.9.0.125/XXXXXXXX"/> wich is apprently did not work(!), untill I add: <action application="set" data="ignore_sdp_ice=true"/>

that's resolved the issue, but should it be like that?

PS: again this is for latest 1.10.5-release

nikkadim avatar Dec 07 '20 15:12 nikkadim

I have the same problem. And I solved it by adding "ignore_sdp_ice" configure in dialplan just as @nikkadim said. So I wonder if it is not an acl problem but a sdp ice problem. Can any body help me out.

progcxw avatar Jul 25 '22 03:07 progcxw

I am struggling with the same case. <action application="set" data="ignore_sdp_ice=true"/> helps. I've not found a description of the parameter. I call from the browser by jsSIP. But I do not hear sound. fs_cli debug logs show that it sends back. In the browser, I do not see the stream and do hear anything.

victor-shelepen avatar Jul 28 '22 11:07 victor-shelepen

finally fix it. I modified sip_profiles/internal.xml

<param name="apply-candidate-acl" value="wan_v4.auto"/>
<param name="apply-candidate-acl" value="localnet.auto"/>
<param name="apply-candidate-acl" value="rfc1918.auto"/>
<param name="apply-candidate-acl" value="any_v4.auto"/>

However reloadxml or reloadacl didn't work, until I restarted freeswitch.. So the most important step is restarting ur freeswitch?

progcxw avatar Aug 03 '22 03:08 progcxw

I had the same problem. I solved it by adding these lines in the profile.

param name="apply-candidate-acl" value="localnet.auto param name="apply-candidate-acl" value="rfc1918.auto

andreslavariega avatar Mar 23 '23 19:03 andreslavariega

I solved it by at conf file autoload_configs/acl.conf.xml '' add <node type="allow" cidr="10.171.4.0/24"/> <node type="allow" cidr="10.171.5.0/24"/> as below: `

<list name="wan.auto" default="allow">
  <node type="allow" cidr="10.171.4.0/24"/>
  <node type="allow" cidr="10.171.5.0/24"/>
</list>

<!--
    This will traverse the directory adding all users
    with the cidr= tag to this ACL, when this ACL matches
    the users variables and params apply as if they
    digest authenticated.
-->
<list name="domains" default="deny">
  <!-- domain= is special it scans the domain from the directory to build the ACL -->
  <node type="allow" domain="$${domain}"/>
  <!-- use cidr= if you wish to allow ip ranges to this domains acl. -->
  <!-- <node type="allow" cidr="192.168.0.0/24"/> -->
  <node type="allow" cidr="10.171.4.0/24"/>
  <node type="allow" cidr="10.171.5.0/24"/>
</list>`

ScarlettXa avatar Dec 21 '23 09:12 ScarlettXa