码迷,mamicode.com
首页 > 其他好文 > 详细

asterisk channel driver dev ref

时间:2015-01-21 01:15:27      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:

入口函数load_module
    load_config
    ast_channel_register console_tech
    ast_cli_register_multiple
    
console_tech需要提供一系列的毁掉函数,比如    
    static struct ast_channel_tech console_tech = {
    .type = "Console",
    .description = "Console Channel Driver",
    .requester = console_request,
    .send_digit_begin = console_digit_begin,
    .send_digit_end = console_digit_end,
    .send_text = console_text,
    .hangup = console_hangup,
    .answer = console_answer,
    .read = console_read,
    .call = console_call,
    .write = console_write,
    .indicate = console_indicate,
    .fixup = console_fixup,
    };

answer一般会启动monitor thread

 

sample: chan_console.c

 

http://svn.asterisk.org/svn/asterisk/trunk/channels/chan_oss.c

https://code.google.com/p/asterisk-chan-dongle/

 

讨论

http://lists.digium.com/pipermail/asterisk-dev/2008-January/031719.html

asterisk channel driver dev ref

标签:

原文地址:http://www.cnblogs.com/cutepig/p/4237804.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!