asterisk:No compatible codecs, not accepting this offer!

执行asterisk -r 打开asterisk控制台

当客户端软电话注册分机时显示如下错误

chan_sip.c:8876 process_sdp: No compatible codecs, not accepting this offer!

可能就是asterisk配置的编码不支持
在电话配置中,配置允许所有编码
如我的电话配置在sip.conf中,

[general]
context = default
bindport = 5065
bindaddr = 0.0.0.0
tcpbindaddr = 0.0.0.0
tcpenable = yes

[1001]
type = friend
callerid = User One
username = 1001
secret = 1001
host = dynamic
canreinvite = no
context = from-ipphone
dtmfmode = rfc2833
mailbox = 1001
allow=all
;disallow = all
;allow = ulaw
;transport = udp

[1002]
type = friend 
callerid = User Two
username = 1002
secret = 1002
host = dynamic
canreinvite = no
dtmfmode = rfc2833
mailbox = 1002
context = from-ipphone
allow=all
;disallow = all
;allow = ulaw
;transport = udp

添加一行allow = all , 改为:

[general]
context = default
bindport = 5065
bindaddr = 0.0.0.0
tcpbindaddr = 0.0.0.0
tcpenable = yes

[1001]
type = friend
callerid = User One
username = 1001
secret = 1001
host = dynamic
canreinvite = no
context = from-ipphone
dtmfmode = rfc2833
mailbox = 1001
;disallow = all
allow = ulaw
;transport = udp

[1002]
type = friend 
callerid = User Two
username = 1002
secret = 1002
host = dynamic
canreinvite = no
dtmfmode = rfc2833
mailbox = 1002
context = from-ipphone
;disallow = all
allow = ulaw
;transport = udp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值