当前位置:网站首页>asterisk: rejected because extension not found in context ‘from-ipphone‘
asterisk: rejected because extension not found in context ‘from-ipphone‘
2022-07-17 18:40:00 【行者有疆哉】
rejected because extension not found in context ‘from-ipphone’
当拨打asterisk电话的时候,显示这个rejected because extension not found in context 'from-ipphone’错误,就是配置上下文错误导致的
我的原来配置
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
extensions.conf
[general]
static=yes
writeprotect=no
[default]
exten => 1001,1,Answer()
exten => 1001,n,Dial(SIP/1001,20,tr)
exten => 1001,n,Hangup
exten => 1002,1,Answer()
exten => 1002,n,Dial(SIP/1002,20,tr)
exten => 1002,n,Hangup
修改 extensions.conf
[general]
static=yes
writeprotect=no
[from-ipphone]
exten => 1001,1,Answer()
exten => 1001,n,Dial(SIP/1001,20,tr)
exten => 1001,n,Hangup
exten => 1002,1,Answer()
exten => 1002,n,Dial(SIP/1002,20,tr)
exten => 1002,n,Hangup
修改之后重启asterisk-16.2.0,在控制台可以看到成功了,
边栏推荐
- [code hoof set novice village question 600] formatted input and output, using 0 to replace the completed space
- 这些年我开源的几个小项目
- 【南瓜书ML】(task2)线性模型的数学推导(最小二乘估计、广义瑞利商、极大似然估计等)
- Google Earth Engine——1992—至今混合坐标海洋模型、水温和盐度(全球海洋数据集HYCOM)
- Google Earth engine - 1992 present mixed coordinate ocean model, water temperature and salinity (global ocean data set HYCOM)
- El table column drag and drop (no need to introduce other plug-ins)
- Computer dial-up Internet access
- Responsive dream weaving template wine cellar website
- 健康防猝指南3:健康保健
- 模块7(王者荣耀商城异地多活架构设计)
猜你喜欢
Start from here by counting the information of the broadcast room
STM32F1与STM32CubeIDE编程实例-MPU-6050 六轴(陀螺仪 + 加速度计)驱动
onvif协议相关:2.1.2 none方式获取截图url
(pc+wap) dream weaving template clothing dress website
Simulation of overvoltage protection (OVP) circuit based on PMOS
Programming examples of stm32f1 and stm32subeide -mpu-6050 six axis (gyroscope + accelerometer) drive
Flutter uses animatedswitcher to switch scenes
QT use qlisview to realize QQ login history list
响应式织梦模板物流货运服务类网站
Forget about postman. Apifox is better
随机推荐
How to add a thread in MFC
[postgraduate entrance examination vocabulary training camp] day 5 - alarm, cooperate, point, benefit, industrial, revolution, mechanism
(pc+wap) dream weaving template clothing dress website
[JS reverse crawler] - Youdao translation JS reverse practice
codeforce:A. Doremy‘s IQ【反向贪心】
【码蹄集新手村 600 题】运算符 / 在不同的运算顺序中的类型转换
【码蹄集新手村 600 题】格式化的输入输出,使用 0 来代替补全的空格
忘掉Postman,Apifox更好用
[机缘参悟-46]:鬼谷子-第十谋篇-谋者,智慧之意也
【6.15】Codeforces Round #798 (Div. 2)
Transphorm的表面贴装封装产品系列增加行业标准TO-263 (D2PAK)封装产品,扩大SuperGaN平台的优势
【CANN训练营】昇腾AI基础知识介绍
onvif协议相关:4.1.4 WS-Username token方式获取流地址
模块7(王者荣耀商城异地多活架构设计)
Principle of voice communication network
【动态规划】—— 最长上升子序列模型
【考研词汇训练营】Day 6 —— eventually,state,create,productivity,stimulate
【js逆向爬虫】-有道翻译js逆向实战
Module 7 (Architecture Design of King glory mall)
基于PMOS的过压保护(OVP)电路仿真