<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="" id="magicdomid9"><span
        class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">Hello,<br>
        <br>
        I have a strange error when proyy-media T38 faxes.<br>
        Freeswitch is behind NAT (internal </span><span
        class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z"><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">192.168.12.248</span>,
        external </span><span
        class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z"><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">5.10.xxx.yyy)</span>,
        other, receiving Server is also a Freeswitch<br>
        <br>
        A connection is made via G.711A, we hear the machines
        negociating, then we receive a T.38 reinvite from the remote
        Freeswitch server.<br>
        The local ATA 30@ reponds with T38 SDP, Freeswitch is passing it
        to the remote site (and there the error occurs). See error in
        bold:<br>
      </span><br>
      <div class="ace-line" id="magicdomid34"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01
            15:28:55.534228 [DEBUG] sofia.c:6937 Channel
            <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/30@192.168.12.248">sofia/internal/30@192.168.12.248</a> entering state
            [completing][200]</span></tt></div>
      <div class="ace-line" id="magicdomid35"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01
            15:28:55.534228 [DEBUG] sofia.c:6944 Duplicate SDP</span></tt></div>
      <div class="ace-line" id="magicdomid36"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">v=0</span></tt></div>
      <div class="ace-line" id="magicdomid37"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">o=30
            8002 8001 IN IP4 192.168.12.99</span></tt></div>
      <div class="ace-line" id="magicdomid38"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">s=SIP
            Call</span></tt></div>
      <div class="ace-line" id="magicdomid39"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">c=IN
            IP4 192.168.12.99</span></tt></div>
      <div class="ace-line" id="magicdomid40"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">t=0 0</span></tt></div>
      <div class="ace-line" id="magicdomid41"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">m=image
            5012 udptl t38</span></tt></div>
      <div class="ace-line" id="magicdomid42"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxVersion:0</span></tt></div>
      <div class="ace-line" id="magicdomid43"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38MaxBitRate:14400</span></tt></div>
      <div class="ace-line" id="magicdomid44"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxRateManagement:transferredTCF</span></tt></div>
      <div class="ace-line" id="magicdomid45"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxMaxBuffer:500</span></tt></div>
      <div class="ace-line" id="magicdomid46"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxMaxDatagram:500</span></tt></div>
      <div class="ace-line" id="magicdomid47"><tt><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxUdpEC:t38UDPRedundancy<br>
            <br>
          </span></tt></div>
      <tt><span class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01
          15:28:55.534228 [DEBUG] sofia.c:6937 Channel
          <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/30@192.168.12.248">sofia/internal/30@192.168.12.248</a> entering state [ready][200]</span></tt></div>
    <div class="" id="magicdomid10"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01
          15:28:55.554501 [DEBUG] mod_sofia.c:2088 Responding with 200
          [OK]</span></tt></div>
    <div class="" id="magicdomid11"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01
          15:28:55.554501 [DEBUG] switch_core_media.c:8955
          sofia/external/0403801xxxxxxx image media sdp:</span></tt></div>
    <div class="" id="magicdomid12"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">v=0</span></tt></div>
    <div class="" id="magicdomid13"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">o=FreeSWITCH
          1480572959 1480572961 IN IP4 5.10.xxx.yyy</span></tt></div>
    <div class="" id="magicdomid14"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">s=FreeSWITCH</span></tt></div>
    <div class="" id="magicdomid15"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">c=IN
          IP4 5.10.xxx.yyy</span></tt></div>
    <div class="" id="magicdomid16"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">t=0 0</span></tt></div>
    <div class="" id="magicdomid17"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">m=image
          29544 udptl t38</span></tt></div>
    <div class="" id="magicdomid18"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxVersion:0</span></tt></div>
    <div class="" id="magicdomid19"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38MaxBitRate:14400</span></tt></div>
    <div class="" id="magicdomid20"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxRateManagement:transferredTCF</span></tt></div>
    <div class="" id="magicdomid21"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxMaxBuffer:500</span></tt></div>
    <div class="" id="magicdomid22"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxMaxDatagram:500</span></tt></div>
    <div class="" id="magicdomid23"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">a=T38FaxUdpEC:t38UDPRedundancy</span></tt></div>
    <div class="" id="magicdomid24"><tt><br>
      </tt></div>
    <div class="" id="magicdomid25"><tt><b><span
            class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01
            15:28:55.554501 [ERR] switch_rtp.c:6420 Poll failed with
            error: 9 [Bad file descriptor]</span></b></tt></div>
    <div class="" id="magicdomid26"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01

          15:28:55.554501 [DEBUG] switch_ivr_bridge.c:712
          sofia/external/0403801xxxxxxx ending bridge by request from
          read function</span></tt></div>
    <div class="" id="magicdomid27"><tt><span
          class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z">2016-12-01
          15:28:55.554501 [DEBUG] switch_ivr_bridge.c:785 BRIDGE THREAD
          DONE [sofia/external/0403801xxxxxxx]</span></tt></div>
    <div class="" id="magicdomid28"><span
        class="author-a-nz78zpo6yz73z1gz65zvz70z8z66zz89zz70z"><tt>2016-12-01

          15:28:55.554501 [NOTICE] switch_ivr_bridge.c:889 Hangup
          sofia/external/0403801xxxxxxx [CS_EXCHANGE_MEDIA]
          [NORMAL_CLEAR</tt><tt><br>
        </tt><br>
        Some background Info:<br>
      </span>
      <ul>
        <li>Freeswitch runs in LXC environment</li>
        <li>Freeswitch runs as non-priviledged user.</li>
      </ul>
      <p>What is the cause of this? Maybe a problem with port 29544? But
        port 29544 was already previously used with G.711A.<br>
        <br>
      </p>
    </div>
    <pre class="moz-signature" cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>

</pre>
  </body>
</html>