Remove some resolved or obsolete BUGBUG comments.

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396401 f38db490-d61c-443f-a65b-d21fe96a405b
Improve disk writes for wav49 format

Writing to a file in the wav49 format performs rather inefficiently. The
procedure is approximately:
 (1) Write GSM frame to the end of the file
 (2) Seek to the end of the file
 (3) Seek to the header
 (4) Update the file size
 (5) Seek (again) to the end of the file
 (6) Repeat

This pattern negates any attempt to use the stdio buffering setup in
ast_writefile. It also results in many small writes that require a seek going
to the disk each second which translates to poor disk performance on certain
file systems, particularly when there are multiple wav49 files being written
simultaneously.

(closes issue ASTERISK-19595)
Reported by: Byron Clark
Tested by: Byron Clark
patches:
  gsm_wav_only_update_header_on_close.patch uploaded by byronclark (License 6157)


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396412 f38db490-d61c-443f-a65b-d21fe96a405b
Make bridge snapshots use prefixes.

* Changed ast_manager_build_bridge_state_string() to assume an empty
prefix string just like ast_manager_build_channel_state_string().

* Created ast_manager_build_bridge_state_string_prefix() to work just like
ast_manager_build_channel_state_string_prefix().

* Made BridgeMerge AMI event use To/From prefixes.


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396417 f38db490-d61c-443f-a65b-d21fe96a405b
Blocked revisions 396441

........
Consistent memory allocation by ast_bt_get_symbols.

Always use ast_alloc/ast_free. This is handled differently in trunk (r391012).

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

Merged revisions 396427 from http://svn.asterisk.org/svn/asterisk/branches/1.8


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396446 f38db490-d61c-443f-a65b-d21fe96a405b
Remove extra CR/LF from AMI event.

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396462 f38db490-d61c-443f-a65b-d21fe96a405b
Add missing CR/LF to FakeMI stasis test AMI event.

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396463 f38db490-d61c-443f-a65b-d21fe96a405b
chan_dahdi: create channels at run-time

This code adds chan_dahdi the command 'dahdi create channels <range>'
(where <range> is a single <n>-<m> or 'new') and updates 'dahdi destroy
channel' with a similar 'dahdi destroy channels'. It allows DAHDI
channels and spans to be added after the initial channel load
(without destroying all other channels as in 'dahdi restart').

It also includes some fixes to the D-Channel / span destruction code
(r394552).

This change is intended to provide a hook for a script running from
udev once a span has been assigned ("registered") / unassigned
("unregistered") for its channels. The udev hook configures the span's
channels with dahdi_cfg -S, and can then ask Asterisk to create ethe
channels. See the scripts added to DAHDI-tools in 2.7.0.

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


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396474 f38db490-d61c-443f-a65b-d21fe96a405b
Fix stasis/core unit test.  Should have had the CR/LF.

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396480 f38db490-d61c-443f-a65b-d21fe96a405b
Update documentation for ConfBridge with some additional markup

Add some additional markup for items that needed it, e.g.,
replaceable tags, literal tags, etc.


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396490 f38db490-d61c-443f-a65b-d21fe96a405b
bridge_channel: Support the lonely flag and make ARI use it.

The lonely flag is an optional flag for bridge channels that will
make them leave a bridge when a channel leaves if only lonely
channels are in the bridge at that point. This is useful for things
like ending recording and playback channels when they cease to be
interacting with other channels in the bridge.

(closes issue ASTERISK-22117)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2721/


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396497 f38db490-d61c-443f-a65b-d21fe96a405b
pbx: Make originate threads indicate dial status when synchronous

This makes it so that we can detect failures to originate as with
earlier versions of Asterisk, which restores the Asterisk 11 behavior
for the originate manager action. This was causing the ACL tests for
SIP and IAX2 to fail since those tests expected originate failures
when ACLs would cause rejections. Also, this patch fixes crashes in
chan_sip when ACLs rejected peers during registration verification.

(closes issue ASTERISK-22212)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2753/


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396498 f38db490-d61c-443f-a65b-d21fe96a405b
Don't leak frames when memory is full in autoservice_run.

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


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396505 f38db490-d61c-443f-a65b-d21fe96a405b
bridge_native_rtp: Remove some unnecessary NULL checks on c1.

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@396512 f38db490-d61c-443f-a65b-d21fe96a405b