asterisk/asterisk.git
14 years agoMerge Steve Murphy's (murf) complete re-implementation of AEL, which is now no longer...
Kevin P. Fleming [Mon, 24 Apr 2006 17:41:27 +0000 (17:41 +0000)]
Merge Steve Murphy's (murf) complete re-implementation of AEL, which is now no longer considered experimental :-)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22273 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoprint a message before running the autotools
Russell Bryant [Mon, 24 Apr 2006 17:34:35 +0000 (17:34 +0000)]
print a message before running the autotools

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22272 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agofix kevin's silly typos
Russell Bryant [Mon, 24 Apr 2006 17:24:03 +0000 (17:24 +0000)]
fix kevin's silly typos

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22269 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoDeprecate prefixed options in voicemail
Tilghman Lesher [Mon, 24 Apr 2006 17:20:41 +0000 (17:20 +0000)]
Deprecate prefixed options in voicemail

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22268 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoThanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf...
Kevin P. Fleming [Mon, 24 Apr 2006 17:11:45 +0000 (17:11 +0000)]
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoFix CDR builds when includes are in freetds directory off include
Mark Spencer [Mon, 24 Apr 2006 03:40:12 +0000 (03:40 +0000)]
Fix CDR builds when includes are in freetds directory off include

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22232 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoBug 6710 - Move default datetime string to each language function, so each language...
Tilghman Lesher [Sun, 23 Apr 2006 15:26:55 +0000 (15:26 +0000)]
Bug 6710 - Move default datetime string to each language function, so each language can have its own default

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22201 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- Add doxygen documentation for sipsock_read locking
Olle Johansson [Sun, 23 Apr 2006 06:22:29 +0000 (06:22 +0000)]
- Add doxygen documentation for sipsock_read locking
- Improve documentation of pedantic
  (related to issue #7016)

  From the air above Russia...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22163 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoAdded "Operator Services" connection mode for Zap channels, and the 'O' option
Jim Dixon [Sat, 22 Apr 2006 11:30:06 +0000 (11:30 +0000)]
Added "Operator Services" connection mode for Zap channels, and the 'O' option
in app_dial to support the use of this mode.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22128 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoconvert to use ast_stream_and_wait
Luigi Rizzo [Fri, 21 Apr 2006 20:57:29 +0000 (20:57 +0000)]
convert to use ast_stream_and_wait

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22082 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoconvert to use ast_strem_and_wait
Luigi Rizzo [Fri, 21 Apr 2006 20:51:55 +0000 (20:51 +0000)]
convert to use ast_strem_and_wait

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22078 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoconvert to use ast_stream_and_wait
Luigi Rizzo [Fri, 21 Apr 2006 20:39:50 +0000 (20:39 +0000)]
convert to use ast_stream_and_wait

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22076 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomove wait_and_stream to ast_wait_and_stream() because equivalent
Luigi Rizzo [Fri, 21 Apr 2006 20:28:32 +0000 (20:28 +0000)]
move wait_and_stream to ast_wait_and_stream() because equivalent
code is replicated in way too many places not to have a global
function for that.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22075 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore stncpy/ast_copy_string replacement.
Luigi Rizzo [Fri, 21 Apr 2006 18:34:38 +0000 (18:34 +0000)]
more stncpy/ast_copy_string replacement.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22046 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore strncpy/ast_copy_string replacement.
Luigi Rizzo [Fri, 21 Apr 2006 18:26:54 +0000 (18:26 +0000)]
more strncpy/ast_copy_string replacement.
On passing, simplify code by using strsep() as appropriate

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22045 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore strncpy/ast_copy_string replacement
Luigi Rizzo [Fri, 21 Apr 2006 18:13:21 +0000 (18:13 +0000)]
more strncpy/ast_copy_string replacement

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22044 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoreplace some strncpy with ast_copy string,
Luigi Rizzo [Fri, 21 Apr 2006 18:08:57 +0000 (18:08 +0000)]
replace some strncpy with ast_copy string,
on passing fix some potential null pointer dereference,
and normalize some loops

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22043 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoreplace strncpy with ast_copy_string.
Luigi Rizzo [Fri, 21 Apr 2006 17:53:39 +0000 (17:53 +0000)]
replace strncpy with ast_copy_string.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22016 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoreplace strncpy with ast_copy_string and fix the -1 offset which
Luigi Rizzo [Fri, 21 Apr 2006 17:47:44 +0000 (17:47 +0000)]
replace strncpy with ast_copy_string and fix the -1 offset which
is not needed now.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22015 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agocomment a possible memory leak
Luigi Rizzo [Fri, 21 Apr 2006 16:18:12 +0000 (16:18 +0000)]
comment a possible memory leak

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21988 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomerge some common code into a function
Luigi Rizzo [Fri, 21 Apr 2006 16:04:25 +0000 (16:04 +0000)]
merge some common code into a function

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21986 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoupdate configuration, generalize date format and
Luigi Rizzo [Fri, 21 Apr 2006 15:49:14 +0000 (15:49 +0000)]
update configuration, generalize date format and
start mapping digit strings

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21960 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- use symbolic constants and macros to play with the debug flag
Luigi Rizzo [Fri, 21 Apr 2006 14:49:21 +0000 (14:49 +0000)]
- use symbolic constants and macros to play with the debug flag
  on the frame counters. Document it in the header file.
- provide a single exit point for a function;
- mark XXX some unclear parts of the code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21933 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agosimplify pbx_builtin_execiftime
Luigi Rizzo [Fri, 21 Apr 2006 13:44:15 +0000 (13:44 +0000)]
simplify pbx_builtin_execiftime

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21906 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agosimplify a function
Luigi Rizzo [Fri, 21 Apr 2006 12:58:39 +0000 (12:58 +0000)]
simplify a function

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21879 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agominor cleanup
Luigi Rizzo [Fri, 21 Apr 2006 12:12:42 +0000 (12:12 +0000)]
minor cleanup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21878 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoone more client for find_context_locked()
Luigi Rizzo [Fri, 21 Apr 2006 11:30:02 +0000 (11:30 +0000)]
one more client for find_context_locked()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21851 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agolocalize a variable, and make a minor code rearrangement.
Luigi Rizzo [Fri, 21 Apr 2006 11:19:48 +0000 (11:19 +0000)]
localize a variable, and make a minor code rearrangement.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21850 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore NULL "" equivalence in cid fields.
Luigi Rizzo [Fri, 21 Apr 2006 11:05:54 +0000 (11:05 +0000)]
more NULL "" equivalence in cid fields.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21849 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore NULL "" equivalence in cid fields.
Luigi Rizzo [Fri, 21 Apr 2006 11:02:28 +0000 (11:02 +0000)]
more NULL "" equivalence in cid fields.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21835 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore NULL "" equivalence,
Luigi Rizzo [Fri, 21 Apr 2006 10:57:03 +0000 (10:57 +0000)]
more NULL "" equivalence,
mark a couple of inconsistencies (missing CallerIDnum,
"unknown" instead of "<unknown>") - there are more of the same.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21821 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore NULL "" equivalence in CLI fields.
Luigi Rizzo [Fri, 21 Apr 2006 10:51:31 +0000 (10:51 +0000)]
more NULL "" equivalence in CLI fields.

Mark a place where we don't clear a buffer while we probably should.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21820 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore NULL / "" equivalence for CID fields.
Luigi Rizzo [Fri, 21 Apr 2006 10:47:07 +0000 (10:47 +0000)]
more NULL / "" equivalence for CID fields.

Mark an inconsistency in empty string handling.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21819 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore NULL "" equivalence in CID fields.
Luigi Rizzo [Fri, 21 Apr 2006 10:41:13 +0000 (10:41 +0000)]
more NULL "" equivalence in CID fields.
Mark a potentially missing item in managerevent

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21818 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoast_strdup can handle NULL args well, so use it.
Luigi Rizzo [Fri, 21 Apr 2006 10:37:59 +0000 (10:37 +0000)]
ast_strdup can handle NULL args well, so use it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21817 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore NULL and "" equivalence in cid fields
Luigi Rizzo [Fri, 21 Apr 2006 10:31:23 +0000 (10:31 +0000)]
more NULL and "" equivalence in cid fields

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21816 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomake NULL and "" equivalent in cid fields, mark some missing NULL checks.
Luigi Rizzo [Fri, 21 Apr 2006 10:05:45 +0000 (10:05 +0000)]
make NULL and "" equivalent in cid fields, mark some missing NULL checks.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21814 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomake NULL and "" equivalent for some cid fields.
Luigi Rizzo [Fri, 21 Apr 2006 10:00:58 +0000 (10:00 +0000)]
make NULL and "" equivalent for some cid fields.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21792 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoReplace three replicas of the same code with a function.
Luigi Rizzo [Fri, 21 Apr 2006 09:54:23 +0000 (09:54 +0000)]
Replace three replicas of the same code with a function.
Consider NULL and "" as equivalent in cid strings.

On passing, also remove an extra data copy.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21786 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agocomment that for callerid field, NULL and "" should be considered
Luigi Rizzo [Thu, 20 Apr 2006 17:39:44 +0000 (17:39 +0000)]
comment that for callerid field, NULL and "" should be considered
equivalent (the reason is, when passing these strings through a
statically allocated buffer, we have no way to tell between NULL and ""
so we would be unable to preserve the difference, if any).

No code changes yet.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21743 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoClarify result of sipsock_read
Olle Johansson [Wed, 19 Apr 2006 23:49:36 +0000 (23:49 +0000)]
Clarify result of sipsock_read

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21707 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoadd the malloc attribute to the memory allocation wrappers
Russell Bryant [Wed, 19 Apr 2006 22:32:07 +0000 (22:32 +0000)]
add the malloc attribute to the memory allocation wrappers

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21681 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMerged revisions 21638 via svnmerge from
Kevin P. Fleming [Wed, 19 Apr 2006 21:11:31 +0000 (21:11 +0000)]
Merged revisions 21638 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r21638 | kpfleming | 2006-04-19 16:10:41 -0500 (Wed, 19 Apr 2006) | 2 lines

support system-specific scripts in safe_asterisk, before starting Asterisk proper

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21639 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMerged revisions 21597 via svnmerge from
Tilghman Lesher [Wed, 19 Apr 2006 18:56:38 +0000 (18:56 +0000)]
Merged revisions 21597 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r21597 | tilghman | 2006-04-19 13:43:17 -0500 (Wed, 19 Apr 2006) | 2 lines

Bug 6553 - plug memory leaks when ODBC connection is down

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21600 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoOops, wasn't revised the way I thought it was
Tilghman Lesher [Wed, 19 Apr 2006 18:50:51 +0000 (18:50 +0000)]
Oops, wasn't revised the way I thought it was

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21599 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoBlocked revisions 21597 via svnmerge
Tilghman Lesher [Wed, 19 Apr 2006 18:44:58 +0000 (18:44 +0000)]
Blocked revisions 21597 via svnmerge

........
r21597 | tilghman | 2006-04-19 13:43:17 -0500 (Wed, 19 Apr 2006) | 2 lines

Bug 6553 - plug memory leaks when ODBC connection is down

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21598 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomove a replicated block of code in the one place where it belongs.
Luigi Rizzo [Wed, 19 Apr 2006 18:15:20 +0000 (18:15 +0000)]
move a replicated block of code in the one place where it belongs.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21596 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomerge two nested 'if' which are really a single block.
Luigi Rizzo [Wed, 19 Apr 2006 18:07:19 +0000 (18:07 +0000)]
merge two nested 'if' which are really a single block.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21595 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agofix indentation of a large block
Luigi Rizzo [Wed, 19 Apr 2006 18:00:32 +0000 (18:00 +0000)]
fix indentation of a large block

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21572 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agostart sorting out the duplicated code in the privacy handler
Luigi Rizzo [Wed, 19 Apr 2006 17:58:07 +0000 (17:58 +0000)]
start sorting out the duplicated code in the privacy handler
for future removal

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21568 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomerge two nested 'if' which are really a single block.
Luigi Rizzo [Wed, 19 Apr 2006 17:29:15 +0000 (17:29 +0000)]
merge two nested 'if' which are really a single block.
(indentation still to be fixed)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21566 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore localization and variable removal
Luigi Rizzo [Wed, 19 Apr 2006 16:54:04 +0000 (16:54 +0000)]
more localization and variable removal

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21538 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore localization of variables
Luigi Rizzo [Wed, 19 Apr 2006 16:36:15 +0000 (16:36 +0000)]
more localization of variables

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21537 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agolocalize one more variable;
Luigi Rizzo [Wed, 19 Apr 2006 16:19:52 +0000 (16:19 +0000)]
localize one more variable;
use ast_strdup as it can handle the NULL argument well.
mark a dubious piece of code with XXX

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21536 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agolocalize some variables
Luigi Rizzo [Wed, 19 Apr 2006 16:10:11 +0000 (16:10 +0000)]
localize some variables

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21535 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoextract a common condition.
Luigi Rizzo [Wed, 19 Apr 2006 15:15:03 +0000 (15:15 +0000)]
extract a common condition.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21508 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agofix indentation of some large blocks after previous changes
Luigi Rizzo [Wed, 19 Apr 2006 14:53:18 +0000 (14:53 +0000)]
fix indentation of some large blocks after previous changes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21481 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore simplifications - use a local variable c instead of o->chan,
Luigi Rizzo [Wed, 19 Apr 2006 14:50:17 +0000 (14:50 +0000)]
more simplifications - use a local variable c instead of o->chan,
use S_OR as appropriate.

Still need to fix the indentation of some blocks.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21480 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore simplifications
Luigi Rizzo [Wed, 19 Apr 2006 14:14:40 +0000 (14:14 +0000)]
more simplifications

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21479 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agostart cleaning up this code so we can split the 900 lines function
Luigi Rizzo [Wed, 19 Apr 2006 14:02:49 +0000 (14:02 +0000)]
start cleaning up this code so we can split the 900 lines function
into manageable chunks.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21468 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agosupport 'languageprefix' in asterisk.conf to modify the algorithm
Luigi Rizzo [Wed, 19 Apr 2006 13:59:34 +0000 (13:59 +0000)]
support 'languageprefix' in asterisk.conf to modify the algorithm
to build pathnames for language-specific files (see file.c for
a description)

Default, of course, to the standard behaviour.

We don't have an asterisk.conf.sample to put an example of use!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21451 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoadd experimental code for new-style "say" application.
Luigi Rizzo [Wed, 19 Apr 2006 10:27:31 +0000 (10:27 +0000)]
add experimental code for new-style "say" application.
The rules for spelling out numbers and dates are in the config
file "say.conf", which can be edited to implement national
or even local language rules.

The new code can be enabled through the cli command
'say load new'
while the old code can be restored with
'say load old'

Eventually, this code should go to a better place,
but for the time being we keep here as it provides
very similar functions.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21421 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoadd example syntax for new-style number and date spelling
Luigi Rizzo [Wed, 19 Apr 2006 10:21:58 +0000 (10:21 +0000)]
add example syntax for new-style number and date spelling

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21420 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoone more client for find_context_locked(),
Luigi Rizzo [Wed, 19 Apr 2006 09:31:41 +0000 (09:31 +0000)]
one more client for find_context_locked(),
plus a few minor fixes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agouse a function, set_ext_pri(), to assign extension and priority.
Luigi Rizzo [Wed, 19 Apr 2006 09:18:30 +0000 (09:18 +0000)]
use a function, set_ext_pri(), to assign extension and priority.
On passing, fix a bug in __ast_pbx_run() where the wrong priority
was used in a call to ast_exists_extension() (see comment in the code).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoreplace repeated code to walk contexts with a function,
Luigi Rizzo [Wed, 19 Apr 2006 08:52:15 +0000 (08:52 +0000)]
replace repeated code to walk contexts with a function,
find_context_locked()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21365 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomove to a different file (channel.c for the time being) the
Luigi Rizzo [Wed, 19 Apr 2006 07:23:22 +0000 (07:23 +0000)]
move to a different file (channel.c for the time being) the
wrappers around the basic 'say' functions, and redeclare these
wrappers as ordinary functions rather than function pointers.

This way, alternative implementations of the 'say' functions
will only have to implement the basic functions and not the
wrappers.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21338 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- use ast_calloc instead of ast_malloc
Luigi Rizzo [Wed, 19 Apr 2006 06:58:20 +0000 (06:58 +0000)]
- use ast_calloc instead of ast_malloc
- use ast_channel_lock/unlock in a few places
- comment some dubious pieces of code
- use memset to zero a buffer

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21311 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoAdd reference to RFC for mailbox notification
Olle Johansson [Wed, 19 Apr 2006 00:45:37 +0000 (00:45 +0000)]
Add reference to RFC for mailbox notification

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21277 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoCosmetic fixes to code...
Olle Johansson [Wed, 19 Apr 2006 00:04:03 +0000 (00:04 +0000)]
Cosmetic fixes to code...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21262 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agofix obvious breakage
Kevin P. Fleming [Tue, 18 Apr 2006 23:50:59 +0000 (23:50 +0000)]
fix obvious breakage

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21239 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agodoh! don't double-increment the bracket count for embedded references
Kevin P. Fleming [Tue, 18 Apr 2006 23:25:22 +0000 (23:25 +0000)]
doh! don't double-increment the bracket count for embedded references

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21236 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agodon't ignore left-curly-braces when searching for the end of a variable/function...
Kevin P. Fleming [Tue, 18 Apr 2006 23:24:02 +0000 (23:24 +0000)]
don't ignore left-curly-braces when searching for the end of a variable/function reference; match them up with right-curly-braces so we choose the proper brace to end the reference (will still fail to parse properly if the reference contains unbalanced braces)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21235 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agocorrect array index calculation (thanks mtaht3!)
Kevin P. Fleming [Tue, 18 Apr 2006 21:39:20 +0000 (21:39 +0000)]
correct array index calculation (thanks mtaht3!)
update header file comments to reflect new usage of structure field

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21207 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoupdate res_odbc to support pooled connections
Russell Bryant [Tue, 18 Apr 2006 18:16:32 +0000 (18:16 +0000)]
update res_odbc to support pooled connections
(from tilghman's developer branch, res_odbc_rewrite)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21181 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- call parking improvements (part of the siptransfer branch)
Olle Johansson [Tue, 18 Apr 2006 15:09:01 +0000 (15:09 +0000)]
- call parking improvements (part of the siptransfer branch)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21157 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoImplement somewhat improved support for 481 Call leg does not exist responses...
Olle Johansson [Tue, 18 Apr 2006 14:50:30 +0000 (14:50 +0000)]
Implement somewhat improved support for 481 Call leg does not exist responses...
- There are some questions on what to do here, but it is a first step.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21131 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoDo not depend on having an end sound for stopping the bridge when time runs out....
Joshua Colp [Tue, 18 Apr 2006 14:43:32 +0000 (14:43 +0000)]
Do not depend on having an end sound for stopping the bridge when time runs out. (issue #6979 reported by ppyy)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21130 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoClean up handle_response_peerpoke
Olle Johansson [Tue, 18 Apr 2006 14:41:57 +0000 (14:41 +0000)]
Clean up handle_response_peerpoke

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21129 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoChange sip show channels to include refer status
Olle Johansson [Tue, 18 Apr 2006 14:37:54 +0000 (14:37 +0000)]
Change sip show channels to include refer status

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21128 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- Deallocate refer structure at sip_destroy time
Olle Johansson [Tue, 18 Apr 2006 14:35:15 +0000 (14:35 +0000)]
- Deallocate refer structure at sip_destroy time
- Implement new sip_transfer() function

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21127 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agosimplify logic in iax2_bridge()
Luigi Rizzo [Tue, 18 Apr 2006 14:23:14 +0000 (14:23 +0000)]
simplify logic in iax2_bridge()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agosimplify logic in various functions, remove unnecessary variables
Luigi Rizzo [Tue, 18 Apr 2006 13:37:07 +0000 (13:37 +0000)]
simplify logic in various functions, remove unnecessary variables

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21099 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoremove a line that was added by mistake
Luigi Rizzo [Tue, 18 Apr 2006 13:17:44 +0000 (13:17 +0000)]
remove a line that was added by mistake

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21098 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agosimplify the flow of builtin_atxfer().
Luigi Rizzo [Tue, 18 Apr 2006 13:05:48 +0000 (13:05 +0000)]
simplify the flow of builtin_atxfer().

There is still a lot of similarity with builtin_blindtransfer()
which should be removed by definining functions for the common
pieces of code (eg in the first part).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21097 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoIt's critical that we get an ACK on a 200 OK to an INVITE. If we do not get the ACK,
Olle Johansson [Tue, 18 Apr 2006 07:03:36 +0000 (07:03 +0000)]
It's critical that we get an ACK on a 200 OK to an INVITE. If we do not get the ACK,
tear down the call. (Discovered at SIPit18)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21061 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agouse XMIT_RELIABLE ...
Olle Johansson [Tue, 18 Apr 2006 07:00:27 +0000 (07:00 +0000)]
use XMIT_RELIABLE ...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21043 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- Move subscribeuri away from refer-to, since refer-to is moving away from sip_pvt
Olle Johansson [Tue, 18 Apr 2006 06:40:01 +0000 (06:40 +0000)]
- Move subscribeuri away from refer-to, since refer-to is moving away from sip_pvt

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21039 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMerged revisions 21037 via svnmerge from
Tilghman Lesher [Tue, 18 Apr 2006 06:29:30 +0000 (06:29 +0000)]
Merged revisions 21037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r21037 | tilghman | 2006-04-18 01:26:04 -0500 (Tue, 18 Apr 2006) | 2 lines

Bug 6984 - off by one error in Random()

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21038 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMerged revisions 20966 via svnmerge from
Tilghman Lesher [Mon, 17 Apr 2006 17:17:41 +0000 (17:17 +0000)]
Merged revisions 20966 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r20966 | tilghman | 2006-04-17 12:00:16 -0500 (Mon, 17 Apr 2006) | 2 lines

Bug 6544 - when we remove a music class, the thread servicing it should die

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21002 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoactually return the number steps... not the number of steps minus 1
Kevin P. Fleming [Mon, 17 Apr 2006 16:43:55 +0000 (16:43 +0000)]
actually return the number steps... not the number of steps minus 1

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20964 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agomore module loader related fixes
Kevin P. Fleming [Mon, 17 Apr 2006 16:42:21 +0000 (16:42 +0000)]
more module loader related fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20963 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoadd an API so that the number of steps required for a translation path can be acquired
Kevin P. Fleming [Mon, 17 Apr 2006 16:42:03 +0000 (16:42 +0000)]
add an API so that the number of steps required for a translation path can be acquired
don't transcode via SLINEAR when the option is enabled but there is a direct path from the source to the destination

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20962 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoSet timeout timers to Timer A and F in rfc 3261, section 17
Olle Johansson [Mon, 17 Apr 2006 14:22:16 +0000 (14:22 +0000)]
Set timeout timers to Timer A and F in rfc 3261, section 17

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20932 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoChange transmit_invite(). SIP Transfers are now broken officially, while
Olle Johansson [Mon, 17 Apr 2006 14:07:50 +0000 (14:07 +0000)]
Change transmit_invite(). SIP Transfers are now broken officially, while
waiting for the rest of the patches... This is the dev branch, after all.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20931 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- Add supported header
Olle Johansson [Mon, 17 Apr 2006 14:00:44 +0000 (14:00 +0000)]
- Add supported header
- Send cause codes as well

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20908 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoAdd more history on masqs
Olle Johansson [Mon, 17 Apr 2006 13:52:53 +0000 (13:52 +0000)]
Add more history on masqs

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20903 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- Implementing the new SIP transfer data structure
Olle Johansson [Mon, 17 Apr 2006 13:47:30 +0000 (13:47 +0000)]
- Implementing the new SIP transfer data structure
- Changing SIP call to support sending INVITEs as part of call transfers

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20902 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- Documentation update
Olle Johansson [Mon, 17 Apr 2006 13:22:31 +0000 (13:22 +0000)]
- Documentation update
- Formatting change

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20901 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoDocumentation update
Olle Johansson [Mon, 17 Apr 2006 13:08:24 +0000 (13:08 +0000)]
Documentation update

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20900 65c4cc65-6c06-0410-ace0-fbb531ad65f3