Freeswitch cannot communicate with UniMRCP server running on a different host

192 views
Skip to first unread message

Frank Wang

unread,
Mar 16, 2022, 12:53:01 AM3/16/22
to UniMRCP
Hi, Arsen,

If freeswitch (with mod_unimrcp) and UniMRCP server are installed on the same machine with default configurations, they have no issue to communicate with each other. However due to platform compatibility issue, we decided to put freeswitch on Debian and UniMRCP on Ubuntu. the only config change we made to have the freeswitch connect to UniMRCP on a different host is to modify the server-ip in the following file

/etc/freeswitch/mrcp_profiles/uni2.xml
    ...
               <!--param name="client-ext-ip" value="auto"-->
                <param name="client-ip" value="auto"/>
                <param name="client-port" value="16090"/>
                <param name="server-ip" value="xx.xx.xx.xx"/>
                <param name="server-port" value="8060"/>
                <!--param name="force-destination" value="1"/-->
                <param name="sip-transport" value="udp"/>
                <!--param name="ua-name" value="FreeSWITCH"/-->
                <!--param name="sdp-origin" value="FreeSWITCH"/-->
                <!--param name="rtp-ext-ip" value="auto"/-->
                <param name="rtp-ip" value="auto"/>
                <param name="rtp-port-min" value="14000"/>
     ...
                <param name="rtp-port-max" value="15000"/>

when using tshark or sngrep, we can see the SIP Invite coming to the UniMRCP's host, but UniMRCP log doesn't show receiving anything nor sending SIP trying back. Is there a setting somewhere that blocks request coming from different hosts? I checked the host firewall rule table but didn't find anything. Could you let me know if I am missing anything?

Thanks,
Frank

Frank Wang

unread,
Mar 16, 2022, 5:47:16 PM3/16/22
to UniMRCP
we figured it out, it is the firewall created by fail2ban that blocks all requests from external hosts by default. we have to manually open required ports. Is there document describing a complete list of firewall rules required by Unimrcp server? right now we opened tcp/udp 8060, 1544, and udp 14000-15000, is there any missing port?

Thanks,
Frank

Vahagn Kocharyan

unread,
Mar 23, 2022, 8:29:46 AM3/23/22
to UniMRCP
Hi Frank

The following ports must be open by default:

  • FreeSWITCH - SIP TCP/UDP 5060, RTP UDP  14000-15000
  • UniMRCP Server - SIP TCP/UDP 8060, RTP UDP 5000-5020, MRCPv2 TCP 1544
thanks
Vahagn
Reply all
Reply to author
Forward
0 new messages