asterisk/channels
Mark Michelson b5d5cc565f Enhancements to connected line and redirecting work.
From reviewboard:

Digium has a commercial customer who has made extensive use of the connected party and
redirecting information present in later versions of Asterisk Business Edition and which
is to be in the upcoming 1.8 release. Through their use of the feature, new problems and solutions
have come about. This patch adds several enhancements to maximize usage of the connected party
and redirecting information functionality.

First, Asterisk trunk already had connected line interception macros. These macros allow you to
manipulate connected line information before it was sent out to its target. This patch adds the
same feature except for redirecting information instead.

Second, the ast_callerid and ast_party_id structures have been enhanced to provide a "tag." This
tag can be set with func_callerid, func_connectedline, func_redirecting, and in the case of DAHDI,
mISDN, and SIP channels, can be set in a configuration file. The idea behind the callerid tag is
that it can be set to whatever value the administrator likes. Later, when running connected line
and redirecting macros, the admin can read the tag off the appropriate structure to determine what
action to take. You can think of this sort of like a channel variable, except that instead of having
the variable associated with a channel, the variable is associated with a specific identity within
Asterisk.

Third, app_dial has two new options, s and u. The s option lets a dialplan writer force a specific
caller ID tag to be placed on the outgoing channel. The u option allows the dialplan writer to force
a specific calling presentation value on the outgoing channel.

Fourth, there is a new control frame subclass called AST_CONTROL_READ_ACTION added. This was added
to correct a very specific situation. In the case of SIP semi-attended (blond) transfers, the party
being transferred would not have the opportunity to run a connected line interception macro to
possibly alter the transfer target's connected line information. The issue here was that during a
blond transfer, the SIP transfer code has no bridged channel on which to queue the connected line
update. The way this was corrected was to add this new control frame subclass. Now, we queue an
AST_CONTROL_READ_ACTION frame on the channel on which the connected line interception macro should
be run. When ast_read is called to read the frame, ast_read responds by calling a callback function
associated with the specific read action the control frame describes. In this case, the action taken
is to run the connected line interception macro on the transferee's channel.

Review: https://reviewboard.asterisk.org/r/652/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@263541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-17 15:36:31 +00:00
..
h323 Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
misdn Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
sip Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
xpmr AST-2009-005 2009-08-10 19:20:57 +00:00
Makefile Change per-file debug and verbose levels to be per-module, the way 2010-03-23 14:22:27 +00:00
chan_agent.c small correction from 241314 2010-01-19 18:51:19 +00:00
chan_alsa.c fixes adaptive jitterbuffer configuration 2010-03-02 19:08:38 +00:00
chan_bridge.c Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
chan_console.c Fix an off by one error that causes a crash. 2010-05-13 15:36:12 +00:00
chan_dahdi.c Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
chan_gtalk.c fixes adaptive jitterbuffer configuration 2010-03-02 19:08:38 +00:00
chan_h323.c Consolidate ast_channel.cid.cid_rdnis into ast_channel.redirecting.from.number. 2010-04-03 02:12:33 +00:00
chan_iax2.c fix iax_frame double free 2010-05-14 18:53:55 +00:00
chan_jingle.c fixes adaptive jitterbuffer configuration 2010-03-02 19:08:38 +00:00
chan_local.c Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
chan_mgcp.c Only change the RTP ssrc when we see that it has changed 2010-03-12 22:04:51 +00:00
chan_misdn.c Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
chan_multicast_rtp.c Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
chan_nbs.c Missed these two channel drivers on the codec_bits merge 2009-11-06 19:38:33 +00:00
chan_oss.c Consolidate ast_channel.cid.cid_rdnis into ast_channel.redirecting.from.number. 2010-04-03 02:12:33 +00:00
chan_phone.c More 32->64 bit codec conversions. 2009-12-01 20:27:37 +00:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_sip.c Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
chan_skinny.c Ignore Redial softkey when no previous dialed number is known 2010-04-02 06:45:54 +00:00
chan_unistim.c fixes adaptive jitterbuffer configuration 2010-03-02 19:08:38 +00:00
chan_usbradio.c chan_usbradio depends on alsa. 2010-03-25 20:08:40 +00:00
chan_vpb.cc Formats are inconsistent between even 32-bit and 64-bit Linux. Use casts to ensure both compile. 2010-01-21 15:14:55 +00:00
console_board.c import the recent additions for video console into trunk, 2008-06-29 21:17:14 +00:00
console_gui.c Const-ify the world (or at least a good part of it) 2009-05-21 21:13:09 +00:00
console_video.c (closes issue #13557) 2008-10-09 14:17:33 +00:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
iax2-parser.c Informational message, not an error. 2010-01-28 20:00:09 +00:00
iax2-parser.h Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
iax2-provision.c AST-2009-005 2009-08-10 19:20:57 +00:00
iax2-provision.h Don't reload a configuration file if nothing has changed. 2007-08-16 21:09:46 +00:00
iax2.h Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
misdn_config.c Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
sig_analog.c The inalarm flag is not passed up from the sig_analog and sig_pri submodules. 2010-05-04 21:10:58 +00:00
sig_analog.h The inalarm flag is not passed up from the sig_analog and sig_pri submodules. 2010-05-04 21:10:58 +00:00
sig_pri.c Dialing an invalid extension causes incomplete hangup sequence. 2010-05-11 23:18:53 +00:00
sig_pri.h The inalarm flag is not passed up from the sig_analog and sig_pri submodules. 2010-05-04 21:10:58 +00:00
vcodecs.c Const-ify the world (or at least a good part of it) 2009-05-21 21:13:09 +00:00
vgrabbers.c free memory used by the x11 grabber when closing it. 2008-07-14 16:50:54 +00:00