哪些被Asterisk 21版本暴砍的功能有多少是你常用的?我指的是chan_alsa

目录

  • 江湖再无NoCDR
  • app_macro也不见了
  • 常用的还有哪些?

Asterisk 21.0版本的发布,主打一个剪刀手。
正如社区官方傲慢、粗鲁&毫不遮掩的说法:

Asterisk 21 saw fewer new additions than previous versions. Many of
the changes are actually removals of old modules that were deprecated
in previous versions.

这个版本啊,俺只增加一点点新功能,大部分改变是删除一些老的模块。
我k,这你也有脸说?

江湖再无NoCDR

去掉了 NoCDR的功能,改用 CDR_PROP。之前啊,我要是想让打给老板的电话不留痕迹,可以这样操作:

exten => 5551212,1,Answer()
exten => 5551212,n,NoCDR()
exten => 5551212,n,Dial(SIP/8888)

现在呢,我要改成这样写:

exten => 5551212,1,Answer()
exten => 5551212,n,Set(CDR_PROP(disable)=1)
exten => 5551212,n,Dial(SIP/8888)

这个和尚足足有丈三那么高。

app_macro也不见了

这个影响可不仅仅是个别macro语句。
要知道,很多应用app都支持macro调用的,都要改。比如 app_dial就不能使用 M 这个转移呼叫的macro了。
其他一些被删除的功能,包括:
chan_alsa: chan_alsa,改了很多次名字,终于,把自己改没了。ALSA是Advanced Linux Sound Architecture的缩写,即高级Linux声音架构,就是声卡的意思 。
chan_mgcp: MGCP协议,电信设备常见的协议,古调虽好,今人不弹,步入历史。
chan_sip: 自1999年开始沿用了25年的经典SIP协议,正式退休。以后天下只有pjsip。
chan_skinny: 用来对接Cisco电话的协议,寿终正寝。没有替代方案。
res_monitor,作为对指定通道录音的应用,也被删除,以后的录音只有MixMonitor。
还有一些弃子:
users.conf被弃用了,在下一个版本将也会被删除。
负责域名解析的函数ast_gethostbyname() 被弃用,改用 `ast_sockaddr_resolve()替代。
Remove files that are no longer updated

爷青结系列

常用的还有哪些?

看一下常用的CLI命令,从这里能看到Asterisk这次改动还是挺大的,精简了很多功能。

*CLI> core show help
! – Execute a shell command
acl show – Show a named ACL or list all named ACLs
aoc set debug – enable cli debugging of AOC messages
bridge kick – Kick a channel from a bridge
bridge show all – List all bridges
bridge show – Show information about a bridge
bridge technology show – List registered bridge technologies
bridge technology {suspend|unsuspend} – Suspend/unsuspend a bridge technology
cc cancel [core|all] – Kill a CC transaction
cc report status – Reports CC stats
cdr set debug [on|off] – Enable debugging in the CDR engine
cdr show active – Display active CDRs for channels
cdr show status – Display the CDR status
cdr submit – Posts all pending batched CDR data
cel show status – Display the CEL status
channel request hangup – Request a hangup on a given channel
cli check permissions – Try a permissions config for a user
cli reload permissions – Reload CLI permissions config
cli show permissions – Show CLI permissions
confbridge kick – Kick participants out of conference bridges.
confbridge list – List conference bridges and participants.
confbridge lock – Lock a conference.
confbridge mute – Mute participants.
confbridge record start – Start recording a conference
confbridge record stop – Stop recording a conference.
confbridge show menu – Show a conference menu
confbridge show menus – Show a list of conference menus
confbridge show profile bridge – Show a conference bridge profile.
confbridge show profile bridges – Show a list of conference bridge profiles.
confbridge show profile user – Show a conference user profile.
confbridge show profile users – Show a list of conference user profiles.
confbridge unlock – Unlock a conference.
confbridge unmute – Unmute participants.
config list – Show all files that have loaded a configuration file
config reload – Force a reload on modules using a particular configuration file
config show help – Show configuration help for a module
core abort shutdown – Cancel a running shutdown
core clear profile – Clear profiling info
core ping taskprocessor – Ping a named task processor
core reload – Global reload
core reset taskprocessor – Reset a named task processor’s stats
core reset taskprocessors – Reset all task processors’ stats
core restart gracefully – Restart Asterisk gracefully
core restart now – Restart Asterisk immediately
core restart when convenient – Restart Asterisk at empty call volume
core set debug category – Enable/disable debugging categories
core set debug – Set level of debug chattiness
core set debug channel – Enable/disable debugging on a channel
core set trace – Set level of trace chattiness
core set verbose – Set level of verbose chattiness
core show applications [like|describing] – Shows registered dialplan applications
core show application – Describe a specific dialplan application
core show calls [uptime] – Display information on calls
core show channels [concise|verbose|count] – Display information on channels
core show channeltypes – List available channel types
core show channeltype – Give more details on that channel type
core show channel – Display information on a specific channel
core show codecs [audio|video|image|text] – Displays a list of registered codecs
core show codec – Shows a specific codec
core show config mappings – Display config mappings (file names to config engines)
core show file formats – Displays file formats
core show functions [like] – Shows registered dialplan functions
core show function – Describe a specific dialplan function
core show hanguphandlers all – Show hangup handlers of all channels
core show hanguphandlers – Show hangup handlers of a specified channel
core show help – Display help list, or specific help on a command
core show hints – Show dialplan hints
core show hint – Show dialplan hint
core show image formats – Displays image formats
core show license – Show the license(s) for this copy of Asterisk
core show profile – Display profiling info
core show settings – Show some core settings
core show sounds – Shows available sounds
core show sound – Shows details about a specific sound
core show switches – Show alternative switches
core show sysinfo – Show System Information
core show taskprocessor alerted subsystems – List task processor subsystems in alert
core show taskprocessors [like] – List instantiated task processors and statistics
core show threads – Show running threads
core show translation – Display translation matrix
core show uptime [seconds] – Show uptime information
core show version – Display version info
core show warranty – Show the warranty (if any) for this copy of Asterisk
core stop gracefully – Gracefully shut down Asterisk
core stop now – Shut down Asterisk immediately
core stop when convenient – Shut down Asterisk at empty call volume
core waitfullybooted – Wait for Asterisk to be fully booted
database del – Removes database key/value
database deltree – Removes database keytree/values
database get – Gets database value
database put – Adds/updates database value
database query – Run a user-specified query on the astdb
database show – Shows database contents
database showkey – Shows database contents
devstate change – Change a custom device state
devstate list – List currently known custom device states
dialplan add extension – Add new extension into context
dialplan add ignorepat – Add new ignore pattern
dialplan add include – Include context in other context
dialplan debug – Show fast extension pattern matching data structures
dialplan eval function – Evaluate dialplan function
dialplan reload – Reload extensions and only extensions
dialplan remove context – Remove a specified context
dialplan remove extension – Remove a specified extension
dialplan remove ignorepat – Remove ignore pattern from context
dialplan remove include – Remove a specified include from context
dialplan set chanvar – Set a channel variable
dialplan set extenpatternmatchnew false – Use the Old extension pattern matching algorithm.
dialplan set extenpatternmatchnew true – Use the New extension pattern matching algorithm.
dialplan set global – Set global dialplan variable
dialplan show – Show dialplan
dialplan show chanvar – Show channel variables
dialplan show globals – Show global dialplan variables
dnsmgr refresh – Performs an immediate refresh
dnsmgr reload – Reloads the DNS manager configuration
dnsmgr status – Display the DNS manager status
features show – Lists configured features
group show channels – Display active channels with group(s)
http show status – Display HTTP server status
indication add – Add the given indication to the country
indication remove – Remove the given indication from the country
indication show – Display a list of all countries/indications
local show channels – List status of local channels
logger add channel – Adds a new logging channel
logger filter changroup – Filter PBX logs by channel log group
logger filter reset – Reset PBX channel filtering
logger filter show – Show current PBX channel filtering
logger mute – Toggle logging output to a console
logger reload – Reopens the log files
logger remove channel – Removes a logging channel
logger rotate – Rotates and reopens the log files
logger set level {DEBUG|TRACE|NOTICE|WARNING|ERROR|VERBOSE|DTMF} {on|off} – Enables/Disables a specific logging level for this console
logger show channels – List configured log channels
logger show levels – List configured log levels
malloc trim – Return excess memory to the OS
manager reload – Reload manager configurations
manager set debug [on|off] – Show, enable, disable debugging of the manager code
manager show command – Show a manager interface command
manager show commands – List manager interface commands
manager show connected – List connected manager interface users
manager show eventq – List manager interface queued events
manager show events – List manager interface events
manager show event – Show a manager interface event
manager show settings – Show manager global settings
manager show users – List configured manager users
manager show user – Display information on a specific manager user
media cache create – Create an item in the media cache
media cache delete – Remove an item from the media cache
media cache refresh – Refresh an item in the media cache
media cache show all – Show all items in the media cache
media cache show – Show a single item in the media cache
module load – Load a module by name
module refresh – Completely unloads and loads a module by name
module reload – Reload configuration for a module
module show [like] – List modules and info
module unload – Unload a module by name
moh reload – Reload MusicOnHold
moh show classes – List MusicOnHold classes
moh show files – List MusicOnHold file-based classes
moh unregister class – Unregister realtime MusicOnHold class
no debug channel – Disable debugging on channel(s)
pjproject set log level {default|0|1|2|3|4|5|6} – Set the maximum active pjproject logging level
pjproject show buildopts – Show the compiled config of the pjproject in use
pjproject show log level – Show the maximum active pjproject logging level
pjproject show log mappings – Show pjproject to Asterisk log mappings
pjsip dump endpt – Dump the res_pjsip endpt internals
pjsip list aors – List PJSIP Aors
pjsip list auths – List PJSIP Auths
pjsip list channels – List PJSIP Channels
pjsip list ciphers – List available OpenSSL cipher names
pjsip list contacts – List PJSIP Contacts
pjsip list endpoints – List PJSIP Endpoints
pjsip list identifies – List PJSIP Identifies
pjsip list registrations – List PJSIP Registrations
pjsip list subscriptions {inbound|outbound} [like] – List active inbound/outbound subscriptions
pjsip list transports – List PJSIP Transports
pjsip qualify – Send an OPTIONS request to a PJSIP endpoint
pjsip reload qualify aor – Synchronize the PJSIP Aor qualify options
pjsip reload qualify endpoint – Synchronize the qualify options for all Aors on the PJSIP endpoint
pjsip send notify – Send a NOTIFY request to a SIP endpoint
pjsip send register – Registers an outbound registration target
pjsip send unregister – Unregisters outbound registration target
pjsip set logger {on|off|host|add|method|methodadd|verbose|pcap} – Enable/Disable PJSIP Logger Output
pjsip show aors – Show PJSIP Aors
pjsip show aor – Show PJSIP Aor
pjsip show auths – Show PJSIP Auths
pjsip show auth – Show PJSIP Auth
pjsip show channels – Show PJSIP Channels
pjsip show channel – Show PJSIP Channel
pjsip show channelstats – Show PJSIP Channel Stats
pjsip show contacts – Show PJSIP Contacts
pjsip show contact – Show PJSIP Contact
pjsip show endpoints – Show PJSIP Endpoints
pjsip show endpoint – Show PJSIP Endpoint
pjsip show identifiers – List registered endpoint identifiers
pjsip show identifies – Show PJSIP Identifies
pjsip show identify – Show PJSIP Identify
pjsip show qualify aor – Show the PJSIP Aor current qualify options
pjsip show qualify endpoint – Show the current qualify options for all Aors on the PJSIP endpoint
pjsip show registrations – Show PJSIP Registrations
pjsip show registration – Show PJSIP Registration
pjsip show scheduled_tasks – Show pjsip scheduled tasks
pjsip show settings – Show global and system configuration options
pjsip show subscription {inbound|outbound} – Show active subscription details
pjsip show subscriptions {inbound|outbound} [like] – Show active inbound/outbound subscriptions
pjsip show transport-monitors – Show pjsip transport monitors
pjsip show transports – Show PJSIP Transports
pjsip show transport – Show PJSIP Transport
pjsip show unidentified_requests – Show PJSIP Unidentified Requests
pjsip show version – Show the version of pjproject in use
queue add member – Add a channel to a specified queue
queue priority caller – Change priority caller on queue
queue reload {parameters|members|rules|all} – Reload queues, members, queue rules, or parameters
queue remove member – Removes a channel from a specified queue
queue reset stats – Reset statistics for a queue
queue set penalty – Set penalty for a channel of a specified queue
queue set ringinuse – Set ringinuse for a channel of a specified queue
queue show – Show status of a specified queue
queue show rules – Show the rules defined in queuerules.conf
queue {pause|unpause} member – Pause or unpause a queue member
rtcp set debug {on|off|ip} – Enable/Disable RTCP debugging
rtcp set stats {on|off} – Enable/Disable RTCP stats
rtp set debug {on|off|ip} – Enable/Disable RTP debugging
rtp show settings – Display RTP settings
say load [new|old] – Set or show the say mode
stasis show topics – Show all topics
stasis show topic – Show topic
stun set debug {on|off} – Enable/Disable STUN debugging
timing test – Run a timing test
udptl set debug {on|off|ip} – Enable/Disable UDPTL debugging
udptl show config – Show UDPTL config options
voicemail forward – Forward message to another folder
voicemail move – Move message to another folder
voicemail reload – Reload voicemail configuration
voicemail remove – Remove message
voicemail show aliases – List mailbox aliases
voicemail show mailbox – Display a mailbox’s content details
voicemail show users [for] – List defined voicemail boxes
voicemail show zones – List zone message formats
xmldoc dump – Dump the XML docs to the specified file
xmldoc reload – Reload the XML docs

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/538741.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

element table 使用了表格固定height高度和表格属性fixed属性出现了高度错乱bug

问题描述&#xff1a;因为使用了表格固定height高度所以 使用表格属性fixed属性出现了高度错乱bug知识点&#xff1a;使用element table 里提供的doLayout 方法 代码 // template <el-table ref"test" ></el-table>//js// 查询数据getList(obj{}) {get…

电焰灶十大品牌:华火电燃灶怎么样?

随着科技的发展和人们生活品质的提升&#xff0c;传统燃气灶具已无法满足现代家庭对于高效、环保、安全的需求。在这一背景下&#xff0c;电焰灶作为一种新型的厨房设备逐渐崭露头角。在众多电焰灶品牌中&#xff0c;华火电燃灶凭借其卓越的性能和创新的技术&#xff0c;成功跻…

【MATLAB第104期】基于MATLAB的xgboost的敏感性分析/特征值排序计算(针对多输入单输出回归预测模型)

【MATLAB第104期】基于MATLAB的xgboost的敏感性分析/特征值排序计算&#xff08;针对多输入单输出回归预测模型&#xff09; 因matlab的xgboost训练模型不含敏感性分析算法&#xff0c;本文通过使用single算法&#xff0c;即单特征因素对输出影响进行分析&#xff0c;得出不同…

NAPI 类对象导出及其生命周期管理(下)

4. 样例工程源码剖析 工程的模板是Native C,模型是Stage。源码剖析主要围绕以下几个文件 4.1. NAPI导出对象和生命周期管理具体实现 4.1.1. 定义NapiTest类及方法 Napi.h文件内容如下&#xff1a; #ifndef __NAPI_TEST_H__ #define __NAPI_TEST_H__#include "napi/nat…

集群监控原理

3.1.2.集群监控原理 Sentinel基于心跳机制监测服务状态&#xff0c;每隔1秒向集群的每个实例发送ping命令&#xff1a; •主观下线&#xff1a;如果某sentinel节点发现某实例未在规定时间响应&#xff0c;则认为该实例主观下线。 •客观下线&#xff1a;若超过指定数量&…

华为远程登陆管理配置:轻松掌握核心要点

实验拓扑及需求 实验步骤 A、配置相关地址及连通性测试 R1&#xff1a; [R1]int GigabitEthernet 0/0/0 [R1-GigabitEthernet0/0/0]ip address 192.168.12.1 24 R2&#xff1a; [R2]int gi 0/0/0 [R2-GigabitEthernet0/0/0]ip add 192.168.12.2 24 [R2]int gi 0/0/1 […

使用 Docker 部署 Linux-Command 命令搜索工具

1&#xff09;介绍 Linux-Command GitHub&#xff1a;https://github.com/jaywcjlove/linux-command Linux-Command 仓库搜集了 580 多个 Linux 命令&#xff0c;是一个非盈利性的仓库&#xff0c;生成了一个 Web 网站方便使用&#xff0c;目前网站没有任何广告&#xff0c;内…

阿里云4核16G服务器可以用来做什么?

阿里云4核16G服务器可以用来做什么&#xff1f;可用来搭建游戏服务器&#xff0c;阿里云4核16G服务器10M带宽30元1个月、90元3个月&#xff0c;优惠活动 aliyunfuwuqi.com/go/youhui 阿里云4核16G服务器可以用来做什么&#xff1f;除了搭建游戏服务器&#xff0c;还可以用来哪…

阿里云短信服务对接流程

阿里云短信服务是阿里巴巴集团推出的一款通讯服务产品&#xff0c;支持发送短信到手机、验证码短信、语音短信等多种短信场景。通过阿里云短信服务&#xff0c;企业可以方便、快捷、安全地将消息发送给用户&#xff0c;提升用户体验和品牌形象。此外&#xff0c;阿里云短信服务…

各种拟合算法整理

各种拟合算法整理 1. 最小二乘法2. 霍夫变换3. RANSAC算法 本篇将介绍最小二乘法(Least Square)、霍夫变换(Hough Transform)和RANSAC(random sample consensus&#xff0c;随机抽样一致性算法)算法的原理、应用和代码。 如果已经知道了一组可靠的点&#xff0c;可以直接使用最…

QAT量化 demo

一、QAT量化基本流程 QAT过程可以分解为以下步骤&#xff1a; 定义模型&#xff1a;定义一个浮点模型&#xff0c;就像常规模型一样。定义量化模型&#xff1a;定义一个与原始模型结构相同但增加了量化操作&#xff08;如torch.quantization.QuantStub()&#xff09;和反量化…

【Canvas技法】四条C形色带填满一个圆/环形

【关键点】 通过三角函数计算控制点的位置。 【成果图】 【代码】 <!DOCTYPE html> <html lang"utf-8"> <meta http-equiv"Content-Type" content"text/html; charsetutf-8"/> <head><title>四条C形色带填满一个…

【复现】浙大恩特客户资源管理系统 SQL注入漏洞_71

目录 一.概述 二 .漏洞影响 三.漏洞复现 1. 漏洞一&#xff1a; 四.修复建议&#xff1a; 五. 搜索语法&#xff1a; 六.免责声明 一.概述 浙大恩特客户资源管理系统是一款针对企业客户资源管理的软件产品。该系统旨在帮助企业高效地管理和利用客户资源&#xff0c;提升…

【进阶篇】三、Java Agent实现自定义Arthas工具

文章目录 0、客户端代码1、JMX2、实现&#xff1a;查看内存使用情况3、实现&#xff1a;查看直接内存4、实现&#xff1a;生成堆内存快照5、实现&#xff1a;打印栈信息6、实现&#xff1a;打印类加载器的信息7、实现&#xff1a;打印类的源码8、需求&#xff1a;打印方法的耗时…

OpenHarmony开发学习:【源码下载和编译】

本文介绍了如何下载鸿蒙系统源码&#xff0c;如何一次性配置可以编译三个目标平台&#xff08;Hi3516&#xff0c;Hi3518和Hi3861&#xff09;的编译环境&#xff0c;以及如何将源码编译为三个目标平台的二进制文件。 坑点总结&#xff1a; 下载源码基本上没有太多坑&#xff…

【Android surface 】二:源码分析App的surface创建过程

文章目录 画布surfaceViewRoot的创建&setView分析setViewrequestLayoutViewRoot和WMS的关系 activity的UI绘制draw surfacejni层分析Surface无参构造SurfaceSessionSurfaceSession_init surface的有参构造Surface_copyFromSurface_writeToParcelSurface_readFromParcel 总结…

无人机概述

1、中英文对照表 中文中文简称英文全称英文简称无人驾驶飞机无人机Unmanned Aerial VehicleUAV无人机自组织网络无人机网络flying Ad-Hoc networkFANET 2、相关概念 2.1鲁棒性 网络鲁棒性是指网络系统在面对随机故障、蓄意攻击或其他异常情况时&#xff0c;能够保持其基本功…

Linux的网口名字的命名规则

在工作中&#xff0c;偶尔看到有些机器的网口名字是以ethX命令&#xff0c;有些则以enpXsX这种名字命名。网上的资料说的都不太明白,资料也无据可查&#xff0c;很难让人信服。于是决定自己查了下官方的资料和源码&#xff0c;把这些搞清楚。 官方文档&#xff1a;Predictable…

MobX进阶:从基础到高级特性全面探索

MobX 提供了丰富的高级特性,包括计算属性、反应式视图、中间件、异步流程控制、依赖注入和动态 observable 、在服务端渲染和 TypeScript 支持方面提供了良好的集成。这些特性进一步增强了 MobX 在状态管理方面的灵活性和可扩展性,使其成为一个功能强大、易于使用的状态管理解决…

【NLP练习】调用Gensim库训练Word2Vec模型

&#x1f368; 本文为&#x1f517;365天深度学习训练营 中的学习记录博客&#x1f356; 原作者&#xff1a;K同学啊 一、准备工作 1.安装Gensim库 使用pip安装&#xff1a; !pip install gensim2. 对原始语料分词 选择《人民的民义》的小说原文作为语料&#xff0c;先采用…