登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

晋显中国风

记录,不一定需要文字但一定要有心情

 
 
 

日志

 
 

如果用外网注册到sip时,能外呼但是没有声音时的解决办法  

2012-10-18 11:20:50|  分类: VOIP |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

出现这种办法的原因一般是由于rtp造成的.

可以查看/etc/asterisk/rtp.conf

;
; RTP Configuration
;
[general]
;
; RTP start and RTP end configure start and end addresses
;
; Defaults are rtpstart=5000 and rtpend=31000
;
rtpstart=10000
rtpend=20000
;
; Whether to enable or disable UDP checksums on RTP traffic
;
;rtpchecksums=no
;
; The amount of time a DTMF digit with no 'end' marker should be
; allowed to continue (in 'samples', 1/8000 of a second)
;
;dtmftimeout=3000
; rtcpinterval = 5000   ; Milliseconds between rtcp reports
                        ;(min 500, max 60000, default 5000)

 

可以看到这里的rtp设置了10000至20000的udp端口,所以要将这些端口开放一下.

 

直接编辑 /etc/sysconfig/system-config-securitylevel

然后加入:--port=10000-20000:udp
再执行一下:system-config-securitylevel-tui 以便让其生效,

 

然后再重启一下iptables服务:service iptables restart

问题就可以解决了.

  评论这张
 
阅读(1021)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018