asterisk/asterisk.git
13 years agofix example configuration for video support in chan_oss
Luigi Rizzo [Mon, 19 May 2008 14:54:34 +0000 (14:54 +0000)]
fix example configuration for video support in chan_oss

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

13 years agoSome fixes to the code to support running on an externally
Luigi Rizzo [Mon, 19 May 2008 14:22:04 +0000 (14:22 +0000)]
Some fixes to the code to support running on an externally
supplied window.

SDL (at least recent 1.2.x versions) has the ability to run the
graphic output into an externally supplied window, whose ID in the
environment variable SDL_WINDOWID. Ideally, applications should
run unchanged irrespective of who creates the window. Unfortunately,
SDL does not subscribe to mouse, key and resize events on externally
supplied windows, so we need to do ask for these events explicitly.

On passing, also add some code to handle SDL_ACTIVEEVENT so if
the X11 window is killed while we are active, we call
"stop now" to terminate the asterisk instance.

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

13 years agoAllow users to specify 'startgui=1' in oss.conf so that the
Luigi Rizzo [Mon, 19 May 2008 13:33:08 +0000 (13:33 +0000)]
Allow users to specify 'startgui=1' in oss.conf so that the
graphic screen for the video console is activated at startup.

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

13 years agoMerged revisions 116978 via svnmerge from
Russell Bryant [Mon, 19 May 2008 03:44:28 +0000 (03:44 +0000)]
Merged revisions 116978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116978 | russell | 2008-05-18 22:44:04 -0500 (Sun, 18 May 2008) | 4 lines

Avoid access of uninitialized memory.  This caused a bunch of crashes for me
while doing load testing of development branch where I'm working on some
performance improvements.

........

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

13 years agoAdd a set of text to the file astcanary uses to communicate back the main
Tilghman Lesher [Sun, 18 May 2008 21:15:58 +0000 (21:15 +0000)]
Add a set of text to the file astcanary uses to communicate back the main
Asterisk process, which explains the purpose for the file being there.  This
should assist people who find the file and wonder why it exists.

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

