diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 12:24:11 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 12:24:11 +0000 |
commit | 91ad35ce5445a2f9c958968672338869bd4ce8a5 (patch) | |
tree | 503e8c1d20f6c0594ff9ceebe29a789bcc3ebc4b /channels/chan_phone.c | |
parent | 8abb5a32f2e1226a24279c81b71cbd63456aad34 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@26417 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_phone.c')
-rw-r--r-- | channels/chan_phone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 1c6fff49a..242f24461 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -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; |