8d7f0a948d663d66af7c72e7e3317342e2849a7c
[asterisk/asterisk.git] / ChangeLog
1 2005-11-15  Russell Bryant <russell@digium.com>
2
3         * doc/README.variables: Add application exit status variables
4
5 2005-11-14  Josh Roberson <josh@asteirasgi.com>
6         
7         * manager.c: Fix crash on variable passing from AMI originate (issue #5737)
8
9 2005-11-14  Russell Bryant  <russell@digium.com>
10
11         * many files: Merge doxygen documentation updates. (issue #5605)
12
13         * apps/app_dial.c: Fix typo in RetryDial description.
14
15 2005-11-12  Russell Bryant  <russell@digium.com>
16
17         * channels/chan_oss.c: Fix a typo in an error message.
18
19 2005-11-11  Kevin P. Fleming  <kpfleming@digium.com>
20
21         * Asterisk 1.2.0-rc2 released.
22         
23 2005-11-11  Kevin P. Fleming  <kpfleming@digium.com>
24
25         * channels/chan_sip.c (thread_safe_rand): ensure that threads don't get the same random number (issue #5712)
26
27         * apps/app_voicemail.c (forward_message): correct bugs in message forwarding (issue #5718)
28         (copy_message): use correct path for locking (issue #5704)
29
30         * apps/app_dial.c (wait_for_answer): correct flag copying for automon feature (issue #5720)
31
32         * channels/chan_iax2.c: correct comment
33
34         * apps/app_voicemail.c (close_mailbox): correct previous commit (issue #5663)
35         (vm_change_password): fix password change writing (issue #5721)
36
37         * channels/chan_sip.c (transmit_invite): remove useless debug message; don't try to add OSP tokens to OPTIONS pings
38
39         * apps/app_voicemail.c (close_mailbox): properly remove deleted messages at mailbox close time (issue #5663)
40
41 2005-11-11  Mark Spencer <markster@digium.com>
42
43         * channels/chan_zap.c (zt_bridge): only enable/disable DTMF detection on SUB_REAL channels
44
45 2005-11-10  Kevin P. Fleming  <kpfleming@digium.com>
46
47         * channels/chan_iax2.c: ensure that system headers that provide basic types are included first (issue #5713)
48
49 2005-11-11  Russell Bryant  <russell@digium.com>
50
51         * many files in apps/: Clean up application descriptions. Clarify some wording and make sure they wrap at 80 characters.
52
53 2005-11-10  Mark Spencer <markster@digium.com>
54
55         * rtp.c (ast_rtp_raw_write): use unsigned int for return value from calc_txstamp() (issue #5595)
56         (calc_txstamp): never return a value that was less than zero before being turned into 'unsigned int' (issue #5595)
57
58 2005-11-10  Kevin P. Fleming  <kpfleming@digium.com>
59
60         * include/asterisk/chanspy.h: move spy-related stuff into separate header so chan_h323 can build (issue #5590)
61
62         * include/asterisk/linkedlists.h (AST_LIST_HEAD_SET_NOLOCK): properly initialize tail pointer when list head is directly set (issue #5669)
63
64         * app.c (ast_app_parse_options): ok, so we aren't all perfect... let's make the while loop actually work properly here (issue #5684)
65
66         * apps/app_disa.c (disa_exec): correct password file parsing (issue #5676)
67
68         * apps/app_meetme.c (conf_run): don't restrict admin users from joining a locked conference (issue #5680)
69
70         * channels/chan_misdn.c: include stdio.h (issue #5671)
71         * channels/chan_misdn_config.c: fix prototype warning (issue #5671)
72
73         * pbx.c: remove apps that were deprecated before 1.0 was released (issue #5673)
74
75         * apps/app_striplsd.c, apps/app_substring.c: remove apps that were deprecated before 1.0 was released (issue #5673)
76
77         * include/asterisk/lock.h (PTHREAD_MUTEX_RECURSIVE_NP): work around header problems on Cygwin (issue #5668)
78
79         * pbx/pbx_ael.c: handle switch default cases inside macros properly (issue #5354)
80
81         * configs/voicemail.conf.sample (format): add strong warning about changing format list when mailboxes contain messages (issue #5689)
82
83         * many files: ensure that system headers are included before Asterisk headers (issue #5693)
84
85         * channels/chan_iax2.c (complete_iax2_show_peer): don't return from function without releasing lock (issue #5685)
86
87         * channels/iax2-provision.c (iax_provision_reload): don't leak memory (issue #5700)
88
89         * pbx/pbx_ael.c (handle_macro): don't leak memory (issue #5701)
90         (handle_context): ditto
91
92         * res/res_features.c (load_config): properly initialize referenced variable (issue #5703)
93
94         * apps/app_queue.c (rqm_exec): correct segfault problem (issue #5705)
95         (aqm_exec): ditto
96
97         * app.c (ast_app_parse_options): don't increment 's' until after checking for NULL (related to issue #5630)
98
99         * apps/app_rpt.c: solve a memory leak (config structure was not freed) (issue #5706)
100
101 2005-11-10  Russell Bryant <russell@digium.com>
102
103         * app.c (ast_app_separate_args): Don't consider the open parenthesis as part of the arguments to an option. (issue #5630)
104
105         * many files: Change all references to ast_separate_app_args to ast_app_separate_args
106
107         * many files in apps/: Clean up some application descriptions. Make sure all descriptions in changed files are wrapped at 80 characters.
108
109 2005-11-09  Russell Bryant <russell@digium.com>
110
111         * pbx.c: Clean up descriptions of built-in dialplan applications. Changes include clearer wording and not referring to return values.
112
113 2005-11-09  Kevin P. Fleming  <kpfleming@digium.com>
114
115         * channels/chan_iax2.c (update_registry): don't complain about unspecifed registration expiration intervals, just use the minimum
116
117 2005-11-08  Kevin P. Fleming  <kpfleming@digium.com>
118
119         * Asterisk 1.2.0-rc1 released.
120
121         * include/asterisk/file.h: add test to ensure that stdio.h is included before this file (issue #5658)
122
123         * res/res_odbc.c (odbc_prepare_and_execute): add new API call for use to properly handle prepared statements across server disconnects (issue #5563)
124
125         * pbx.c (pbx_substitute_variables_helper_full): use already-substituted buffer for parsing variable name (issue #5664)
126
127         * channels/chan_zap.c (zt_request): return AST_CAUSE_CONGESTION when a group-channel is requested and the group exists but all channels are busy (issue #3360, related fix)
128         * channels/chan_iax2.c (create_addr): treat UNREACHABLE as AST_CAUSE_UNREGISTERED so that it will generate CHANUNAVAIL from app_dial (issue #3360)
129
130         * res/res_features.c (ast_bridge_call_thread_launch): set SCHED_RR separately from thread creation, so it won't fail when running as non-root (issue #5601, different fix)
131
132         * pbx.c (pbx_builtin_pushvar_helper): add new API function for setting variables that can exist multiple times (issue #2720)
133         * apps/Makefile (APPS): add app_stack (issue #2720)
134         * apps/app_stack.c: new applications (issue #2720)
135
136         * apps/app_meetme.c: fix two audio delay problems related to using non-Zap channels in conferences (issues #3599 and #4252)
137         * configs/meetme.conf.sample: add documentation of new 'audiobuffers' setting to control buffering on incoming audio from non-Zap channels
138
139         * channels/chan_local.c (local_call): move channel variables from incoming to outgoing instead of inheriting them (issue #5604)
140
141         * many files: add explicit include of stdio.h (issue #5650)
142
143 2005-11-07  Kevin P. Fleming  <kpfleming@digium.com>
144
145         * UPGRADE.txt (Parking): add note about new parking behavior (issue #5532)
146
147         * many files: more Cygwin compatibility, and proper getloadavg() prototype/macro (issue #5569)
148
149         * include/asterisk/lock.h (__ast_pthread_mutex_lock): correct build with DETECT_DEADLOCKS defined (issue #5570)
150
151 2005-11-07  Russell Bryant  <russell@digium.com>
152
153         * apps/app_queue.c: upgrade to new arg/option API and implement priority jumping control (issue #5580)
154         * many files: Add missing include of stdio.h, and remove some duplicate and unused header includes
155
156         * include/asterisk/app.h: Increment the arg_index in the options structure to fix applicaiton options that have arguments to them
157
158 2005-11-07  Kevin P. Fleming  <kpfleming@digium.com>
159
160         * cryptostub.c: include necessary headers
161         * include/asterisk/crypto.h: don't include unnecessary headers
162
163         * manager.c (action_setvar): add support for setting global variables (issue #5571)
164
165         * Makefile: correct cross-compilation issue introduced in Cygwin patches (issue #5572)
166
167         * apps/app_voicemail.c: upgrade to new arg/option API and implement priority jumping control (issue #5649)
168
169         * asterisk.c (main): setpriority() failure is not a reason to stop the process (issue #5581)
170
171         * say.c (ast_say_date_with_format_da): say hours properly (issue #5576)
172
173         * manager.c (astman_get_variables): restore old multiple-variable behavior for "Variable" header (issue #5585)
174
175         * many files: don't check for NULL before calling ast_strlen_zero, it can do it itself (issue #5648)
176
177         * pbx.c (handle_show_hints): use proper state-to-string function for hint state (issue #5583)
178
179         * rtp.c: use unsigned format for debug packet output (issue #5595)
180
181         * asterisk.c (main): force a dnsmgr background refresh after all other modules are initialized (issue #5599)
182         * dnsmgr.c: add ability to start a background refresh on demand (issue #5599)
183
184         * apps/app_dial.c (HANDLE_CAUSE): set CDR disposition to match cause code (issue #5602)
185
186         * asterisk.c: support 'runuser' and 'rungroup' options in asterisk.conf (issue #5621)
187
188         * res/Makefile, apps/Makefile, channels/Makefile, Makefile: support WITHOUT_ZAPTEL define to forcibly avoid building Zaptel support (issue #5634)
189
190         * Makefile: various fixes (issue #5633)
191
192         * apps/app_osplookup.c: upgrade to new arg/option API and implement priority jumping control
193
194         * channels/chan_misdn.c: various fixes (issue #5639)
195         * channels/misdn/isdn_lib.c: various fixes (issue #5639)
196
197         * apps/app_playback.c: upgrade to new arg/option API and implement priority jumping control
198
199         * apps/app_privacy.c: upgrade to new arg/option API and implement priority jumping control
200
201         * apps/app_sendtext.c: upgrade to new arg/option API and implement priority jumping control
202
203         * apps/app_transfer.c: upgrade to new arg/option API and implement priority jumping control
204
205         * apps/app_txtcidname.c: upgrade to new arg/option API and implement priority jumping control
206
207         * Makefile: restore function of 'dont-optimize'
208
209         * config.c (config_text_file_load): don't generate log message when stat() fails
210
211         * many files: clean up application documentation to not refer to return values, since they cannot be used in the dialplan (work done by Neil Lewis)
212
213 2005-11-06  Russell Bryant <russell@digium.com>
214
215         * many files: alphabetize options in applicaiton descriptions
216
217         * channels/chan_iax2.c: Use an enum to define iax peer/user flags as well as the pvt structure state.  Use the ast_flags macros for checking or setting the state.
218
219         * sounds.txt: Add missing words from the description of the vm-opts prompt
220
221         * apps/app_externalivr.c: Add a space that fixes building on older versions of gcc
222
223         * many files: Add doxygen updates to categorize modules into groups. Convert a lot of comments over to doxygen style. Add some text giving a basic overview of channels.
224
225         * many files: Update applications to add an exit status variable, make priority jumping optional, and use new args parsing macros
226
227         * pbx.c cdr.c res/res_features.c apps/app_dial.c include/asterisk/cdr.h: Convert some built-in applications to use new args parsing macros.  Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags.
228
229         * channels/chan_agent.c: Don't loop forever on an invalid options string
230
231         * apps/app_disa.c apps/app_forkcdr.c: Fix to use correct arguments to ast_cdr_reset
232
233 2005-11-05  Kevin P. Fleming  <kpfleming@digium.com>
234
235         * Makefile: don't rebuild asterisk/build.h unless the asterisk binary is going to be relinked for some other reason (stops spurious recompile/link every time 'make' is issued); clean up variable substitutions to use consistent syntax
236         * asterisk.c: don't include asterisk/build.h (it's unnecessary)
237         * cli.c: don't include asterisk/build.h, use extern references to buildinfo.c
238         * buildinfo.c: new file to hold version info strings
239
240 2005-11-04  Kevin P. Fleming  <kpfleming@digium.com>
241
242         * apps/app_mixmonitor.c (mixmonitor_exec): correct app name in an error message
243
244 2005-11-04  Russell Bryant  <russell@digium.com>
245
246         * channels/chan_iax2.c: Create a function that stores a peer's status in a given buffer.  Use this function in "iax2 show peers" and "iax2 show peer <peername>".  Also, add the peer's status as an option to the IAXPEER dialplan function.
247
248 2005-11-04  Kevin P. Fleming  <kpfleming@digium.com>
249
250         * include/asterisk/compiler.h: don't try to use always_inline on old compilers
251
252 2005-11-03  Russell Bryant  <russell@digium.com>
253
254         * res/res_agi.c: initialize buffer for result so that the contents are always valid in the response to GET FULL VARIABLE
255
256 2005-11-03  Kevin P. Fleming  <kpfleming@digium.com>
257
258         * doc/README.variables: document DYNAMIC_FEATURES
259
260         * res/res_features.c (ast_bridge_call): remove unused variables
261
262         * apps/app_dial.c (dial_exec_full): simplify options and flag usage
263
264         * include/asterisk/app.h: re-work application arg/option parsing APIs for consistent naming, add doxygen docs for option API
265         * many files: update to new APIs
266
267 2005-11-02  Kevin P. Fleming  <kpfleming@digium.com>
268
269         * apps/app_dial.c (dial_exec_full): convert to use API calls for argument/option parsing
270
271         * include/asterisk/channel.h: add doxygen docs for silence generator APIs
272
273         * channel.c (ast_channel_bridge): simplify native-bridge return logic, remove 'unsuccessful' message since it causes too many questions :-)
274
275 2005-11-01  Kevin P. Fleming  <kpfleming@digium.com>
276
277         * stdtime/localtime.c: fix build failure on uClibc systems (issue #5558)
278         * devicestate.c: same
279
280         * many files: make chan_misdn actually build (issue #5566)
281
282         * many files: more Cygwin build system support (issue #4678)
283
284         * apps/app_parkandannounce.c (parkandannounce_exec): supply parent channel to ast_request_and_dial so channel variables can be inherited (issue #5564)
285         * include/asterisk/channel.h: add parent_channel field
286         * channel.c (__ast_request_and_dial): use parent_channel field to inherit variables into new channel
287
288         * apps/app_cut.c (cut_internal): use ast_app_separate_args() instead of open code (issue #5560)
289
290         * apps/app_mixmonitor.c (launch_monitor_thread): ast_strlen_zero can handle NULL input (issue #5561)
291         (mixmonitor_exec): same
292
293         * res/res_features.c (ast_feature_request_and_dial): ensure that channel variables are inherited from the channel placing the call (issue #5499)
294
295         * utils.c (getloadavg): change to using _BSD_SOURCE as the indicator for whether this function is present or not (issue #5549)
296         
297         * include/asterisk/utils.h (ast_slinear_saturated_add): force to be inlined whenever possible
298         (ast_slinear_saturated_multiply): same
299         (ast_slinear_saturated_divide): same
300         (inaddrcmp): same
301         * include/asterisk/strings.h (ast_strlen_zero): force to be inlined whenever possible
302         * include/asterisk/compiler.h (force_inline): add macro to force inlining of functions
303         
304         * app.c (ast_play_and_record): use ast_silence_generator during recording if requested
305         * asterisk.c: add global option to enable silence-during-record (issue #5135)
306         * channel.c (silence_generator_alloc): new
307         (silence_generator_release): new
308         (silence_generator_generate): new
309         (ast_channel_start_silence_generator): new API call to start generating silence on a channel
310         (ast_channel_stop_silence_generator): parallel call to stop silence generation
311         * apps/app_record.c (record_exec): use ast_silence_generator during recording if requested
312
313 2005-11-01  Kevin P. Fleming  <kpfleming@digium.com>
314
315         * Asterisk 1.2.0-beta2 released.
316