
DAHDI
文章平均质量分 57
Asterisk + DAHDI
★临★
找到自己喜欢的方向,一路向前!
展开
-
dahdi_tools 分析 (七) fxotune
dahdi_tools 分析 (七) fxotunefxotuneA utility for tuning the various settings on the fxo modules一个用于调节 FXO (SI3050)参数(主要是阻抗)的工具。usageUsage: fxotune [-v[vv] (-s | -i <options> | -d <options>) -s : set previously calibrated echo settin原创 2021-12-13 16:20:07 · 955 阅读 · 0 评论 -
dahdi_tools 分析 (六)fxstest
dahdi_tools 分析 (六)fxstestusageUsage: fxstest <dahdi device> <cmd> where cmd is one of: stats - reports voltages regdump - dumps ProSLIC registers tones - plays a series of tones polarity - tests polarity rev原创 2021-12-13 10:33:08 · 593 阅读 · 0 评论 -
dahdi_tools 分析 (五) dahdi_monitor
dahdi_tools 分析 (五) dahdi_monitor作用用于录音,可以录指定通道的音频数据。用法# dahdi_monitor -hUsage: dahdi_monitor <channel num> [-v[v]] [-m] [-o] [-l limit] [-f FILE | -s FILE | -r FILE1 -t FILE2] [-F FILE | -S FILE | -R FILE1 -T FILE2]Options: -v: Visual原创 2020-07-22 11:29:43 · 566 阅读 · 0 评论 -
dahdi_tools 分析(四) dahdi_cfg
dahdi_tools 分析(四) dahdi_cfgdahdi_cfg 的使用dahdi_cfg -hDAHDI Tools Version - 2.11.1Usage: dahdi_cfg [options] Valid options are: -c <filename> -- Use <filename> instead of /etc/dahdi/system.conf -d [level] -- Generate debugg原创 2020-07-14 17:36:54 · 599 阅读 · 0 评论 -
dahdi_tools 分析(三)dahdi_test
dahdi_tools 分析(三)dahdi_testdahdi_test 的使用# dahdi_test -hUsage: dahdi_test [-c COUNT] [-v] Valid options are: -c COUNT Run just COUNT cycles (otherwise: forever). -v More verbose output. -h This help text.示例:# dahdi_test原创 2020-07-14 16:30:16 · 434 阅读 · 0 评论 -
dahdi_tools 分析(二)dahdi_speed
dahdi_tools 分析(二)dahdi_speeddahdi_speed 使用# dahdi_speed Count: 0dahdi_speed 运行一定时间后,打印 Count: 0 。具体什么用途需要看代码。源码分析#include <stdio.h>#include <sys/signal.h>#include <unistd.h>#include <stdlib.h>static long count=0;static原创 2020-07-10 18:38:19 · 417 阅读 · 0 评论 -
dahdi_tools 分析(一)dahdi_scan
dahdi_tools 分析(一)dahdi_scandahdi_scan 的使用示例:# dahdi_scan [1]active=yesalarms=OKdescription= XX WCTDM Board 1name=WCTDM/0manufacturer=xxdevicetype=xxlocation=PCI Bus 00 Slot 00basechan=1totchans=4irq=0type=analogport=1,FXSport=2,FXSport=3,原创 2020-07-10 15:22:14 · 528 阅读 · 0 评论 -
Asterisk Dial到 dahdi 驱动调用过程
Dail 是Asterisk 的一个application, 源代码在 asterisk\apps\app_dial.c跟踪其关键代码如下:static int load_module(void){ int res; res = ast_register_application_xml(app, dial_exec); res |= ast_register_application_...原创 2019-07-03 12:05:04 · 1023 阅读 · 0 评论 -
Asterisk 实现语音提示:您呼叫的号码无法接通
dialplan 示例:例:当sip/6002 不在线时,呼叫6002 将语音提示:您呼叫的号码无法接通 …重复10遍后自动挂断。exten => _6XXX,1,Dial(SIP/${EXTEN},90)same => n,GotoIf($[${DIALSTATUS} == CHANUNAVAIL]?chanunavail)same => n,Hangup()same...原创 2019-06-18 16:38:13 · 1989 阅读 · 0 评论 -
dahdi_cfg 的作用
使用Asterisk 的chan_dahdi 时必须用到的一个命令是dahdi_cfg ,我很好奇dahdi_cfg 这个命令里面究竟做了些什么,有句话说:源码面前了无秘密!本篇从源码角度分析理解 dahdi_cfg 的作用。dahdi_cfg 的源码在 dahdi-tools-2.11.1\dahdi_cfg.c 里。先看两个宏定义:可以猜测出 dahi_cfg 是读取/etc...原创 2019-06-06 13:41:37 · 654 阅读 · 0 评论 -
Asterisk chan_dahdi 使用过程
不同于chan_sip,chan_dahdi 的使用需要硬件的支持。使用步骤如下:安装/加载 dahdi驱动执行dahdi_cfg (需要安装dahdi_tools,并依赖于/etc/dahdi/system.conf 文件)修改chan_dahdi.conf编写dialplan重启asterisk1.安装/加载 dahdi驱动modprobe my_wctdm.ko...原创 2019-06-06 11:33:02 · 2261 阅读 · 7 评论 -
dahdi: Cannot start tone until a tone zone is loaded 解决办法
使用 asterisk 的chan_dahdi 发起呼叫,报错如下:dahdi: Cannot start tone until a tone zone is loaded原因:/etc/dahdi/system.conf 内容有误解决办法:执行 dahdi_cfg 命令 根据报错提示改正 /etc/dahdi/system.conf,直到没有报错/etc/dahdi/system.con...原创 2019-06-05 15:52:21 · 252 阅读 · 0 评论 -
dahdi wctdm24xxp 驱动学习笔记
//wctdm24xxp 驱动学习笔记static struct pci_driver wctdm_driver = { .name = &quot;wctdm24xxp&quot;, .probe = wctdm_init_one, .remove = __devexit_p(wctdm_remove_one), .shutdown = wctdm_shutdown, .suspend = wctdm...原创 2019-01-02 09:08:55 · 3241 阅读 · 0 评论 -
Asterisk chan_mobile 代码阅读笔记
static struct ast_channel_tech mbl_tech = { .type = "Mobile", .description = "Bluetooth Mobile Device Channel Driver", .requester = mbl_request, .call = mbl_call, .hangup = mbl_hangup, .answer =...原创 2019-03-05 20:05:01 · 765 阅读 · 0 评论 -
Asterisk chan_alsa 使用方法
在Asterisk 中,通常打电话都是建立在通道与通道之间,pbx 只是中转作用,那pbx 有没有办法直接与分机通话呢?有的,那就是使用chan_alsa 。要求pbx 板子有麦克风和耳机接口,并且安装了alsa声卡驱动,alsa 是 linux 系统下的声卡驱动框架,也叫asoc。如何使用?加载chan_alsa.so按需修改 /etc/asterisk/alsa.conf (一般使用...原创 2019-03-06 19:51:41 · 1037 阅读 · 0 评论 -
asterisk chan_alsa 音质差问题
问题描述:使用chan_alsa 通话,音质特别差。版本 aterisk 11.22.0原因:未知解决方法:更新asterisk 版本 (实测 asterisk 14 asterisk 16 音质不错)原创 2019-03-14 12:11:42 · 573 阅读 · 0 评论 -
asterisk16 编译安装问题集锦
asterisk 安装过程遇到的问题1. make distclean 2. ./configure --without-pjproject-bundled3. Please install the 'libedit' development packageapt-get install libedit-dev4. configure: error: *** uuid support not found (this typically means the uuid development p原创 2019-03-14 15:01:00 · 3828 阅读 · 5 评论 -
openwrt 编译 asterisk 添加 chan_alsa.so
子选项里是没有chan_alsa 配置项的。如何添加?需要修改 feeds/telephony/net/asterisk-x/Makefile文件1. DEPENDS 添加 DEPENDS:= ...+alsa-lib ...2. define Package/asterisk18/conffiles 添加/etc/asterisk/alsa.conf3. AST_EMB_MODULES AST_EMB_MODULES:= ... chan_alsa 4. CONFIGURE_ARGS+原创 2019-03-19 17:53:38 · 992 阅读 · 0 评论 -
DAHDI 驱动学习笔记(一)与Asterisk之间的PCM数据交互
Q2. DAHDI 驱动中的PCM数据是如何与asterisk进行交换的?也就是,asterisk 中是如何读写 DAHDI的PCM数据的?总结:asterisk 写pcm 数据到 dahdi 驱动过程- fd = dahdi_open("n") //n为通道号- write(fd,buf ,buflen) ,最终将buf 写入chan->writebuf[res] - 子模块驱动的中断响应函数调用 dahdi_transmit ,会将chan->writebuf[res] 中的数据读到原创 2019-05-24 17:33:33 · 1900 阅读 · 0 评论 -
Asterisk使用
asterisk 使用教程1.asterisk 简介What is Asterisk?Asterisk is an open source framework for building communications applications. Asterisk turns an ordinary computer into a communications server. Asterisk...原创 2018-12-19 17:24:24 · 7962 阅读 · 2 评论