mrcp配置穿越NAT

最近在用mrcp部署语音识别引擎时用到mrcp,因为有外网的映射,mrcp需要穿越NAT。

1、在unimrcpserver.xml中配置

<properties>
    <!-- By default, network interface (IP address) to bind to will be implicitly identified. 
         Alternatively, it can be explicitly set.

    -->

<!-- <ip type="auto"/>   -->

<!--<ip>a.b.c.d</ip> -->
<ip>127.0.0.1</ip>
        <ext-ip>a.b.c.d</ext-ip>

  </properties>

ip设置成本地ip,ext-ip设置成映射成外网的ip。这个配置完后,sip就可以穿越NAT。

2、mrcp端口和rtp媒体端口也需要外网的映射。

unimrcpserver.xml中设置mrcp端口在

<mrcp-port>1544</mrcp-port>

rtp端口是个区间:如下是5000到6000

扫描二维码关注公众号,回复: 1472218 查看本文章

<rtp-factory id="RTP-Factory-1">
      <!-- By default, "ip" and "ext-ip" addresses set in the properties will be used. 
           They still can be explicitly specified (overriden) here.
      -->
      <!-- <rtp-ip>10.10.0.1</rtp-ip> -->
      <!-- <rtp-ext-ip>a.b.c.d</rtp-ext-ip> -->
      <rtp-port-min>5000</rtp-port-min>
      <rtp-port-max>6000</rtp-port-max>
    </rtp-factory>

猜你喜欢

转载自blog.csdn.net/huashui2009120/article/details/80406623