diff options
author | Richard Mudgett <rmudgett@digium.com> | 2010-06-02 18:10:15 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2010-06-02 18:10:15 +0000 |
commit | afd4454c4446ee1889616d09541171fc6355bbf7 (patch) | |
tree | 985bf496a795d25e80f0f4948c0f68cbadb0f7ac /main/channel.c | |
parent | 266db9fa8c43f9e3c8c55e2f5bd44e432a7b91ee (diff) |
Generic Advice of Charge.
Asterisk Generic AOC Representation
- Generic AOC encode/decode routines.
(Generic AOC must be encoded to be passed on the wire in the AST_CONTROL_AOC frame)
- AST_CONTROL_AOC frame type to represent generic encoded AOC data
- Manager events for AOC-S, AOC-D, and AOC-E messages
Asterisk App Support
- app_dial AOC-S pass-through support on call setup
- app_queue AOC-S pass-through support on call setup
AOC Unit Tests
- AOC Unit Tests for encode/decode routines
- AOC Unit Test for manager event representation.
SIP AOC Support
- Pass-through of generic AOC-D and AOC-E messages to snom phones via the
snom AOC specification.
- Creation of chan_sip page3 flags for the addition of the new
'snom_aoc_enabled' sip.conf option.
IAX AOC Support
- Natively supports AOC pass-through through the use of the new
AST_CONTROL_AOC frame type
DAHDI AOC Support
- ETSI PRI full AOC Pass-through support
- 'aoc_enable' chan_dahdi.conf option for independently enabling
pass-through of AOC-S, AOC-D, AOC-E.
- 'aoce_delayhangup' option for retrieving AOC-E on disconnect.
- DAHDI A() dial string option for requesting AOC services.
example usage:
;requests AOC-S, AOC-D, and AOC-E on call setup
exten=>1111,1,Dial(DAHDI/g1/1112/A(s,d,e))
Review: https://reviewboard.asterisk.org/r/552/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@267096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c index 999e39ba6..3057fae9d 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3796,6 +3796,7 @@ static int attribute_const is_visible_indication(enum ast_control_frame_type con case _XXX_AST_CONTROL_T38: case AST_CONTROL_CC: case AST_CONTROL_READ_ACTION: + case AST_CONTROL_AOC: break; case AST_CONTROL_CONGESTION: @@ -3941,6 +3942,7 @@ int ast_indicate_data(struct ast_channel *chan, int _condition, case AST_CONTROL_REDIRECTING: case AST_CONTROL_CC: case AST_CONTROL_READ_ACTION: + case AST_CONTROL_AOC: /* Nothing left to do for these. */ res = 0; break; @@ -6003,6 +6005,9 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct int bridge_exit = 0; switch (f->subclass.integer) { + case AST_CONTROL_AOC: + ast_indicate_data(other, f->subclass.integer, f->data.ptr, f->datalen); + break; case AST_CONTROL_REDIRECTING: if (ast_channel_redirecting_macro(who, other, f, other == c0, 1)) { ast_indicate_data(other, f->subclass.integer, f->data.ptr, f->datalen); |