13 years agoRemove duplicate colon on Reason header
Russell Bryant [Sun, 18 May 2008 19:58:10 +0000 (19:58 +0000)]
Remove duplicate colon on Reason header
(closes issue #12678)

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

13 years agoImprove native transfers when a chain of IAX2 connections are in use.
Joshua Colp [Sat, 17 May 2008 19:39:35 +0000 (19:39 +0000)]
Improve native transfers when a chain of IAX2 connections are in use.
(closes issue #7567)
Reported by: tjd
Patches:
      bug_7567_update_v2.diff uploaded by snuffy (license 35)

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

13 years agoTry to fix attended transfers.
Joshua Colp [Fri, 16 May 2008 21:34:45 +0000 (21:34 +0000)]
Try to fix attended transfers.

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

13 years agoMerged revisions 116799 via svnmerge from
Joshua Colp [Fri, 16 May 2008 20:30:24 +0000 (20:30 +0000)]
Merged revisions 116799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116799 | file | 2008-05-16 17:28:11 -0300 (Fri, 16 May 2008) | 4 lines

Check to make sure an RTP structure exists before calling ast_rtp_new_source on it.
(closes issue #12669)
Reported by: sbisker

........

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

13 years agoTry to see if we can make our ringback situation a little better
Matthew Fredrickson [Fri, 16 May 2008 20:00:04 +0000 (20:00 +0000)]
Try to see if we can make our ringback situation a little better

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

13 years agoCompile under dev-mode, please.
Sean Bright [Fri, 16 May 2008 17:08:59 +0000 (17:08 +0000)]
Compile under dev-mode, please.

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

13 years agoBring all app_rpt and chan_usbradio stuff up to date
Jim Dixon [Fri, 16 May 2008 00:51:14 +0000 (00:51 +0000)]
Bring all app_rpt and chan_usbradio stuff up to date

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

13 years agoAdd an extra check in ast_strlen_zero, and make ast_assert() not print the
Tilghman Lesher [Thu, 15 May 2008 22:05:47 +0000 (22:05 +0000)]
Add an extra check in ast_strlen_zero, and make ast_assert() not print the
file, line, and function name twice.
(Closes issue #12650)

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

13 years agoFixes a problem I was having with two SIP phones using Packet2Packet bridging droppin...
Jeff Peeler [Thu, 15 May 2008 21:54:18 +0000 (21:54 +0000)]
Fixes a problem I was having with two SIP phones using Packet2Packet bridging dropping audio nearly immediately. The problem was that the lock on the SIP dialog was not being unlocked while the bridge was still active. (Related to issue #12566)

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

13 years agoDon't unload config on reload, when config has not changed.
Tilghman Lesher [Thu, 15 May 2008 17:58:22 +0000 (17:58 +0000)]
Don't unload config on reload, when config has not changed.
(Closes issue #12652)

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

13 years agoWhen counting urgent messages when using IMAP storage, take into account that
Mark Michelson [Thu, 15 May 2008 15:40:29 +0000 (15:40 +0000)]
When counting urgent messages when using IMAP storage, take into account that
the urgent messages are not in their own folder but are actually "flagged" messages
in the INBOX.

(closes issue #12659)
Reported by: jaroth
Patches:
      urgentfolder_v2.patch uploaded by jaroth (license 50)
Tested by: jaroth

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

13 years agoModify externnotify to take the number of urgent voicemails as a final argument instead
Mark Michelson [Thu, 15 May 2008 15:24:29 +0000 (15:24 +0000)]
Modify externnotify to take the number of urgent voicemails as a final argument instead
of the string "Urgent"

(closes issue #12660)
Reported by: jaroth
Patches:
      externnotify.patch uploaded by jaroth (license 50)

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

13 years agoPrevent crashes from occurring due to a strcmp of a NULL pointer.
Mark Michelson [Thu, 15 May 2008 15:13:11 +0000 (15:13 +0000)]
Prevent crashes from occurring due to a strcmp of a NULL pointer.

(closes issue #12661)
Reported by: jaroth
Patches:
      urgentcompare.patch uploaded by jaroth (license 50)

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

13 years agoUse casts or intermediate variables to remove a number
Luigi Rizzo [Thu, 15 May 2008 10:56:29 +0000 (10:56 +0000)]
Use casts or intermediate variables to remove a number
of platform/compiler-dependent warnings when handing
struct timeval fields, both reading and printing them.

It is a lost battle to handle the different ways struct timeval
is handled on the various platforms and compilers, so try
to be pragmatic and go through int/long which are universally
supported.

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

13 years agoAdding a new option to Chanspy(). The 'd' option allows for the spy to
Mark Michelson [Wed, 14 May 2008 22:15:12 +0000 (22:15 +0000)]
Adding a new option to Chanspy(). The 'd' option allows for the spy to
press DTMF digits to switch between spying modes. Pressing 4 activates spy mode,
pressing 5 activates whisper mode, and pressing 6 activates barge mode. Use of
this feature overrides the normal operation of DTMF numbers.

This feature is courtesy of Switchvox.

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

13 years agoFix pedanticness.
Joshua Colp [Wed, 14 May 2008 21:54:03 +0000 (21:54 +0000)]
Fix pedanticness.

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

13 years agoMerged revisions 116463 via svnmerge from
Russell Bryant [Wed, 14 May 2008 21:40:43 +0000 (21:40 +0000)]
Merged revisions 116463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116463 | russell | 2008-05-14 16:32:00 -0500 (Wed, 14 May 2008) | 4 lines

Add ast_assert(), which can be used to handle fatal errors.  It is only compiled
in if dev-mode is enabled, and only aborts if DO_CRASH is defined.
(inspired by issue #12650)

........

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

13 years agoMerged revisions 116466 via svnmerge from
Tilghman Lesher [Wed, 14 May 2008 21:39:06 +0000 (21:39 +0000)]
Merged revisions 116466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116466 | tilghman | 2008-05-14 16:38:09 -0500 (Wed, 14 May 2008) | 7 lines

Avoid zombies when the channel exits before the AGI.
(closes issue #12648)
 Reported by: gkloepfer
 Patches:
       20080514__bug12648.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gkloepfer

........

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

13 years agoAdd a missing context unlock.
Joshua Colp [Wed, 14 May 2008 21:11:49 +0000 (21:11 +0000)]
Add a missing context unlock.
(closes issue #12649)
Reported by: ys
Patches:
      pbx.c.diff uploaded by ys (license 281)

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

13 years agoMerged revisions 116409 via svnmerge from
Jason Parker [Wed, 14 May 2008 20:43:26 +0000 (20:43 +0000)]
Merged revisions 116409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116409 | qwell | 2008-05-14 15:43:08 -0500 (Wed, 14 May 2008) | 1 line

Document exitcontext in app_voicemail sample config
........

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

13 years agoVoicemail "* exit" should not require an exitcontext to be specified.
Jason Parker [Wed, 14 May 2008 20:36:55 +0000 (20:36 +0000)]
Voicemail "* exit" should not require an exitcontext to be specified.
The behavior in 1.4 was that it would use the current context if an exitcontext existed.

(closes issue #12605)
Reported by: kenjreno
Patches:
      12605-starexit.diff uploaded by qwell (license 4)
Tested by: file

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

13 years agoMerged revisions 116352 via svnmerge from
Joshua Colp [Wed, 14 May 2008 18:54:16 +0000 (18:54 +0000)]
Merged revisions 116352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116352 | file | 2008-05-14 15:53:39 -0300 (Wed, 14 May 2008) | 4 lines

Add linux-gnueabi in.
(closes issue #12529)
Reported by: tzafrir

........

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

13 years agoMake the ldap version setting work without having both version and protocol set.
Joshua Colp [Wed, 14 May 2008 18:25:54 +0000 (18:25 +0000)]
Make the ldap version setting work without having both version and protocol set.
(closes issue #12613)
Reported by: suretec

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

13 years agoMerged revisions 116296 via svnmerge from
Tilghman Lesher [Wed, 14 May 2008 16:53:23 +0000 (16:53 +0000)]
Merged revisions 116296 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116296 | tilghman | 2008-05-14 11:46:48 -0500 (Wed, 14 May 2008) | 2 lines

Detect another way for a connection to have gone away.
(closes issue #12618)
 Reported by: ctooley
 Patches:
       1.4-externalivr-test_fd.diff uploaded by ctooley (license 136)
       trunk-externalivr-test_fd.diff uploaded by ctooley (license 136)

........

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

13 years agoFixed a few problems with multiparking: call not being parked in the correct parking...
Jeff Peeler [Wed, 14 May 2008 16:52:30 +0000 (16:52 +0000)]
Fixed a few problems with multiparking: call not being parked in the correct parking spot, caller not being notified of parking spot position, and improperly hanging up the call during a transfer due to timing out (not providing the extension in which to transfer).

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

13 years agoDon't add linefeed on received MESSAGE
Olle Johansson [Wed, 14 May 2008 14:16:51 +0000 (14:16 +0000)]
Don't add linefeed on received MESSAGE

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

13 years agoProperly declare charset for text messages.
Olle Johansson [Wed, 14 May 2008 14:03:42 +0000 (14:03 +0000)]
Properly declare charset for text messages.

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

13 years agoAdding spport for T.140 RED - Simple RTP redundancy to prevent packet loss in text...
Olle Johansson [Wed, 14 May 2008 13:37:07 +0000 (13:37 +0000)]
Adding spport for T.140 RED - Simple RTP redundancy to prevent packet loss in text stream

Work sponsored by Omnitor AB, Stockholm, Sweden (http://www.omnitor.se)

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

13 years agoMerged revisions 116230 via svnmerge from
Olle Johansson [Wed, 14 May 2008 13:05:15 +0000 (13:05 +0000)]
Merged revisions 116230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116230 | oej | 2008-05-14 14:51:06 +0200 (Ons, 14 Maj 2008) | 3 lines

Accept text messages even with
Content-Type: text/plain;charset=Södermanländska

........

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

13 years agoAdd support for codec settings in originate via call file and manager.
Olle Johansson [Wed, 14 May 2008 12:32:57 +0000 (12:32 +0000)]
Add support for codec settings in originate via call file and manager.

This is to enable video and text in originated calls. Development sponsored
by Omnitor AB, Sweden. (http://www.omnitor.se)

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

13 years agoFormatting changes (coding guidelines) while thinking about something else...
Olle Johansson [Wed, 14 May 2008 11:51:09 +0000 (11:51 +0000)]
Formatting changes (coding guidelines) while thinking about something else...

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

13 years agoReformatting
Olle Johansson [Wed, 14 May 2008 11:37:21 +0000 (11:37 +0000)]
Reformatting

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

13 years agoAdding comments
Olle Johansson [Wed, 14 May 2008 11:32:05 +0000 (11:32 +0000)]
Adding comments

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

13 years agoDoxygen formatting change only
Olle Johansson [Wed, 14 May 2008 08:16:25 +0000 (08:16 +0000)]
Doxygen formatting change only

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

13 years agoUndo inadvertent changes to chan_skinny caused by the merging of urgent messaging
Mark Michelson [Wed, 14 May 2008 00:20:05 +0000 (00:20 +0000)]
Undo inadvertent changes to chan_skinny caused by the merging of urgent messaging
support.

Thanks to Damien Wedhorn for pointing out the problem.

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

13 years agoMerged revisions 116088 via svnmerge from
Mark Michelson [Tue, 13 May 2008 23:54:01 +0000 (23:54 +0000)]
Merged revisions 116088 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116088 | mmichelson | 2008-05-13 18:47:49 -0500 (Tue, 13 May 2008) | 12 lines

A change to the way channel locks are handled when DEBUG_CHANNEL_LOCKS is defined.

After debugging a deadlock, it was noticed that when DEBUG_CHANNEL_LOCKS
is enabled in menuselect, the actual origin of channel locks is obscured
by the fact that all channel locks appear to happen in the function
ast_channel_lock(). This code change redefines ast_channel_lock to be a
macro which maps to __ast_channel_lock(), which then relays the proper
file name, line number, and function name information to the core lock
functions so that this information will be displayed in the case that
there is some sort of locking error or core show locks is issued.

........

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

13 years agoMerged revisions 116038 via svnmerge from
Russell Bryant [Tue, 13 May 2008 21:18:55 +0000 (21:18 +0000)]
Merged revisions 116038 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116038 | russell | 2008-05-13 16:17:23 -0500 (Tue, 13 May 2008) | 24 lines

Fix a deadlock involving channel autoservice and chan_local that was debugged
and fixed by mmichelson and me.

We observed a system that had a bunch of threads stuck in ast_autoservice_stop().
The reason these threads were waiting around is because this function waits to
ensure that the channel list in the autoservice thread gets rebuilt before the
stop() function returns.  However, the autoservice thread was also locked, so
the autoservice channel list was never getting rebuilt.

The autoservice thread was stuck waiting for the channel lock on a local channel.
However, the local channel was locked by a thread that was stuck in the autoservice
stop function.

It turned out that the issue came down to the local_queue_frame() function in
chan_local.  This function assumed that one of the channels passed in as an
argument was locked when called.  However, that was not always the case.  There
were multiple cases in which this channel was not locked when the function was
called.  We fixed up chan_local to indicate to this function whether this channel
was locked or not.  The previous assumption had caused local_queue_frame() to
improperly return with the channel locked, where it would then never get unlocked.

(closes issue #12584)
(related to issue #12603)

........

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

13 years agoMerged revisions 115990 via svnmerge from
Russell Bryant [Tue, 13 May 2008 21:07:59 +0000 (21:07 +0000)]
Merged revisions 115990 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115990 | russell | 2008-05-13 16:05:57 -0500 (Tue, 13 May 2008) | 5 lines

Fix an issue that I noticed in autoservice while mmichelson and I were debugging
a different problem.  I noticed that it was theoretically possible for two threads
to attempt to start the autoservice thread at the same time.  This change makes the
process of starting the autoservice thread, thread-safe.

........

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

13 years agoMerged revisions 115944 via svnmerge from
Joshua Colp [Tue, 13 May 2008 20:29:27 +0000 (20:29 +0000)]
Merged revisions 115944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115944 | file | 2008-05-13 17:28:23 -0300 (Tue, 13 May 2008) | 4 lines

Use the right flag to open the audio in non-blocking.
(closes issue #12616)
Reported by: nicklewisdigiumuser

........

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

13 years agoNeed to clear calling_party_cat variable after we retrieve it
Matthew Fredrickson [Tue, 13 May 2008 20:18:04 +0000 (20:18 +0000)]
Need to clear calling_party_cat variable after we retrieve it

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

13 years agoAdd support for receiving calling party category
Matthew Fredrickson [Tue, 13 May 2008 20:11:20 +0000 (20:11 +0000)]
Add support for receiving calling party category

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

13 years agoMerged revisions 115884 via svnmerge from
Tilghman Lesher [Tue, 13 May 2008 18:38:11 +0000 (18:38 +0000)]
Merged revisions 115884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115884 | tilghman | 2008-05-13 13:36:13 -0500 (Tue, 13 May 2008) | 3 lines

If the socket dies (read returns 0=EOF), return immediately.
(Closes issue #12637)

........

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

13 years agoRe-introduce proper error handling that was removed in recent commits.
Russell Bryant [Tue, 13 May 2008 17:42:17 +0000 (17:42 +0000)]
Re-introduce proper error handling that was removed in recent commits.

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

13 years agoInitialize the start time in smdi_msg_wait. Somehow this code got lost in trunk.
Russell Bryant [Tue, 13 May 2008 17:14:22 +0000 (17:14 +0000)]
Initialize the start time in smdi_msg_wait.  Somehow this code got lost in trunk.

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

13 years agoAdd a script which installs every package needed for a Debian install of
Tilghman Lesher [Mon, 12 May 2008 20:34:38 +0000 (20:34 +0000)]
Add a script which installs every package needed for a Debian install of
Asterisk, and includes possible support (to be contributed) for various other
distributions.
(closes issue #10523)
 Reported by: tzafrir
 Patches:
       install_prereq_2 uploaded by tzafrir (license 46)

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

13 years agoAdd support for playing an audio file for caller and callee at start and stop of...
Olle Johansson [Mon, 12 May 2008 18:39:09 +0000 (18:39 +0000)]
Add support for playing an audio file for caller and callee at start and stop of monitoring (one-touch monitor).
Keep messages short, since the other party is waiting while one party hear the message...

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

13 years agoMerged revisions 115735 via svnmerge from
Mark Michelson [Mon, 12 May 2008 17:55:08 +0000 (17:55 +0000)]
Merged revisions 115735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115735 | mmichelson | 2008-05-12 12:51:14 -0500 (Mon, 12 May 2008) | 7 lines

If a thread holds no locks, do not print any information on the thread when issuing
a core show locks command. This will help to de-clutter output somewhat.

Russell said it would be fine to place this improvement in the 1.4 branch, so that's
why it's going here too.

........

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

13 years agoCorrectly document state interface for AddQueueMember. Discovered while looking...
Jason Parker [Mon, 12 May 2008 16:35:50 +0000 (16:35 +0000)]
Correctly document state interface for AddQueueMember.  Discovered while looking at issue #12626.

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

13 years agoA small change to fix iax2 native bridging.
Brett Bryant [Mon, 12 May 2008 15:17:32 +0000 (15:17 +0000)]
A small change to fix iax2 native bridging.

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

13 years agoAdd Zap MTP2 support to chan_zap
Matthew Fredrickson [Sun, 11 May 2008 03:23:05 +0000 (03:23 +0000)]
Add Zap MTP2 support to chan_zap

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

13 years agoOpen up audio channel when we get ACM on SS7 event
Matthew Fredrickson [Sun, 11 May 2008 02:19:21 +0000 (02:19 +0000)]
Open up audio channel when we get ACM on SS7 event

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

13 years agoEnsure that "calldate" is acceptable for a column name.
Tilghman Lesher [Sat, 10 May 2008 14:19:41 +0000 (14:19 +0000)]
Ensure that "calldate" is acceptable for a column name.

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

13 years agofix a sample since we now required , and not | for the arguments separator
Claude Patry [Sat, 10 May 2008 03:30:59 +0000 (03:30 +0000)]
fix a sample since we now required , and not | for the arguments separator

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

13 years agoameliorate load and unload to dont use DECLINED or FAILED, when theres no .conf involved.
Claude Patry [Sat, 10 May 2008 03:28:50 +0000 (03:28 +0000)]
ameliorate load and unload to dont use DECLINED or FAILED, when theres no .conf involved.

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

13 years agosince we unregister, that has not been properly registered, i standardized this.
Claude Patry [Sat, 10 May 2008 03:04:25 +0000 (03:04 +0000)]
since we unregister, that has not been properly registered, i standardized this.

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

13 years agoRemove a debug line
Mark Michelson [Fri, 9 May 2008 22:36:50 +0000 (22:36 +0000)]
Remove a debug line

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

13 years agoAdding support for "urgent" voicemail messages. Messages which are
Mark Michelson [Fri, 9 May 2008 21:22:42 +0000 (21:22 +0000)]
Adding support for "urgent" voicemail messages. Messages which are
marked "urgent" are considered to be higher priority than other messages
and so they will be played before any other messages in a user's mailbox.

There are two ways to leave an urgent message.
1. send the 'U' option to VoiceMail().
2. Set review=yes in voicemail.conf. This will give instructions for
   a caller to mark a message as urgent after the message has been recorded.

I have tested that this works correctly with file and ODBC storage, and James
Rothenberger (who wrote initial support for this feature) has tested its use
with IMAP storage.

(closes issue #11817)
Reported by: jaroth
Based on branch http://svn.digium.com/svn/asterisk/team/jrothenberger/asterisk-urgent
Tested by: putnopvut, jaroth

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

13 years agoUpdate CHANGES file for previous commit of ENUM and TXCIDNAME changes.
Brett Bryant [Fri, 9 May 2008 20:05:50 +0000 (20:05 +0000)]
Update CHANGES file for previous commit of ENUM and TXCIDNAME changes.

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

13 years agoThe following patch adds new options and alters the default behavior of the ENUM...
Brett Bryant [Fri, 9 May 2008 19:54:45 +0000 (19:54 +0000)]
The following patch adds new options and alters the default behavior of the ENUM* functions. The TXCIDNAME lookup function has also gotten a
new paramater. The new options for ENUM* functions include 'u', 's', 'i', and 'd' which return the full uri, trigger isn specific rewriting, look
for branches into an infrastructure enum tree, or do a direct dns lookup of a number respectively. The new paramater for TXCIDNAME adds a
zone-suffix argument for looking up caller id's in DNS that aren't e164.arpa.

This patch is based on the original code from otmar, modified by snuffy, and tested by jtodd, me, and others.

(closes issue #8089)
Reported by: otmar
Patches:
      20080508_bug8089-1.diff
- original code by otmar (license 480),
- revised by snuffy (license 35)
Tested by: oej, otmar, jtodd, Corydon76, snuffy, alexnikolov, bbryant

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

13 years agoAllow a password change to be validated by an external script.
Tilghman Lesher [Fri, 9 May 2008 17:28:06 +0000 (17:28 +0000)]
Allow a password change to be validated by an external script.
(closes issue #12090)
 Reported by: jaroth
 Patches:
       vm-check-newpassword.diff.txt uploaded by mvanbaak (license 7)
       20080509__bug12090.diff.txt uploaded by Corydon76 (license 14)

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

13 years agoMerged revisions 115579 via svnmerge from
Joshua Colp [Fri, 9 May 2008 16:36:58 +0000 (16:36 +0000)]
Merged revisions 115579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115579 | file | 2008-05-09 13:34:08 -0300 (Fri, 09 May 2008) | 2 lines

Improve res_ninit and res_ndestroy autoconf logic on the Darwin platform.

........

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

13 years agoMerged revisions 115568 via svnmerge from
Russell Bryant [Thu, 8 May 2008 19:20:35 +0000 (19:20 +0000)]
Merged revisions 115568 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115568 | russell | 2008-05-08 14:19:50 -0500 (Thu, 08 May 2008) | 2 lines

Remove debug output.

........

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

13 years agoMerged revisions 115565 via svnmerge from
Russell Bryant [Thu, 8 May 2008 19:17:04 +0000 (19:17 +0000)]
Merged revisions 115565 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r115565 | russell | 2008-05-08 14:15:25 -0500 (Thu, 08 May 2008) | 33 lines

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

........
r115564 | russell | 2008-05-08 14:14:04 -0500 (Thu, 08 May 2008) | 25 lines

Fix a race condition that bbryant just found while doing some IAX2 testing.
He was running Asterisk trunk running IAX2 calls through a few Asterisk boxes,
however, the audio was extremely choppy.  We looked at a packet trace and saw
a storm of INVAL and VNAK frames being sent from one box to another.

It turned out that what had happened was that one box tried to send a CONTROL
frame before the 3 way handshake had completed.  So, that frame did not include
the destination call number, because it didn't have it yet.  Part of our recent
work for security issues included an additional check to ensure that frames that
are supposed to include the destination call number have the correct one.  This
caused the frame to be rejected with an INVAL.  The frame would get retransmitted
for forever, rejected every time ...

This race condition exists in all versions that got the security changes,
in theory.  However, it is really only likely that this would cause a problem in
Asterisk trunk.  There was a control frame being sent (SRCUPDATE) at the _very_
beginning of the call, which does not exist in 1.2 or 1.4.  However, I am fixing
all versions that could potentially be affected by the introduced race condition.

These changes are what bbryant and I came up with to fix the issue.  Instead of
simply dropping control frames that get sent before the handshake is complete,
the code attempts to wait a little while, since in most cases, the handshake
will complete very quickly.  If it doesn't complete after yielding for a little
while, then the frame gets dropped.

........

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

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

13 years agoMerged revisions 115561 via svnmerge from
Russell Bryant [Thu, 8 May 2008 16:14:08 +0000 (16:14 +0000)]
Merged revisions 115561 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115561 | russell | 2008-05-08 11:11:33 -0500 (Thu, 08 May 2008) | 3 lines

Don't give up on attempting an outbound registration if we receive a 408 Timeout.
(closes issue #12323)

........

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

13 years agoMerged revisions 115557 via svnmerge from
Russell Bryant [Thu, 8 May 2008 15:38:27 +0000 (15:38 +0000)]
Merged revisions 115557 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115557 | russell | 2008-05-08 10:37:49 -0500 (Thu, 08 May 2008) | 3 lines

remove postgres_cdr.sql, as the CDR schema is in realtime_pgsql.sql, as well
(closes issue #9676)

........

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

13 years agoMerged revisions 115554 via svnmerge from
Russell Bryant [Thu, 8 May 2008 15:32:48 +0000 (15:32 +0000)]
Merged revisions 115554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115554 | russell | 2008-05-08 10:32:08 -0500 (Thu, 08 May 2008) | 3 lines

Don't exit the script if Asterisk is not running.
(closes issue #12611)

........

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

13 years agoMerged revisions 115551 via svnmerge from
Russell Bryant [Thu, 8 May 2008 15:26:49 +0000 (15:26 +0000)]
Merged revisions 115551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115551 | russell | 2008-05-08 10:24:54 -0500 (Thu, 08 May 2008) | 4 lines

Don't use a channel before checking for channel allocation failure.
(closes issue #12609)
Reported by: edantie

........

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

13 years agoRemove unused code as well as demote an error message to a debug message
Matthew Fredrickson [Thu, 8 May 2008 15:04:45 +0000 (15:04 +0000)]
Remove unused code as well as demote an error message to a debug message

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

13 years agoMerged revisions 115545 via svnmerge from
Russell Bryant [Thu, 8 May 2008 14:41:12 +0000 (14:41 +0000)]
Merged revisions 115545 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115545 | russell | 2008-05-08 09:40:53 -0500 (Thu, 08 May 2008) | 4 lines

Use the same method for executing Asterisk as the rest of the script.
(closes issue #12611)
Reported by: b_plessis

........

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

13 years agoFix up a problem that was introduced into the scheduler when it was converted
Russell Bryant [Wed, 7 May 2008 21:11:33 +0000 (21:11 +0000)]
Fix up a problem that was introduced into the scheduler when it was converted
to use doubly linked lists.  The schedule() function had an optimization that
had it try to guess which direction would be better for the traversal to insert
the task into the scheduler queue.  However, if the code chose the path where
it traversed the queue in reverse, and the result was that the task should be
at the head of the queue, then the code would actually put it at the tail,
instead.

(Problem found by bbryant, debugged and fixed by bbryant and me)

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

13 years agoAdvance to next sounds release
Tilghman Lesher [Wed, 7 May 2008 20:22:09 +0000 (20:22 +0000)]
Advance to next sounds release

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

13 years agoDon't free the object on destroy, as astobj2 takes care of that for you
Tilghman Lesher [Wed, 7 May 2008 18:40:21 +0000 (18:40 +0000)]
Don't free the object on destroy, as astobj2 takes care of that for you

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

13 years agoOnly save a password if a username exists.
Russell Bryant [Wed, 7 May 2008 18:33:50 +0000 (18:33 +0000)]
Only save a password if a username exists.

(closes issue #12600)
Reported By: suretec
Patch by me

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

13 years agoUse the default that the log output claims will be used for the basedn
Russell Bryant [Wed, 7 May 2008 18:30:12 +0000 (18:30 +0000)]
Use the default that the log output claims will be used for the basedn

(closes issue #12599)
Reported by: suretec
Patches:
      12599.patch uploaded by juggie (license 24)

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

13 years agoLet chan_h323 build in dev mode
Russell Bryant [Wed, 7 May 2008 18:24:51 +0000 (18:24 +0000)]
Let chan_h323 build in dev mode

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

13 years agoBlocked revisions 115517 via svnmerge
Russell Bryant [Wed, 7 May 2008 18:17:43 +0000 (18:17 +0000)]
Blocked revisions 115517 via svnmerge

........
r115517 | russell | 2008-05-07 13:17:19 -0500 (Wed, 07 May 2008) | 5 lines

Track peer references when stored in the sip_pvt struct as the peer related to
a qualify ping or a subscription.  This fixes some realtime related crashes.
(closes issue #12588)
(closes issue #12555)

........

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

13 years agore-add dlinkedlists.h to trunk, oops!
Russell Bryant [Wed, 7 May 2008 17:38:36 +0000 (17:38 +0000)]
re-add dlinkedlists.h to trunk, oops!

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

13 years agoMerged revisions 115512 via svnmerge from
Russell Bryant [Wed, 7 May 2008 17:28:19 +0000 (17:28 +0000)]
Merged revisions 115512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r115512 | russell | 2008-05-07 11:24:09 -0500 (Wed, 07 May 2008) | 11 lines

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

........
r115511 | russell | 2008-05-07 11:22:49 -0500 (Wed, 07 May 2008) | 3 lines

Remove remnants of dlinkedlists.  I didn't actually use them in the final version
of my IAX2 improvements.

........

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

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

13 years agoUpdate typos in description fields
Tilghman Lesher [Wed, 7 May 2008 13:49:15 +0000 (13:49 +0000)]
Update typos in description fields
(closes issue #12598)
 Reported by: suretec
 Patches:
       asterisk_schema_changes.patch uploaded by suretec (license 70)

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

13 years agoRemove redundant header getting.
Joshua Colp [Wed, 7 May 2008 13:41:25 +0000 (13:41 +0000)]
Remove redundant header getting.
(closes issue #12597)
Reported by: hooi

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

13 years agoGet refcounter to build with LOW_MEMORY defined
Mark Michelson [Tue, 6 May 2008 20:15:02 +0000 (20:15 +0000)]
Get refcounter to build with LOW_MEMORY defined

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

13 years agoMerged revisions 115422 via svnmerge from
Jason Parker [Tue, 6 May 2008 19:55:45 +0000 (19:55 +0000)]
Merged revisions 115422 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r115422 | qwell | 2008-05-06 14:55:29 -0500 (Tue, 06 May 2008) | 15 lines

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

........
r115421 | qwell | 2008-05-06 14:54:57 -0500 (Tue, 06 May 2008) | 7 lines

read requires an argument on some non-bash shells

(closes issue #12593)
Reported by: bkruse
Patches:
      getilbc.sh_12593_v1.diff uploaded by bkruse (license 132)

........

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

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

13 years agoMerged revisions 115418 via svnmerge from
Jason Parker [Tue, 6 May 2008 19:38:44 +0000 (19:38 +0000)]
Merged revisions 115418 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115418 | qwell | 2008-05-06 14:34:58 -0500 (Tue, 06 May 2008) | 7 lines

Switch to using ast_random() rather than just rand().
This does not fix the bug reported, but I believe it is correct.

(from issue #12446)
Patches:
      bug_12446.diff uploaded by snuffy (license 35)

........

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

13 years agoMerged revisions 115415 via svnmerge from
Tilghman Lesher [Tue, 6 May 2008 19:32:29 +0000 (19:32 +0000)]
Merged revisions 115415 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115415 | tilghman | 2008-05-06 14:31:39 -0500 (Tue, 06 May 2008) | 2 lines

Don't print the terminating NUL.  (Closes issue #12589)

........

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

13 years agoChange some NOTICE log messages to debug.
Russell Bryant [Tue, 6 May 2008 15:14:55 +0000 (15:14 +0000)]
Change some NOTICE log messages to debug.

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

13 years agoMerged revisions 115341 via svnmerge from
Joshua Colp [Tue, 6 May 2008 13:55:44 +0000 (13:55 +0000)]
Merged revisions 115341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115341 | file | 2008-05-06 10:54:15 -0300 (Tue, 06 May 2008) | 2 lines

Add in missing argument.

........

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

13 years agoMerge refcounting of res_odbc
Tilghman Lesher [Mon, 5 May 2008 23:38:15 +0000 (23:38 +0000)]
Merge refcounting of res_odbc

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

13 years agoMerged revisions 115333 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 23:00:31 +0000 (23:00 +0000)]
Merged revisions 115333 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115333 | tilghman | 2008-05-05 17:50:31 -0500 (Mon, 05 May 2008) | 7 lines

Separate verbose output from CLI output, by using a preamble.
(closes issue #12402)
 Reported by: Corydon76
 Patches:
       20080410__no_verbose_in_rx_output.diff.txt uploaded by Corydon76 (license 14)
       20080501__no_verbose_in_rx_output__1.4.diff.txt uploaded by Corydon76 (license 14)

........

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

13 years ago#execing the same file multiple times led to warning messages saying that the same...
Mark Michelson [Mon, 5 May 2008 22:14:06 +0000 (22:14 +0000)]
#execing the same file multiple times led to warning messages saying that the same file was
being #included twice. This was due to the fact that #exec created a temporary file which
was then #included. The name of the temporary file was the name of the #exec'd file, with
the Unix timestamp and thread ID concatenated. The issue was that if multiple #exec statements
of the same file were reached in the same second, then the result was that the temporary files
would have duplicate names. To resolve this, the temporary file now has microsecond resolution
for the timestamp portion.

(closes issue #12574)
Reported by: jmls
Patches:
      12574.patch uploaded by putnopvut (license 60)
Tested by: jmls, putnopvut

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

13 years agoMerged revisions 115327 via svnmerge from
Joshua Colp [Mon, 5 May 2008 22:13:57 +0000 (22:13 +0000)]
Merged revisions 115327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115327 | file | 2008-05-05 19:10:05 -0300 (Mon, 05 May 2008) | 2 lines

Make sure that either the main speex library contains preprocess functions or that speexdsp does. If both fail then speex stuff can not be built.

........

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

13 years agoSimplify code by using a taskprocessor for dispatching events in the Asterisk core.
Russell Bryant [Mon, 5 May 2008 22:01:56 +0000 (22:01 +0000)]
Simplify code by using a taskprocessor for dispatching events in the Asterisk core.

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

13 years agoMerged revisions 115320 via svnmerge from
Mark Michelson [Mon, 5 May 2008 21:43:21 +0000 (21:43 +0000)]
Merged revisions 115320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115320 | mmichelson | 2008-05-05 16:41:34 -0500 (Mon, 05 May 2008) | 13 lines

Don't consider a caller "handled" until the caller is bridged with
a queue member. There was too much of an opportunity for the member
to hang up (either during a delay, announcement, or overly long
agi) between the time that he answered the phone and the time when
he actually was bridged with the caller. The consequence of this
was that if the member hung up in that interval, then proper
abandonment details would not be noted in the queue log if the caller
were to hang up at any point after the member hangup.

(closes issue #12561)
Reported by: ablackthorn

........

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

13 years agoRemove my rant, since I have now replaced the rant with code.
Russell Bryant [Mon, 5 May 2008 20:28:17 +0000 (20:28 +0000)]
Remove my rant, since I have now replaced the rant with code.

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

13 years agoMerged revisions 115312 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 20:22:08 +0000 (20:22 +0000)]
Merged revisions 115312 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115312 | tilghman | 2008-05-05 15:17:55 -0500 (Mon, 05 May 2008) | 2 lines

Reverse order, such that user configs override default selections

........

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

13 years agoMerged revisions 115308 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 19:57:28 +0000 (19:57 +0000)]
Merged revisions 115308 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115308 | tilghman | 2008-05-05 14:55:55 -0500 (Mon, 05 May 2008) | 2 lines

Err, the documentation on the return value of ast_odbc_backslash_is_escape is exactly backwards.

........

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