asterisk/asterisk.git
15 years agoMerged revisions 75711 via svnmerge from
Jason Parker [Wed, 18 Jul 2007 20:05:45 +0000 (20:05 +0000)]
Merged revisions 75711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #9245)
........
r75711 | qwell | 2007-07-18 14:54:32 -0500 (Wed, 18 Jul 2007) | 4 lines

Fixes for 7935/7936 conference phones.

Issue 9245, patch by slimey.

........

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

15 years agoBlocked revisions 75712 via svnmerge
Joshua Colp [Wed, 18 Jul 2007 20:01:52 +0000 (20:01 +0000)]
Blocked revisions 75712 via svnmerge

........
r75712 | file | 2007-07-18 17:00:23 -0300 (Wed, 18 Jul 2007) | 2 lines

Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode using GCC 4.2.

........

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

15 years agoMerged revisions 75707 via svnmerge from
Jason Parker [Wed, 18 Jul 2007 19:51:18 +0000 (19:51 +0000)]
Merged revisions 75707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #9887)
........
r75707 | qwell | 2007-07-18 14:48:12 -0500 (Wed, 18 Jul 2007) | 4 lines

Fix issues with new 79x1 phones.

Issue 9887, patches by DEA

........

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

15 years agoconvert some lines indented with spaces to tabs
Russell Bryant [Wed, 18 Jul 2007 19:50:21 +0000 (19:50 +0000)]
convert some lines indented with spaces to tabs

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

15 years agoMerge in ast_strftime branch, which changes timestamps to be accurate to the microsec...
Tilghman Lesher [Wed, 18 Jul 2007 19:47:20 +0000 (19:47 +0000)]
Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second

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

15 years agoMerged revisions 75658 via svnmerge from
Dwayne M. Hubbard [Wed, 18 Jul 2007 17:59:56 +0000 (17:59 +0000)]
Merged revisions 75658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75658 | dhubbard | 2007-07-18 12:56:30 -0500 (Wed, 18 Jul 2007) | 9 lines

Merged revisions 75657 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75657 | dhubbard | 2007-07-18 12:48:33 -0500 (Wed, 18 Jul 2007) | 1 line

removed the word 'pissed' from ast_log(...) function call for BE-90
........

................

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

15 years agoMerged revisions 75623 via svnmerge from
Joshua Colp [Wed, 18 Jul 2007 15:45:18 +0000 (15:45 +0000)]
Merged revisions 75623 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75623 | file | 2007-07-18 12:44:02 -0300 (Wed, 18 Jul 2007) | 2 lines

Few more places that needs to check for onhold state.

........

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

15 years agoMerged revisions 75621 via svnmerge from
Joshua Colp [Wed, 18 Jul 2007 15:42:11 +0000 (15:42 +0000)]
Merged revisions 75621 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75621 | file | 2007-07-18 12:41:06 -0300 (Wed, 18 Jul 2007) | 5 lines

