Fax2Email setup - Freeswitch is not accepting T38 in reinvites

Fax2Email setup - Freeswitch is not accepting T38 in reinvites

Hi,
Origination carrier sent this invite in SDP

v=0
o=NN 497024071 1 IN IP4 192.10.16.121
s=-
c=IN IP4 55.55.55.55
t=0 0
m=audio 5000 RTP/AVP 8 0


Freeswitch sent 100 trying followed by 200OK


then origination sent this

v=0
o=NN 497024071 2 IN IP4 192.10.16.121
s=-
c=IN IP4 192.10.16.121
t=0 0
m=audio 5000 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=ptime:20


Freeswitch sent 100 trying followed by 200OK

then 

Origination sent one more invite with


v=0
o=NN 497024071 3 IN IP4 192.10.16.121
s=-
c=IN IP4 192.10.16.121
t=0 0
m=image 28006 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxDatagram:1472
a=T38FaxUdpEC:t38UDPRedundancy


Freeswitch sent 
488 not acceptable.


Logs:

3d140c2c-6cb8-428c-b6f2-6f698e1b3bec 2025-11-30 22:45:27.229295 99.13% [DEBUG] switch_core_media.c:5113 sofia/efax-intf/5564@sssd.com T38 ACCEPT on request
3d140c2c-6cb8-428c-b6f2-6f698e1b3bec 2025-11-30 22:45:29.269312 99.10% [DEBUG] switch_core_media.c:5217 sofia/efax-intf/5564@sssd.com T38 IS NOT POSSIBLE on request


Config:

freeswitchtemp /] >>>>> cat /usr/local/freeswitch/conf/sip_profiles/efax-int.xml
<profile name="efax-intf">
    <gateways>
        <X-PRE-PROCESS cmd="include" data="fax/*.xml" />
    </gateways>

    <aliases></aliases>

    <domains>
        <domain name="all" alias="true" parse="false" />
    </domains>
    <settings>
        <!-- efax-01 -->
        <param name="sip-ip" value="192.11.11.11" />
        <param name="rtp-ip" value="192.11.11.11" />

        <!-- efax-11 -->
        <!-- <param name="sip-ip" value="192.11.11.11"/>
                <param name="rtp-ip" value="192.11.11.11"/> -->

        <param name="sip-port" value="5060" />
        <param name="nat-options-ping" value="true" />
        <param name="all-reg-options-ping" value="true" />
        <param name="user-agent-string" value="efaxa4/v1.0" />
        <param name="inbound-codec-prefs" value="$${global_codec_prefs}" />
        <param name="outbound-codec-prefs" value="$${global_codec_prefs}" />
        <param name="inbound-late-negotiation" value="true" />
        <param name="inbound-codec-negotiation" value="greedy" />
        <param name="t38-passthru" value="true" /> <!-- Enable T.38 Passthrough -->
        <param name="fax-enable-t38" value="true" /> <!-- Enable T.38 -->
        <param name="rtp-timer-name" value="soft" /> <!-- Helps with jitter and fax transmissions -->
        <param name="rtp-timeout-sec" value="300" /> <!-- RTP timeout to prevent stuck calls -->
        <param name="context" value="public" />
        <param name="inbound-proxy-media" value="true"/>
        <param name="proxy-media" value="true"/>

        <!-- Disabling SRV lookup because it led to a race condition when SIP return 50x -->
        <param name="disable-srv" value="true"/>
        <param name="disable-naptr" value="true"/>
    </settings>
</profile>


[freeswitchtemp /] >>>>> cat /usr/local/freeswitch/conf/dialplan/public.xml
<include>
  <context name="public">
    <X-PRE-PROCESS cmd="include" data="public/*.xml" />
  </context>
</include>[freeswitchtemp /] >>>>> cat /usr/local/freeswitch/conf/dialplan/public/faxReceive.xml
<include>
        <extension name="faxReceiveAll">
                <condition field="destination_number" expression=".*">
                        <!-- <action application="set" data="fax_enable_t38_request=true" /> -->
                        <!-- <action application="set" data="fax_enable_t38=true" />  -->
                        <!-- <action application="set" data="session_in_hangup_hook=true" /> -->
                        <action application="python" data="receiveFax" />
                        <!-- <action application="hangup"/> -->
                </condition>
        </extension>
</include>


I have tried different configs but could not get it working. Does anyone have any recommendation or workaround?