当前位置:网站首页>asterisk:No compatible codecs, not accepting this offer!
asterisk:No compatible codecs, not accepting this offer!
2022-07-17 18:40:00 【行者有疆哉】
执行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
边栏推荐
- 【码蹄集新手村 600 题】计算一个整数有多少位数
- Principle of voice communication network
- SSH keyless login
- eth入门之运行节点
- OpenSSL operation
- 【7.8】Educational Codeforces Round 131 (Rated for Div. 2)
- 【6.15】Codeforces Round #798 (Div. 2)
- [7.9] code source - [number selection] [sequence operation] [minimum or spanning tree]
- MySQL advanced (VI) introduction to four common uses of fuzzy query
- [机缘参悟-46]:鬼谷子-第十谋篇-谋者,智慧之意也
猜你喜欢

Onvif protocol related: 3.1.1 digest access authorization

动手学深度学习(第二版)注释后代码【持续更新】

如何优雅的升级 Flink Job?

Array simulation queue

Onvif protocol related: 4.1.1 WS username token method to obtain wsusernametokenbean

Flutter 使用 AnimatedSwitcher 做场景切换

模块7(王者荣耀商城异地多活架构设计)

(pc+wap) dream weaving template clothing dress website

Forget about postman. Apifox is better
![[pumpkin Book ml] (task2) mathematical derivation of linear model (least squares estimation, generalized Rayleigh quotient, maximum likelihood estimation, etc.)](/img/ab/aaf4c01144364e7999582f326f16af.png)
[pumpkin Book ml] (task2) mathematical derivation of linear model (least squares estimation, generalized Rayleigh quotient, maximum likelihood estimation, etc.)
随机推荐
Deep learning from getting started to giving up the 100 day challenge
【7.14】代码源 -【拆方块】【XOR Inverse】【连续子序列】【三角果计数】
565.数组嵌套
codeforce:A. Difference Operations【数学思维】
SSH keyless login
【码蹄集新手村 600 题】格式化的输入输出,使用 0 来代替补全的空格
(pc+wap) dream weaving template clothing dress website
Codeforce:a. difference operations [mathematical thinking]
[postgraduate entrance examination vocabulary training camp] day 6 - eventually, state, create, productivity, stimulate
onvif协议相关:3.1.2 Digest方式获取token列表
如何在MFC中添加一个线程
基于PMOS的过压保护(OVP)电路仿真
onvif协议相关:4.1.3 WS-Username token方式获取截图url
Onvif protocol related: 4.1.4 WS username token method to obtain the stream address
[JS reverse crawler] - Youdao translation JS reverse practice
codeforce:G. Good Key, Bad Key【贪心】
Simulation of overvoltage protection (OVP) circuit based on PMOS
模板虚拟机环境准备
「津津乐道播客」#392 原汤话原食:仲夏夜,马砂、肉串儿、趿拉板儿
eth入门之运行节点