(closes issue #10165)
Reported by: elandivar

It is possible for hold status to exist without call limits set, so we need to ensure update_call_counter is executed regardless.

........

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

15 years agoMerged revisions 75619 via svnmerge from
Joshua Colp [Wed, 18 Jul 2007 15:26:52 +0000 (15:26 +0000)]
Merged revisions 75619 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75619 | file | 2007-07-18 12:25:45 -0300 (Wed, 18 Jul 2007) | 2 lines

Don't bother reloading chan_h323 if it did not load successfully in the first place. This would otherwise cause a crash.

........

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

15 years agoClean up func_curl a bit.
Joshua Colp [Wed, 18 Jul 2007 14:59:20 +0000 (14:59 +0000)]
Clean up func_curl a bit.

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

15 years agoThis corrects the problem with flags and %lld formats on 64-bit machines, where uint6...
Steve Murphy [Wed, 18 Jul 2007 14:35:07 +0000 (14:35 +0000)]
This corrects the problem with flags and %lld formats on 64-bit machines, where uint64_t is NOT acceptable for %lld, and also works on 32-bit machines. At least, with gcc.

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

15 years agoMerged revisions 75583 via svnmerge from
Joshua Colp [Wed, 18 Jul 2007 14:20:19 +0000 (14:20 +0000)]
Merged revisions 75583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75583 | file | 2007-07-18 11:18:53 -0300 (Wed, 18 Jul 2007) | 5 lines

(closes issue #10224)
Reported by: irroot

Record the threadid of each running thread before shutting them down as the thread themselves may change the value.

........

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

15 years agoMinor code tweaks. Variables were being checked wrong in some situations and didn...
Joshua Colp [Wed, 18 Jul 2007 13:59:01 +0000 (13:59 +0000)]
Minor code tweaks. Variables were being checked wrong in some situations and didn't need to be checked in others.

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

15 years agoMerged revisions 75529 via svnmerge from
Tilghman Lesher [Wed, 18 Jul 2007 12:38:36 +0000 (12:38 +0000)]
Merged revisions 75529 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75529 | tilghman | 2007-07-18 07:29:41 -0500 (Wed, 18 Jul 2007) | 2 lines

Using a freed frame causes crashes (closes issue #9317)

........

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

15 years agoSpotted this bug today myself, trying to reproduce a BE bug. Use a vert bar instead...
Steve Murphy [Tue, 17 Jul 2007 21:52:51 +0000 (21:52 +0000)]
Spotted this bug today myself, trying to reproduce a BE bug. Use a vert bar instead of a comma, when calling RAND.

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

15 years agoMerged revisions 75450 via svnmerge from
Russell Bryant [Tue, 17 Jul 2007 20:58:40 +0000 (20:58 +0000)]
Merged revisions 75450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75450 | russell | 2007-07-17 15:57:56 -0500 (Tue, 17 Jul 2007) | 11 lines

Merged revisions 75449 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75449 | russell | 2007-07-17 15:57:09 -0500 (Tue, 17 Jul 2007) | 3 lines

Properly check for the length in the skinny packet to prevent an invalid memcpy.
(ASA-2007-016)

........

................

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

15 years agoBlocked revisions 75447 via svnmerge
Russell Bryant [Tue, 17 Jul 2007 20:52:20 +0000 (20:52 +0000)]
Blocked revisions 75447 via svnmerge

........
r75447 | russell | 2007-07-17 15:51:25 -0500 (Tue, 17 Jul 2007) | 1 line

cast arguments to ast_log so that it builds without warnings for me
........

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

15 years agoMerged revisions 75445 via svnmerge from
Russell Bryant [Tue, 17 Jul 2007 20:49:09 +0000 (20:49 +0000)]
Merged revisions 75445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75445 | russell | 2007-07-17 15:48:21 -0500 (Tue, 17 Jul 2007) | 13 lines

Merged revisions 75444 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75444 | russell | 2007-07-17 15:45:27 -0500 (Tue, 17 Jul 2007) | 5 lines

Ensure that when encoding the contents of an ast_frame into an iax_frame, that
the size of the destination buffer is known in the iax_frame so that code
won't write past the end of the allocated buffer when sending outgoing frames.
(ASA-2007-014)

........

................

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

15 years agoBlocked revisions 75439 via svnmerge
Joshua Colp [Tue, 17 Jul 2007 20:44:55 +0000 (20:44 +0000)]
Blocked revisions 75439 via svnmerge

........
r75439 | file | 2007-07-17 17:40:57 -0300 (Tue, 17 Jul 2007) | 2 lines

Ensure that the pointer to STUN data does not go to unaccessible memory. (ASA-2007-017)

........

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

15 years agoMerged revisions 75441 via svnmerge from
Russell Bryant [Tue, 17 Jul 2007 20:42:50 +0000 (20:42 +0000)]
Merged revisions 75441 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75441 | russell | 2007-07-17 15:42:12 -0500 (Tue, 17 Jul 2007) | 12 lines

Merged revisions 75440 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75440 | russell | 2007-07-17 15:41:41 -0500 (Tue, 17 Jul 2007) | 4 lines

After parsing information elements in IAX frames, set the data length to zero,
so that code later on does not think it has data to copy.
(ASA-2007-015)

........

................

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

15 years agoBlocked revisions 75437 via svnmerge
Russell Bryant [Tue, 17 Jul 2007 20:34:52 +0000 (20:34 +0000)]
Blocked revisions 75437 via svnmerge

........
r75437 | russell | 2007-07-17 15:33:06 -0500 (Tue, 17 Jul 2007) | 8 lines

(issue #10210)
Reported by: juggie
Patches:
      10210-1.4-grr.patch uploaded by juggie (license #24)
Tested by: juggie, blitzrage

Log a warning if someone uses DeadAGI on a live channel.

........

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

15 years agoMerged revisions 75405 via svnmerge from
Mark Michelson [Tue, 17 Jul 2007 20:05:19 +0000 (20:05 +0000)]
Merged revisions 75405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75405 | mmichelson | 2007-07-17 15:03:48 -0500 (Tue, 17 Jul 2007) | 6 lines

Fixing an error I made earlier. ast_fileexists can return -1 on failure, so I need to be sure that we only enter the if
statement if it is successful.

Related to my fix to issue #10186

........

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

15 years agoMerged revisions 75403 via svnmerge from
Russell Bryant [Tue, 17 Jul 2007 20:01:54 +0000 (20:01 +0000)]
Merged revisions 75403 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75403 | russell | 2007-07-17 15:01:12 -0500 (Tue, 17 Jul 2007) | 12 lines

(closes issue #10209)
Reported by: juggie
Patches:
      10209-trunk-2.patch uploaded by juggie
Tested by: juggie, blitzrage

In ast_pbx_run(), mark a channel as hung up after an application returned -1,
or when it runs out of extensions to execute.  This is so that code can detect
that this channel has been hung up for things like making sure DeadAGI is used
on actual dead channels, and is beneficial for other things, like making sure
someone doesn't try to start spying on a channel that is about to go away.

........

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

15 years agoMerged revisions 75401 via svnmerge from
Russell Bryant [Tue, 17 Jul 2007 19:46:13 +0000 (19:46 +0000)]
Merged revisions 75401 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75401 | russell | 2007-07-17 14:45:07 -0500 (Tue, 17 Jul 2007) | 3 lines

Remove a duplicated newline character in AGI debug output.
(closes issue #10207, patch by seanbright)

........

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

15 years agovia 10206, I have added an option (e) to Dial to allow the h exten to get run on...
Steve Murphy [Tue, 17 Jul 2007 19:40:29 +0000 (19:40 +0000)]
via 10206, I have added an option (e) to Dial to allow the h exten to get run on peer. Had to upgrade ast_flag stuff to 64 bits to do this.

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

15 years agoMake trunk build once again.
Joshua Colp [Tue, 17 Jul 2007 14:48:17 +0000 (14:48 +0000)]
Make trunk build once again.

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

15 years agoIntroduce ast_parse_arg() , a generic function to parse strings
Luigi Rizzo [Tue, 17 Jul 2007 14:32:15 +0000 (14:32 +0000)]
Introduce ast_parse_arg() , a generic function to parse strings
in a consistent way. This is meant to replace the custom code
which is repeated all over the place in the various files when
parsing config files, CLI entries and other string information.

Right now the code supports parsing int32, uint32 and sockaddr_in with
optional default values and bound checks. It contains minimal error
checking, but that can be easily extended as the need arises.

Being a new API i am introducing this only in trunk, though I believe
that once the interface has been ironed out it might become a
worthwhile addition to 1.4 as well - basically, the first time
we will need to fix a piece of argument parsing code, we might as
well bring in this change and use the new API instead.

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

15 years agoInitialize a variable to avoid a warning when the compiler
Luigi Rizzo [Tue, 17 Jul 2007 12:46:25 +0000 (12:46 +0000)]
Initialize a variable to avoid a warning when the compiler
(and/or the optimization level) may think it is used uninitialized.
The code was indeed correct, but unfortunately the result of
some compiler checks such as -Wunused and -Wuninitialized depends
heavily on the optimization level.

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

15 years agoFix an incorrect parenthesization (TODO: Find a better word) in app_dial
Jason Parker [Tue, 17 Jul 2007 12:01:05 +0000 (12:01 +0000)]
Fix an incorrect parenthesization (TODO: Find a better word) in app_dial

Pointed out by Fanzhou Zhao

Closes issue #10216

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

15 years agoMerged revisions 75306 via svnmerge from
Kevin P. Fleming [Mon, 16 Jul 2007 20:58:56 +0000 (20:58 +0000)]
Merged revisions 75306 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75306 | kpfleming | 2007-07-16 15:53:24 -0500 (Mon, 16 Jul 2007) | 11 lines

Merged revisions 75304 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75304 | kpfleming | 2007-07-16 15:46:58 -0500 (Mon, 16 Jul 2007) | 3 lines

provide proper copyright/license attribution for this structure that was copied from a BSD-licensed header file long, long ago...

........

................

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

15 years agoChange the function name slightly... just for kpfleming!
Joshua Colp [Mon, 16 Jul 2007 18:38:28 +0000 (18:38 +0000)]
Change the function name slightly... just for kpfleming!

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

15 years agoAdd in check for the GCC attribute deprecated. It may be used soon!
Joshua Colp [Mon, 16 Jul 2007 18:36:02 +0000 (18:36 +0000)]
Add in check for the GCC attribute deprecated. It may be used soon!

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

15 years agoFor my next trick I will make it so dialplan functions no longer need to call ast_mod...
Joshua Colp [Mon, 16 Jul 2007 18:24:29 +0000 (18:24 +0000)]
For my next trick I will make it so dialplan functions no longer need to call ast_module_user_add and ast_module_user_remove. These are now called in the ast_func_read and ast_func_write functions outside of the module.

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

15 years agoMerged revisions 75253 via svnmerge from
Mark Michelson [Mon, 16 Jul 2007 18:18:19 +0000 (18:18 +0000)]
Merged revisions 75253 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75253 | mmichelson | 2007-07-16 13:16:15 -0500 (Mon, 16 Jul 2007) | 8 lines

Restoring functionality from 1.2 wherein Retrydial will not exit if there is no announce file specified.
This change makes it so that if there is no announce file specified, the application will continue until finished (or caller hangs up).
If a bogus announce file is specified, then a warning message will be printed saying that the file could not be found, but execution will
still continue.

(closes issue #10186, reported by jon, patched by me)

........

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

15 years agoI found this sillyness when I did my ast_module_user conversion. Return immediately...
Joshua Colp [Mon, 16 Jul 2007 15:57:01 +0000 (15:57 +0000)]
I found this sillyness when I did my ast_module_user conversion. Return immediately if no data was passed to the Verbose application.

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

15 years agoApplications no longer need to call ast_module_user_add and ast_module_user_remove...
Joshua Colp [Mon, 16 Jul 2007 14:39:29 +0000 (14:39 +0000)]
Applications no longer need to call ast_module_user_add and ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application.

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

15 years agoIt is no longer required for each module that deals with a channel to call ast_module...
Joshua Colp [Mon, 16 Jul 2007 13:35:20 +0000 (13:35 +0000)]
It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.

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

15 years agoMerge a bunch of doxygen updates to header files. This includes changes to
Russell Bryant [Mon, 16 Jul 2007 02:51:56 +0000 (02:51 +0000)]
Merge a bunch of doxygen updates to header files.  This includes changes to
use the \retval tag for documenting return values, fixing various warnings
when generating the documentation, and various other things.
(closes issue #10203, snuffy)

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

15 years agoCast the 2nd argument to iconv() to a void *, as some systems define it as a
Russell Bryant [Mon, 16 Jul 2007 02:44:49 +0000 (02:44 +0000)]
Cast the 2nd argument to iconv() to a void *, as some systems define it as a
(const char *), while others define it as (char *).  This is done to suppress
compiler warnings about it.

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

15 years agoMerged revisions 75108 via svnmerge from
Russell Bryant [Fri, 13 Jul 2007 20:37:27 +0000 (20:37 +0000)]
Merged revisions 75108 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75108 | russell | 2007-07-13 15:36:16 -0500 (Fri, 13 Jul 2007) | 11 lines

Merged revisions 75107 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75107 | russell | 2007-07-13 15:35:22 -0500 (Fri, 13 Jul 2007) | 3 lines

Fix a couple potential minor memory leaks.  load_moh_classes() could return
without destroying the loaded configuration.

........

................

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

15 years agoMerged revisions 75078 via svnmerge from
Mark Michelson [Fri, 13 Jul 2007 20:16:40 +0000 (20:16 +0000)]
Merged revisions 75078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75078 | mmichelson | 2007-07-13 15:15:30 -0500 (Fri, 13 Jul 2007) | 13 lines

Merged revisions 75066 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75066 | mmichelson | 2007-07-13 15:10:39 -0500 (Fri, 13 Jul 2007) | 5 lines

Fixed an issue where chanspy flags were uninitialized if no options were passed.
What triggered this investigation was an IRC chat where some people's quiet flags were
set while others' weren't even though none of them had specified the q option.

........

................

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

15 years agoresolve a compiler warning
Russell Bryant [Fri, 13 Jul 2007 20:15:16 +0000 (20:15 +0000)]
resolve a compiler warning

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

15 years agoMerged revisions 75067 via svnmerge from
Russell Bryant [Fri, 13 Jul 2007 20:14:23 +0000 (20:14 +0000)]
Merged revisions 75067 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75067 | russell | 2007-07-13 15:10:40 -0500 (Fri, 13 Jul 2007) | 14 lines

Merged revisions 75059 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75059 | russell | 2007-07-13 15:07:21 -0500 (Fri, 13 Jul 2007) | 6 lines

Ensure that adding a user to the list of users of a specific music on hold
class is not done at the same time as any of the other operations on this list
to prevent list corruption.  Using the global moh_data lock for this is not
ideal, but it is what is used to protect these lists everywhere else in the
module, and I am only changing what is necessary to fix the bug.

........

................

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

15 years agoMerged revisions 75053 via svnmerge from
Russell Bryant [Fri, 13 Jul 2007 19:19:51 +0000 (19:19 +0000)]
Merged revisions 75053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75053 | russell | 2007-07-13 14:11:26 -0500 (Fri, 13 Jul 2007) | 20 lines

Merged revisions 75052 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75052 | russell | 2007-07-13 14:10:00 -0500 (Fri, 13 Jul 2007) | 12 lines

(closes issue #9660)
Reported by: mmacvicar
Patches submitted by: bbryant, russell
Tested by: mmacvicar, marco, arcivanov, jmhunter, explidous

When using a TDM400P (and probably other analog cards) there was a chance that
you could hang up and pick the phone back up where it has been long enough to
be not considered a flash hook, but too soon such that the device reports that
it is busy and the person on the phone will only hear silence.  This patch
makes chan_zap more tolerant of this and gives the device a couple of seconds
to succeed so the person on the phone happily gets their dialtone.

........

................

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

15 years agoSmall improvement to the STUN support so it can be used by
Luigi Rizzo [Fri, 13 Jul 2007 16:22:09 +0000 (16:22 +0000)]
Small improvement to the STUN support so it can be used by
sockets other than RTP ones.

The main change is a new API function in main/rtp.c (see there
for a description)

    int ast_stun_request(int s, struct sockaddr_in *dst,
        const char *username, struct sockaddr_in *answer)

which can be used to send an STUN request on a socket, and
optionally wait for a reply and store the STUN_MAPPED_ADDRESS
into the 'answer' argument (obviously, the version that
waits for a reply is blocking, but this is no different
from DNS resolutions).

Internally there are minor modifications to let stun_handle_packet()
be somewhat configurable on how to parse the body of responses.

At the moment i am not committing any change to the clients,
but adding STUN client support is extremely simple, e.g. chan_sip.c
could do something like this:

    + add a variable to store the stun server address;

static struct sockaddr_in stunaddr = { 0, };   /*!< stun server address */

    + add code to parse a config file of the form "stunaddr=my.stun.server.org:3478"
      (not shown for brevity);

    + right after binding the main sip socket, talk to the stun server to
      determine the externally visible address

    if (stunaddr.sin_addr.s_addr != 0)
ast_stun_request(sipsock, &stunaddr, NULL, &externip);

      so now 'externip' is set with the externally visible address.

so it is really trivial.

Similarly ast_stun_request could be called when creating the RTP
socket (possibly adding a struct sockaddr_in field in the struct
ast_rtp to store the externalip).

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

15 years agoMerged revisions 74997 via svnmerge from
Mark Michelson [Thu, 12 Jul 2007 23:02:33 +0000 (23:02 +0000)]
Merged revisions 74997 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
........

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

15 years agoMerged revisions 74955 via svnmerge from
Steve Murphy [Thu, 12 Jul 2007 20:46:32 +0000 (20:46 +0000)]
Merged revisions 74955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74955 | murf | 2007-07-12 14:42:08 -0600 (Thu, 12 Jul 2007) | 1 line

This patch resolves 10143; thanks to irroot for the patch; looked acceptable. Let the community decide if it messes things up
........

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

15 years agoMerged revisions 74922 via svnmerge from
Joshua Colp [Thu, 12 Jul 2007 19:19:03 +0000 (19:19 +0000)]
Merged revisions 74922 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74922 | file | 2007-07-12 16:17:59 -0300 (Thu, 12 Jul 2007) | 2 lines

Whoops... didn't want this to be returned to 0 each iteration.

........

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

15 years agoMerged revisions 74888 via svnmerge from
Joshua Colp [Thu, 12 Jul 2007 17:17:56 +0000 (17:17 +0000)]
Merged revisions 74888 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74888 | file | 2007-07-12 14:16:28 -0300 (Thu, 12 Jul 2007) | 2 lines

When waiting for a digit ensure that a begin frame was received with it, not just an end frame. (issue #10084 reported by rushowr)

........

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

15 years agoMerged revisions 74866 via svnmerge from
Jason Parker [Thu, 12 Jul 2007 16:54:02 +0000 (16:54 +0000)]
Merged revisions 74866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74866 | qwell | 2007-07-12 11:53:35 -0500 (Thu, 12 Jul 2007) | 1 line

It helps if I actually add this stuff for the 7921 too - otherwise it won't actually do much of anything.
........

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

15 years agoMerged revisions 74864 via svnmerge from
Jason Parker [Thu, 12 Jul 2007 16:49:17 +0000 (16:49 +0000)]
Merged revisions 74864 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74864 | qwell | 2007-07-12 11:48:49 -0500 (Thu, 12 Jul 2007) | 1 line

Add device ID for 7921 wireless skinny phone
........

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

15 years agomore cleanup, this time to stun_handle_packet(). Among other things:
Luigi Rizzo [Thu, 12 Jul 2007 16:21:12 +0000 (16:21 +0000)]
more cleanup, this time to stun_handle_packet(). Among other things:
+ mark a potentially dangerous write-past-end-of-buffer
+ localize some variables in the block generating stun replies.

As before, not ready yet for a merge to 1.4

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

15 years agoBlocked revisions 74839 via svnmerge
Jason Parker [Thu, 12 Jul 2007 16:18:06 +0000 (16:18 +0000)]
Blocked revisions 74839 via svnmerge

........
r74839 | qwell | 2007-07-12 11:16:59 -0500 (Thu, 12 Jul 2007) | 4 lines

Fix dialing in skinny that was broken in some cases.

Issue 10136, fix provided by DEA.

........

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

15 years agoMerged revisions 74815 via svnmerge from
Joshua Colp [Thu, 12 Jul 2007 15:55:49 +0000 (15:55 +0000)]
Merged revisions 74815 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74815 | file | 2007-07-12 12:53:55 -0300 (Thu, 12 Jul 2007) | 10 lines

Merged revisions 74814 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74814 | file | 2007-07-12 12:51:24 -0300 (Thu, 12 Jul 2007) | 2 lines

Only print out a warning for situations where it is actually helpful. (issue #10187 reported by denke)

........

................

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

15 years agoa little bit of code cleanup to rtp.c, mostly to function
Luigi Rizzo [Thu, 12 Jul 2007 15:42:56 +0000 (15:42 +0000)]
a little bit of code cleanup to rtp.c, mostly to function
ast_rtp_new_with_bindaddr():

1. add comments to the logic of the main loop;
2. use a common exit point on failure so the cleanup is done only in one place;
3. handle failures in rtp_socket() in the main loop of the function;

No functional changes except for #3 above, so it is not yet
worthwhile merging this and other changes to 1.4

Once the cleanup work on this file will be complete (which among
other things should include some extensions to the stun support)
it might be a good thing to push all the changes to 1.4

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

15 years agoMerged revisions 74767 via svnmerge from
Russell Bryant [Wed, 11 Jul 2007 23:05:34 +0000 (23:05 +0000)]
Merged revisions 74767 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74767 | russell | 2007-07-11 17:57:07 -0500 (Wed, 11 Jul 2007) | 13 lines

Merged revisions 74766 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74766 | russell | 2007-07-11 17:53:26 -0500 (Wed, 11 Jul 2007) | 5 lines

The function make_trunk() can fail and return -1 instead of a valid new call
number.  Fix the uses of this function to handle this instead of treating it
as the new call number.  This would cause a deadlock and memory corruption.
(possible cause of issue #9614 and others, patch by me)

........

................

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

15 years agoMerged revisions 74722 via svnmerge from
Mark Michelson [Wed, 11 Jul 2007 21:15:47 +0000 (21:15 +0000)]
Merged revisions 74722 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74722 | mmichelson | 2007-07-11 16:14:09 -0500 (Wed, 11 Jul 2007) | 13 lines

Merged revisions 74719 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74719 | mmichelson | 2007-07-11 16:12:30 -0500 (Wed, 11 Jul 2007) | 5 lines

The cli command "agent logoff Agent/x soft" did not work...at all. Now it does.

(closes issue #10178, reported and patched by makoto, with slight modification for 1.4 and trunk by me)

........

................

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

15 years agoCode cleanup of res_agi
Joshua Colp [Wed, 11 Jul 2007 21:09:42 +0000 (21:09 +0000)]
Code cleanup of res_agi

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

15 years agoCode cleanup of res_smdi
Joshua Colp [Wed, 11 Jul 2007 20:57:25 +0000 (20:57 +0000)]
Code cleanup of res_smdi

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

15 years agoClean up pbx_spool. So many nested if statements...
Joshua Colp [Wed, 11 Jul 2007 20:40:33 +0000 (20:40 +0000)]
Clean up pbx_spool. So many nested if statements...

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

15 years agoUse linkedlist macros for UDPTL protocol list.
Joshua Colp [Wed, 11 Jul 2007 20:07:07 +0000 (20:07 +0000)]
Use linkedlist macros for UDPTL protocol list.

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

15 years agoMerged revisions 74657 via svnmerge from
Russell Bryant [Wed, 11 Jul 2007 18:35:36 +0000 (18:35 +0000)]
Merged revisions 74657 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74657 | russell | 2007-07-11 13:34:51 -0500 (Wed, 11 Jul 2007) | 12 lines

Merged revisions 74656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74656 | russell | 2007-07-11 13:33:23 -0500 (Wed, 11 Jul 2007) | 4 lines

Make sure that the ESCAPE immediately follows the condition that uses LIKE.
This fixes realtime extensions with ODBC.
(closes issue #10175, reported by stuarth, patch by me)

........

................

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

15 years agoMerged revisions 74642 via svnmerge from
Steve Murphy [Wed, 11 Jul 2007 18:21:23 +0000 (18:21 +0000)]
Merged revisions 74642 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74642 | murf | 2007-07-11 12:18:42 -0600 (Wed, 11 Jul 2007) | 1 line

This fixes 10172, where the entire man8 dir gets removed during an uninstall of asterisk
........

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

15 years agoblocking 74628 from trunk... only applied to 1.4
Steve Murphy [Wed, 11 Jul 2007 18:15:30 +0000 (18:15 +0000)]
blocking 74628 from trunk... only applied to 1.4

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

15 years agoUse the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.
Joshua Colp [Wed, 11 Jul 2007 17:34:30 +0000 (17:34 +0000)]
Use the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.

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

15 years agoMerged revisions 74572 via svnmerge from
Joshua Colp [Wed, 11 Jul 2007 17:06:54 +0000 (17:06 +0000)]
Merged revisions 74572 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74572 | file | 2007-07-11 14:03:08 -0300 (Wed, 11 Jul 2007) | 2 lines

Instead of figuring out kernel versions that have compiler.h and not... let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r)

........

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

15 years agoadd a bit of documentation on what the stun code in rtp.c does
Luigi Rizzo [Wed, 11 Jul 2007 16:24:35 +0000 (16:24 +0000)]
add a bit of documentation on what the stun code in rtp.c does
(which is very little, at the moment).

Eventually, when the functionality is extended, the changes can be merged
back to 1.4. At the moment this is pointless.

Note, this change is whitespace only.

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

15 years agoAllow the native formats of a channel to influence the audio that is going to the...
Joshua Colp [Wed, 11 Jul 2007 16:19:00 +0000 (16:19 +0000)]
Allow the native formats of a channel to influence the audio that is going to the engine. The best format will try to be chosen with an ultimate fallback to signed linear if possible.

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

15 years agoCan't forget to remember what format is in use for writing.
Joshua Colp [Wed, 11 Jul 2007 16:10:03 +0000 (16:10 +0000)]
Can't forget to remember what format is in use for writing.

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

15 years agoChange the speech API to allow passing the format through to the engine.
Joshua Colp [Wed, 11 Jul 2007 16:03:31 +0000 (16:03 +0000)]
Change the speech API to allow passing the format through to the engine.

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

15 years agoChange header a bit to get rid of a doxygen parse error. (issue #10177 reported by...
Joshua Colp [Wed, 11 Jul 2007 14:38:01 +0000 (14:38 +0000)]
Change header a bit to get rid of a doxygen parse error. (issue #10177 reported by snuffy)

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

15 years agoMerged revisions 74515 via svnmerge from
Joshua Colp [Wed, 11 Jul 2007 14:10:38 +0000 (14:10 +0000)]
Merged revisions 74515 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74515 | file | 2007-07-11 11:09:13 -0300 (Wed, 11 Jul 2007) | 2 lines

Only check if we need to do a SIGMA based tone generation if we have a card. (issue #10179 reported by mikowhy)

........

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

15 years agoMerged revisions 74476 via svnmerge from
Mark Michelson [Tue, 10 Jul 2007 23:34:06 +0000 (23:34 +0000)]
Merged revisions 74476 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74476 | mmichelson | 2007-07-10 18:32:52 -0500 (Tue, 10 Jul 2007) | 5 lines

Forwarding a message with IMAP storage was storing the message in the sender's box instead of the forwarded mailbox.

(closes issue #10138, reported and patched by jaroth)

........

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

15 years agoMerged revisions 74428 via svnmerge from
Jason Parker [Tue, 10 Jul 2007 20:02:05 +0000 (20:02 +0000)]
Merged revisions 74428 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10158)
................
r74428 | qwell | 2007-07-10 14:58:53 -0500 (Tue, 10 Jul 2007) | 14 lines

Merged revisions 74427 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74427 | qwell | 2007-07-10 14:57:20 -0500 (Tue, 10 Jul 2007) | 6 lines

Fix an issue where it was possible to have a service level of over 100%
Between the time recalc_holdtime and update_queue was called, it was possible that the call could have been hungup.
Move both additions to the same place, so this won't happen.

Issue 10158, initial patch by makoto, modified by me.

........

................

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

15 years agoMerged revisions 74388 via svnmerge from
Jason Parker [Tue, 10 Jul 2007 19:11:25 +0000 (19:11 +0000)]
Merged revisions 74388 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74388 | qwell | 2007-07-10 14:10:36 -0500 (Tue, 10 Jul 2007) | 4 lines

Don't use #if to check if something is defined - use #ifdef instead.

Pointed out by kpfleming

........

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

15 years agoMerged revisions 74379 via svnmerge from
Jason Parker [Tue, 10 Jul 2007 19:07:25 +0000 (19:07 +0000)]
Merged revisions 74379 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10169)
................
r74379 | qwell | 2007-07-10 14:06:24 -0500 (Tue, 10 Jul 2007) | 12 lines

Merged revisions 74376 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74376 | qwell | 2007-07-10 14:03:45 -0500 (Tue, 10 Jul 2007) | 4 lines

Fix an issue with wrapuptime not working when using AgentLogin.

Issue 10169, patch by makoto, with a minor mod by me to not re-break issue 9618

........

................

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

15 years agoMerged revisions 74374 via svnmerge from
Jason Parker [Tue, 10 Jul 2007 18:41:03 +0000 (18:41 +0000)]
Merged revisions 74374 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10133)
................
r74374 | qwell | 2007-07-10 13:39:30 -0500 (Tue, 10 Jul 2007) | 13 lines

Merged revisions 74373 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74373 | qwell | 2007-07-10 13:37:23 -0500 (Tue, 10 Jul 2007) | 5 lines

Use res_ndestroy on systems that have it.  Otherwise, use res_nclose.
This prevents a memleak on NetBSD - and possibly others.

Issue 10133, patch by me, reported and tested by scw

........

................

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

15 years agoMerged revisions 74323 via svnmerge from
Russell Bryant [Tue, 10 Jul 2007 16:01:27 +0000 (16:01 +0000)]
Merged revisions 74323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74323 | russell | 2007-07-10 11:00:11 -0500 (Tue, 10 Jul 2007) | 1 line

fix an uninitialized variable
........

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

15 years agosvn revert != svn resolved
Jason Parker [Tue, 10 Jul 2007 15:41:26 +0000 (15:41 +0000)]
svn revert != svn resolved

Fix merged property...

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

15 years agoMerged revisions 74317 via svnmerge from
Jason Parker [Tue, 10 Jul 2007 15:39:39 +0000 (15:39 +0000)]
Merged revisions 74317 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #10170)
................
r74317 | qwell | 2007-07-10 10:38:32 -0500 (Tue, 10 Jul 2007) | 12 lines

Merged revisions 74316 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74316 | qwell | 2007-07-10 10:37:54 -0500 (Tue, 10 Jul 2007) | 4 lines

Fix a small typo in description in of Voicemail() application.

Issue 10170, patch by casper.

........

................

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

15 years agoMerged revisions 74314 via svnmerge from
Russell Bryant [Tue, 10 Jul 2007 15:32:21 +0000 (15:32 +0000)]
Merged revisions 74314 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74314 | russell | 2007-07-10 10:31:41 -0500 (Tue, 10 Jul 2007) | 11 lines

Merged revisions 74313 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74313 | russell | 2007-07-10 10:30:20 -0500 (Tue, 10 Jul 2007) | 3 lines

Only use ESCAPE when LIKE is used.
(issue #10075, this part reported by jmls on IRC, patch by me)

........

................

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

15 years agoFix building that was broken by recent monitor.h changes. Thanks Russell for pointin...
Jason Parker [Tue, 10 Jul 2007 15:07:25 +0000 (15:07 +0000)]
Fix building that was broken by recent monitor.h changes.  Thanks Russell for pointing this out (and pointing out what I probably did to prevent gcc from fixing it - don't ctrl-C builds)

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

15 years agoMerged revisions 74265 via svnmerge from
Joshua Colp [Tue, 10 Jul 2007 14:51:09 +0000 (14:51 +0000)]
Merged revisions 74265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74265 | file | 2007-07-10 11:50:00 -0300 (Tue, 10 Jul 2007) | 10 lines

Merged revisions 74264 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74264 | file | 2007-07-10 11:48:00 -0300 (Tue, 10 Jul 2007) | 2 lines

Ensure the group information category exists before trying to do a string comparison with it. (issue #10171 reported by mlegas)

........

................

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

15 years agoBlocked revisions 74262 via svnmerge
Joshua Colp [Tue, 10 Jul 2007 14:09:01 +0000 (14:09 +0000)]
Blocked revisions 74262 via svnmerge

........
r74262 | file | 2007-07-10 11:07:13 -0300 (Tue, 10 Jul 2007) | 2 lines

Only spit out an inringing warning message when it is applicable. Since call limits are already toast in realtime let's not scare the user if they are using it. (issue #10166 reported by bcnit)

........

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

15 years agoMerged revisions 74211 via svnmerge from
Russell Bryant [Mon, 9 Jul 2007 21:32:53 +0000 (21:32 +0000)]
Merged revisions 74211 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74211 | russell | 2007-07-09 16:31:30 -0500 (Mon, 09 Jul 2007) | 5 lines

Update the configure script to check for a required function that is not present
in the 1.2 version of libpri.  This will prevent the configure script from thinking
that it has compatible libpri support for Asterisk 1.4, when it actually does not
because the installed version is from 1.2.

........

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

15 years ago(closes issue #7596)
Jason Parker [Mon, 9 Jul 2007 20:58:22 +0000 (20:58 +0000)]
(closes issue #7596)
Reported by: julien23
Patches submitted by: julien23

Add the ability to disable recording the input or output streams in res_monitor.

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

15 years agoMerged revisions 74162 via svnmerge from
Russell Bryant [Mon, 9 Jul 2007 20:54:34 +0000 (20:54 +0000)]
Merged revisions 74162 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74162 | russell | 2007-07-09 15:53:46 -0500 (Mon, 09 Jul 2007) | 9 lines

(closes issue #10123)
Reported by: blitzrage
Patches submitted by: juggie, qwell, me
Tested by: blitzrage

When trying to find a music on hold class to use, try all of the options,
instead of only the first one that is set.  Also, change the MusicOnHold
applications to not hang up on the channel when a class can not be found.

........

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

15 years agoMerged revisions 74159 via svnmerge from
Jason Parker [Mon, 9 Jul 2007 20:21:13 +0000 (20:21 +0000)]
Merged revisions 74159 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

Closes issue #9186
................
r74159 | qwell | 2007-07-09 15:19:28 -0500 (Mon, 09 Jul 2007) | 16 lines

Merged revisions 74158 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74158 | qwell | 2007-07-09 15:18:15 -0500 (Mon, 09 Jul 2007) | 8 lines

Several chan_zap options were not working on reload because they were arbitrarily
 disallowed when reloading some/most PRI options (such as signalling) was disallowed.

Options such as polarityonanswerdelay and answeronpolarityswitch can safely be changed on a reload.
This corrects that behavior.

Issue 9186, patch by tzafrir.

........

................

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

15 years agoremove an unused variable
Russell Bryant [Mon, 9 Jul 2007 18:58:09 +0000 (18:58 +0000)]
remove an unused variable

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

15 years agoMerged revisions 74122 via svnmerge from
Mark Michelson [Mon, 9 Jul 2007 18:43:05 +0000 (18:43 +0000)]
Merged revisions 74122 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74122 | mmichelson | 2007-07-09 13:38:28 -0500 (Mon, 09 Jul 2007) | 3 lines

Forgot to get rid of an extraneous debug message.

........

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

15 years agoMerged revisions 74120 via svnmerge from
Mark Michelson [Mon, 9 Jul 2007 18:37:09 +0000 (18:37 +0000)]
Merged revisions 74120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74120 | mmichelson | 2007-07-09 13:32:50 -0500 (Mon, 09 Jul 2007) | 6 lines

The n option for Queue should make the queue exit immediately after failure to reach any members and should not
be dependent on the timeout value passed to Queue

(closes issue #10127, reported by bcnit, repaired by me)

........

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

15 years agoAdd Queue and DestinationChannel headers to the AgentCalled manager event
Russell Bryant [Mon, 9 Jul 2007 16:35:43 +0000 (16:35 +0000)]
Add Queue and DestinationChannel headers to the AgentCalled manager event
to be more like the rest of the events in this module.
(closes issue #10114, patch by kwakwaversal)

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

15 years agoMerged revisions 74082 via svnmerge from
Joshua Colp [Mon, 9 Jul 2007 15:34:54 +0000 (15:34 +0000)]
Merged revisions 74082 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74082 | file | 2007-07-09 12:32:43 -0300 (Mon, 09 Jul 2007) | 2 lines

Only destroy the scheduler context if it was allocated. (issue #10124 reported by gzero)

........

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

15 years agoMerged revisions 74047 via svnmerge from
Mark Michelson [Mon, 9 Jul 2007 14:58:42 +0000 (14:58 +0000)]
Merged revisions 74047 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74047 | mmichelson | 2007-07-09 09:57:41 -0500 (Mon, 09 Jul 2007) | 4 lines

Fixed a logic error in leave_voicemail. Pass the mailbox instead of the context to inbox_count when the context is "default."
(closes issue #10135, reported by yannj, repaired by me)

........

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

15 years agoMerged revisions 74045 via svnmerge from
Joshua Colp [Mon, 9 Jul 2007 14:50:04 +0000 (14:50 +0000)]
Merged revisions 74045 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74045 | file | 2007-07-09 11:49:05 -0300 (Mon, 09 Jul 2007) | 2 lines

Few minor thread synchronization tweaks. (issue #10124 reported by gzero)

........

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

15 years agoMerged revisions 74043 via svnmerge from
Joshua Colp [Mon, 9 Jul 2007 14:38:19 +0000 (14:38 +0000)]
Merged revisions 74043 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74043 | file | 2007-07-09 11:34:33 -0300 (Mon, 09 Jul 2007) | 2 lines

Use AC_CHECK_HEADER to check for ptlib/openh323 to allow for cross compiling. (issue #9675 reported by zandbelt)

........

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

15 years agoUpdate with new features
Olle Johansson [Mon, 9 Jul 2007 08:30:04 +0000 (08:30 +0000)]
Update with new features

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

15 years agoImplementation of a feature that will disable "missed calls" counters on SIP phones.
Olle Johansson [Mon, 9 Jul 2007 08:27:37 +0000 (08:27 +0000)]
Implementation of a feature that will disable "missed calls" counters on SIP phones.
If the call is answered by another phone, other phones won't display the call as "missed".
You can also add an option to the dial command so that you can have a "followme"
scenario and not count the calls as "missed" when you cancel the call.

Thanks to Ramon and Frank for feedback on this feature.

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

15 years agoMerged revisions 73985 via svnmerge from
Tilghman Lesher [Mon, 9 Jul 2007 04:09:16 +0000 (04:09 +0000)]
Merged revisions 73985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73985 | tilghman | 2007-07-08 23:03:20 -0500 (Sun, 08 Jul 2007) | 2 lines

Doxygen formatting fixes; fixes errors while 'make progdocs'.  (Closes issue #10104)

........

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

15 years agoMerged revisions 73980 via svnmerge from
Joshua Colp [Mon, 9 Jul 2007 03:14:34 +0000 (03:14 +0000)]
Merged revisions 73980 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73980 | file | 2007-07-09 00:13:19 -0300 (Mon, 09 Jul 2007) | 2 lines

Give Agent channel names priority when doing CDR merging. (issue #10011 reported by krtorio)

........

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