mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
ensure that control frames with payload can be sent to channel drivers via ->indicate()
update iax2_indicate to pass control frame payload to the connected channel add an API call for sending an indication with payload, and use it for control frames with payload git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -169,7 +169,7 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame);
|
||||
static struct ast_frame *phone_exception(struct ast_channel *ast);
|
||||
static int phone_send_text(struct ast_channel *ast, const char *text);
|
||||
static int phone_fixup(struct ast_channel *old, struct ast_channel *new);
|
||||
static int phone_indicate(struct ast_channel *chan, int condition);
|
||||
static int phone_indicate(struct ast_channel *chan, int condition, const void *data, size_t datalen);
|
||||
|
||||
static const struct ast_channel_tech phone_tech = {
|
||||
.type = "Phone",
|
||||
@@ -206,7 +206,7 @@ static struct ast_channel_tech phone_tech_fxs = {
|
||||
|
||||
static struct ast_channel_tech *cur_tech;
|
||||
|
||||
static int phone_indicate(struct ast_channel *chan, int condition)
|
||||
static int phone_indicate(struct ast_channel *chan, int condition, const void *data, size_t datalen)
|
||||
{
|
||||
struct phone_pvt *p = chan->tech_pvt;
|
||||
int res=-1;
|
||||
|
Reference in New Issue
Block a user