【问题标题】:How can I rewrite SDP with switch_r_sdp in freeswitch?如何在 freeswitch 中使用 switch_r_sdp 重写 SDP?
【发布时间】:2017-02-02 09:01:49
【问题描述】:
v=0
o=- 1358463684 1358463684 IN IP4 xxx.xxx.xxx.xxx
s=Opal SIP Session
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 3144 RTP/AVP 19 3 101 120
c=IN IP4 xxx.xxx.xxx.xxx
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:3 gsm/8000/1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16,32,36
a=rtpmap:120 NSE/8000
a=fmtp:120 192-193 

在上面的SDP中,我想更改IP地址xxx.xxx.xxx.xxx 到不同的 yyy.yyy.yyy.yyy。我在网上搜索,发现需要使用“action application="set"![CDATA[(sdp here)]] /action”

但我不确定我需要进行哪些确切的更改。请帮帮我。

【问题讨论】:

    标签: freeswitch sdp


    【解决方案1】:

    如果您在 NAT 之后,您可以在您的 Sofia SIP 配置文件中配置外部 RTP:

    <param name="ext-rtp-ip" value="yyy.yyy.yyy.yyy"/>
    

    FreeSwitch 将在传出 SDP 中显示此 IP。

    https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack

    【讨论】:

      猜你喜欢
      • 2016-08-24
      • 2018-09-09
      • 2015-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-26
      • 2016-12-15
      相关资源
      最近更新 更多