]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoDo not use sizeof to calculate size of a heap allocated character array.
Jeff Peeler [Mon, 21 Jun 2010 20:37:47 +0000 (20:37 +0000)] 
Do not use sizeof to calculate size of a heap allocated character array.

Change left out from 271399.

(closes issue #16053)
Reported by: diLLec

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

15 years agoCheck for newly added memory allocation failures gracefully during AEL2 parsing.
Jeff Peeler [Fri, 18 Jun 2010 20:52:26 +0000 (20:52 +0000)] 
Check for newly added memory allocation failures gracefully during AEL2 parsing.

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

15 years agoFix crash when parsing some heavily nested statements in AEL on reload.
Jeff Peeler [Fri, 18 Jun 2010 19:28:24 +0000 (19:28 +0000)] 
Fix crash when parsing some heavily nested statements in AEL on reload.

Due to the recursion used when compiling AEL in gen_prios, all the stack space
was being consumed when parsing some AEL that contained nesting 13 levels deep.
Changing a few large buffers to be heap allocated fixed the crash, although I
did not test how many more levels can now be safely used.

(closes issue #16053)
Reported by: diLLec
Tested by: jpeeler

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

15 years agoRemove an unnecessary assignment that causes a DEBUG_THREADS build failure on mac...
Russell Bryant [Fri, 18 Jun 2010 18:54:09 +0000 (18:54 +0000)] 
Remove an unnecessary assignment that causes a DEBUG_THREADS build failure on mac os x.

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

15 years agoFix a build problem on Mac OS X with DEBUG_THREADS enabled.
Russell Bryant [Fri, 18 Jun 2010 18:44:38 +0000 (18:44 +0000)] 
Fix a build problem on Mac OS X with DEBUG_THREADS enabled.

This set of changes was already in trunk.

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

15 years agoEliminate deadlock potential in dahdi_fixup().
Jeff Peeler [Fri, 18 Jun 2010 18:33:17 +0000 (18:33 +0000)] 
Eliminate deadlock potential in dahdi_fixup().

(This is a backport of 269307, committed to trunk by rmudgett.)

Calling dahdi_indicate() when the channel private lock is already
held can cause a deadlock if the PRI lock is needed because
dahdi_indicate() will also get the channel private lock.  The pri_grab()
function assumes that the channel private lock is held once to avoid
deadlock.

(closes issue #17261)
Reported by: aragon

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

15 years agoSet sin_family in ast_get_ip_or_srv() and removed the 'last' member of the ast_dnsmgr...
Matthew Nicholson [Thu, 17 Jun 2010 15:11:27 +0000 (15:11 +0000)] 
Set sin_family in ast_get_ip_or_srv() and removed the 'last' member of the ast_dnsmgr_entry struct.

(closes issue #15827)
Reported by: DennisD
Patches:
      (modified) dnsmgr_15827.patch uploaded by chappell (license 8)

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

15 years agoNeed to lock the agent chan before access its internal bits.
Jason Parker [Wed, 16 Jun 2010 21:10:09 +0000 (21:10 +0000)] 
Need to lock the agent chan before access its internal bits.

Pointed out by russellb on asterisk-dev mailing list.

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

15 years agoFixed typo in macro-page
Paul Belanger [Wed, 16 Jun 2010 21:10:05 +0000 (21:10 +0000)] 
Fixed typo in macro-page

Reported to #asterisk-dev by a student of jsmith.

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

15 years agofixes chan_iax2 race condition
David Vossel [Wed, 16 Jun 2010 17:35:29 +0000 (17:35 +0000)] 
fixes chan_iax2 race condition

There is code in chan_iax2.c that attempts to guarantee that only a single
active thread will handle a call number at a time.  This code works once
the thread is added to an active_list of threads, but we are not currently
guaranteed that a newly activated thread will enter the active_list immediately
because it is left up to the thread to add itself after frames have been
queued to it.  This means that if two frames come in for the same call number
at the same time, it is possible for them to grab two separate threads because
the first thread did not add itself to the active_list fast enough.  This
causes some pretty complex problems.

This patch resolves this race condition by immediately adding an activated
thread to the active_list within the network thread and only depending on
the thread to remove itself once it is done processing the frames queued to
it.  By doing this we are guaranteed that if another frame for the same call
number comes in at the same time, that this thread will immediately be found
in the active_list of threads.

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

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

15 years agoMerged revisions 270658 via svnmerge from
Terry Wilson [Tue, 15 Jun 2010 22:34:30 +0000 (22:34 +0000)] 
Merged revisions 270658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r270658 | twilson | 2010-06-15 15:18:04 -0500 (Tue, 15 Jun 2010) | 20 lines

  Make contactdeny apply to src ip when nat=yes

  chan_sip's "contactdeny" feature screens the "to be registered contact".
  In case of nat=yes it should not use the address information from the
  Contact header (which is not used at all for routing), but the source
  IP address of the request.

  Thus, if nat=yes and a client sends a request from a denied IP address
  (e.g. by spoofing the src-IP address) it can bypass the screening.

  This commit makes contactdeny apply to the src ip when nat=yes instead.

  (closes issue #17276)
  Reported by: klaus3000
  Patches:
        patch-asterisk-trunk-contactdeny.txt uploaded by klaus3000 (license 65)
  Tested by: klaus3000

  Review: [full review board URL with trailing slash]
........

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

15 years agoVariables have always been case-sensitive, so we should not be removing case-insensit...
Tilghman Lesher [Tue, 15 Jun 2010 18:25:12 +0000 (18:25 +0000)] 
Variables have always been case-sensitive, so we should not be removing case-insensitive matches.

Bug reported via the -dev list.  See
http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html

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

15 years agoMove information about zonemessages into the [zonemessages] section.
Leif Madsen [Tue, 15 Jun 2010 12:47:03 +0000 (12:47 +0000)] 
Move information about zonemessages into the [zonemessages] section.

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

15 years agofixes FXS port still ringing when answered, as reported by Tzafrir on dev-list.
Alec L Davis [Tue, 15 Jun 2010 00:16:03 +0000 (00:16 +0000)] 
fixes FXS port still ringing when answered, as reported by Tzafrir on dev-list.

(issue #17067)
Reported by: tzafrir
Tested by: alecdavis

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

15 years agoProperly play first file in sort list.
Paul Belanger [Mon, 14 Jun 2010 21:31:59 +0000 (21:31 +0000)] 
Properly play first file in sort list.

When using sort=alpha we would always skip the first file
in the list first time through.  We now check for that
properly.

(closes issue #17470)
Reported by: pabelanger
Patches:
      sort.aplha.patch uploaded by pabelanger (license 224)
Tested by: lmadsen

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

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

15 years agoFix typo in example
Paul Belanger [Sat, 12 Jun 2010 18:54:20 +0000 (18:54 +0000)] 
Fix typo in example

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

15 years agoFor SpeeX, 0 bits remaining is valid and does not need an emitted warning.
Tilghman Lesher [Fri, 11 Jun 2010 18:23:05 +0000 (18:23 +0000)] 
For SpeeX, 0 bits remaining is valid and does not need an emitted warning.

(closes issue #15762)
 Reported by: nblasgen
 Patches:
       issue15672.patch uploaded by pabelanger (license 224)
 Tested by: nblasgen

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

15 years agoFix potential crash when writing raw SLIN audio on a PLC-enabled channel.
Mark Michelson [Thu, 10 Jun 2010 19:30:12 +0000 (19:30 +0000)] 
Fix potential crash when writing raw SLIN audio on a PLC-enabled channel.

The issue here was that the frame created when adjusting for PLC had no offset
to its audio data. If this frame were translated to another format prior to
being sent out an RTP socket, all went well because the translation code would
put an appropriate offset into the frame. However, if the SLIN audio were not
translated before being sent out the RTP socket, bad things would happen.
Specifically, the ast_rtp_raw_write makes the assumption that the frame has
at least enough of an offset that it can accommodate an RTP header. This was
not the case. As such, data was being written prior to the allocation, likely
corrupting the data the memory allocator had written. Thus when the time came
to free the data, all hell broke loose. ....Well, Asterisk crashed at least.

The fix was just what one would expect. Offset the data in the frame by a reasonable
amount. The method I used is a bit odd since the data in the frame is 16 bit integers
and not bytes. I left a big ol' comment about it. This can be improved on if someone
is interested. I was more interested in getting the crash resolved.

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

15 years agoAdd text version of PLC doc to 1.4
Mark Michelson [Thu, 10 Jun 2010 17:30:40 +0000 (17:30 +0000)] 
Add text version of PLC doc to 1.4

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

15 years agoEnsure restartable system calls can restart (BSD signal semantics)
Tilghman Lesher [Thu, 10 Jun 2010 07:52:34 +0000 (07:52 +0000)] 
Ensure restartable system calls can restart (BSD signal semantics)

This eliminates the annoying <beep> on the console.

(closes issue #17477)
 Reported by: jvandal
 Patches:
       20100610__issue17477.diff.txt uploaded by tilghman (license 14)

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

15 years agoDon't stop Asterisk if chan_oss fails to register 'Console' (due to another channel...
Russell Bryant [Wed, 9 Jun 2010 22:18:37 +0000 (22:18 +0000)] 
Don't stop Asterisk if chan_oss fails to register 'Console' (due to another channel driver already claiming it).

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

15 years agoLet systems without a working fork() use res_musiconhold.
Jason Parker [Wed, 9 Jun 2010 21:19:17 +0000 (21:19 +0000)] 
Let systems without a working fork() use res_musiconhold.

Files mode doesn't require anything special, so that can still be used just fine.

AST-357

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

15 years agoFix Debian init script to not use -c.
Paul Belanger [Wed, 9 Jun 2010 17:24:53 +0000 (17:24 +0000)] 
Fix Debian init script to not use -c.

When using the init script as-is currently, it could cause issues on Debian
such as high CPU usage. This fix has worked for several people so I'm
implementing the change.  We now handle color displays properly.

(closes issue #16784)
Reported by: pabelanger
Patches:
      20100530__issue16784__2.diff.txt uploaded by tilghman (license 14)
Tested by: pabelanger, tilghman

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

15 years agoReduce startup time for cdr_tds with large CDR tables.
Sean Bright [Tue, 8 Jun 2010 15:28:49 +0000 (15:28 +0000)] 
Reduce startup time for cdr_tds with large CDR tables.

Since we are just checking for table existence, add a WHERE clause that will
return no rows but will raise an error if the table doesn't exist.

(closes issue #17380)
Reported by: kkwong
Patches:
      issue17380-01.patch uploaded by seanbright (license 71)
Tested by: kkwong

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

15 years agoFix summary for "core waitfullybooted" CLI command. Thanks, mnicholson.
Russell Bryant [Mon, 7 Jun 2010 16:07:43 +0000 (16:07 +0000)] 
Fix summary for "core waitfullybooted" CLI command.  Thanks, mnicholson.

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

15 years agoRest In Peace
Tilghman Lesher [Sat, 5 Jun 2010 02:49:52 +0000 (02:49 +0000)] 
Rest In Peace
http://www.outandaboutnewspaper.com/article/4061

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

15 years agoGet rid of a warning that gets printed out when the console is configured without...
Russell Bryant [Fri, 4 Jun 2010 21:40:53 +0000 (21:40 +0000)] 
Get rid of a warning that gets printed out when the console is configured without any logger levels

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

15 years agoAC_CONFIG_SUBDIRS has a bad side-effect on cross-compiles.
Tilghman Lesher [Fri, 4 Jun 2010 20:41:24 +0000 (20:41 +0000)] 
AC_CONFIG_SUBDIRS has a bad side-effect on cross-compiles.

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

15 years agoComment out a rule that likes to break the chan_h323 build randomly.
Russell Bryant [Fri, 4 Jun 2010 19:47:41 +0000 (19:47 +0000)] 
Comment out a rule that likes to break the chan_h323 build randomly.

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

15 years agoBuild menuselect with the build environment's compiler, not the host (target)'s compiler.
Tilghman Lesher [Fri, 4 Jun 2010 19:38:57 +0000 (19:38 +0000)] 
Build menuselect with the build environment's compiler, not the host (target)'s compiler.

(closes issue #17464)
 Reported by: pprindeville
 Tested by: tilghman

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

15 years agoAs-fixiate the build process
Tilghman Lesher [Fri, 4 Jun 2010 16:27:02 +0000 (16:27 +0000)] 
As-fixiate the build process

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

15 years agoMake the default install path appear to be /usr on Linux, instead of /usr/local.
Tilghman Lesher [Fri, 4 Jun 2010 01:16:26 +0000 (01:16 +0000)] 
Make the default install path appear to be /usr on Linux, instead of /usr/local.

Also, reorganize the options, so that they're more alphabetical.

(closes issue #17013)
 Reported by: klaus3000

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

15 years ago1.4 version of the dead PLC code fix.
Mark Michelson [Thu, 3 Jun 2010 17:39:18 +0000 (17:39 +0000)] 
1.4 version of the dead PLC code fix.

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

15 years agoAdd CLI command that blocks until Asterisk has fully booted.
Russell Bryant [Wed, 2 Jun 2010 19:56:14 +0000 (19:56 +0000)] 
Add CLI command that blocks until Asterisk has fully booted.

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

15 years agoCleanup error/warning messages in AEL2 parser
Paul Belanger [Wed, 2 Jun 2010 17:14:37 +0000 (17:14 +0000)] 
Cleanup error/warning messages in AEL2 parser

(closes issue #16684)
Reported by: Silmaril
Patches:
      patch_ael2_logmsg.diff uploaded by Silmaril (license 979)

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

15 years agoBackport live_ast script from 1.6.2 branch
Paul Belanger [Wed, 2 Jun 2010 15:41:16 +0000 (15:41 +0000)] 
Backport live_ast script from 1.6.2 branch

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

15 years agoPrevent CLI prompt from distorting output of lines shorter than the prompt.
Tilghman Lesher [Tue, 1 Jun 2010 15:17:46 +0000 (15:17 +0000)] 
Prevent CLI prompt from distorting output of lines shorter than the prompt.

Uses the VT100 method of clearing the line from the cursor position to the
end of the line:  Esc-0K

(closes issue #17160)
 Reported by: coolmig
 Patches:
       20100531__issue17160.diff.txt uploaded by tilghman (license 14)
 Tested by: coolmig

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

15 years agoFix formatting issue with previous patch.
Paul Belanger [Tue, 1 Jun 2010 14:57:49 +0000 (14:57 +0000)] 
Fix formatting issue with previous patch.

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

15 years agoMissing fallback to audio fax feature when T.38 re-INVITE failed
Paul Belanger [Tue, 1 Jun 2010 14:54:05 +0000 (14:54 +0000)] 
Missing fallback to audio fax feature when T.38 re-INVITE failed

When a T.38 re-INVITE failed with an 488 or 606 answer, we should
fallback to audio fax by send a re-re-INVITE without T.38. The
function is backported from 1.6 asterisk.

(closes issue #16795)
Reported by: vrban

(closes issue #16692)
Reported by: vrban
Patches:
      t38_fallback_to_audio_v3.patch uploaded by vrban (license 756)
Tested by: lmadsen, vrban, haggard

https://reviewboard.asterisk.org/r/514/

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

15 years agoReverting patch and reopening issue #16784, as patch breaks color display.
Tilghman Lesher [Sun, 30 May 2010 04:43:28 +0000 (04:43 +0000)] 
Reverting patch and reopening issue #16784, as patch breaks color display.

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

15 years agoUse sigaction for signals which should persist past the initial trigger, not signal.
Tilghman Lesher [Wed, 26 May 2010 21:11:44 +0000 (21:11 +0000)] 
Use sigaction for signals which should persist past the initial trigger, not signal.

If you call signal() in a Solaris signal handler, instead of just resetting
the signal handler, it causes the signal to refire, because the signal is not
marked as handled prior to the signal handler being called.  This effectively
causes Solaris to immediately exceed the threadstack in recursive signal
handlers and crash.

(closes issue #17000)
 Reported by: rmcgilvr
 Patches:
       20100526__issue17000.diff.txt uploaded by tilghman (license 14)
 Tested by: rmcgilvr

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

15 years agoadd dahdi_func_write to zap_tech structure
David Vossel [Wed, 26 May 2010 20:33:00 +0000 (20:33 +0000)] 
add dahdi_func_write to zap_tech structure

This was supposed to be committed with r263292, the back-port
of teh DAHDI buffer policy dial string option

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

15 years agoMake AgentComplete message more consistent.
Mark Michelson [Wed, 26 May 2010 18:21:10 +0000 (18:21 +0000)] 
Make AgentComplete message more consistent.

At times, the "Member" field was not specified during the event.
It's there now.

(closes issue #15638)
Reported by: elbriga
Patches:
      patchAppQueueAgentComplete.diff uploaded by elbriga (license 482)

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

15 years agoNot finding rows in the DB does not rise to the level of a warning.
Tilghman Lesher [Wed, 26 May 2010 16:21:00 +0000 (16:21 +0000)] 
Not finding rows in the DB does not rise to the level of a warning.

(closes issue #17062)
 Reported by: drookie
 Patches:
       20100525__issue17062.diff.txt uploaded by tilghman (license 14)

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

15 years agofixes build issue with zaptel
David Vossel [Tue, 25 May 2010 17:11:40 +0000 (17:11 +0000)] 
fixes build issue with zaptel

(closes issue #17394)
Reported by: aragon
Patches:
      half_buffer_fix.diff uploaded by dvossel (license 671)
Tested by: aragon

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

15 years agoDon't mark the cdr records of unanswered queue calls with "NOANSWER". This restores...
Matthew Nicholson [Tue, 25 May 2010 16:48:19 +0000 (16:48 +0000)] 
Don't mark the cdr records of unanswered queue calls with "NOANSWER".  This restores the behavior prior to r258670.

(closes issue #17334)
Reported by: jvandal
Patches:
      queue-cdr-fixes1.diff uploaded by mnicholson (license 96)
Tested by: aragon, jvandal

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

15 years agoMerged revisions 265320,265467 via svnmerge from
Terry Wilson [Tue, 25 May 2010 13:33:21 +0000 (13:33 +0000)] 
Merged revisions 265320,265467 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r265320 | twilson | 2010-05-24 14:06:40 -0500 (Mon, 24 May 2010) | 14 lines

  Add the FullyBooted AMI event

  It is possible to connect to the manager interface before all Asterisk modules
  are loaded. To ensure that an application does not send AMI actions that might
  require a module that has not yet loaded, the application can listen for the
  FullyBooted manager event. It will be sent upon connection if all modules have
  been loaded, or as soon as loading is complete. The event:

     Event: FullyBooted
     Privilege: system,all
     Status: Fully Booted

  Review: https://reviewboard.asterisk.org/r/639/
........
  r265467 | twilson | 2010-05-24 17:21:58 -0500 (Mon, 24 May 2010) | 1 line

  Merge the rest of the FullyBooted patch
........

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

15 years agofixes segfault when using generic plc
David Vossel [Mon, 24 May 2010 19:37:55 +0000 (19:37 +0000)] 
fixes segfault when using generic plc

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

15 years agoDon't hang up on a queue caller if the file we attempt to play does not exist.
Mark Michelson [Fri, 21 May 2010 20:59:14 +0000 (20:59 +0000)] 
Don't hang up on a queue caller if the file we attempt to play does not exist.

This also fixes a documentation mistake in file.h that made my original attempt
to correct this problem not work correctly.

(closes issue #17061)
Reported by: RoadKill

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

15 years agoFix grammatical error in comment.
Mark Michelson [Fri, 21 May 2010 16:53:53 +0000 (16:53 +0000)] 
Fix grammatical error in comment.

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

15 years agoAllow ast_safe_sleep to defer specific frames until after the sleep has concluded.
Mark Michelson [Fri, 21 May 2010 16:28:34 +0000 (16:28 +0000)] 
Allow ast_safe_sleep to defer specific frames until after the sleep has concluded.

From reviewboard

Background:
A Digium customer discovered a somewhat odd bug. The setup is that parties A
and B are bridged, and party A places party B on hold. While party B is
listening to hold music, he mashes a bunch of DTMF. Party A takes party
B off hold while this is happening, but party B continues to hear hold
music. I could reproduce this about 1 in 5 times.

The issue:
When DTMF features are enabled and a user presses keys, the channel that
the DTMF is streamed to is placed in an ast_safe_sleep for 100 ms, the
duration of the emulated tone. If an AST_CONTROL_UNHOLD frame is read
from the channel during the sleep, the frame is dropped. Thus the
unhold indication is never made to the channel that was originally placed
on hold.

The fix:
Originally, I discussed with Kevin possible ways of fixing the specific
problem reported. However, we determined that the same type of problem
could happen in other situations where ast_safe_sleep() is used. Using
autoservice as a model, I modified ast_safe_sleep_conditional() to
defer specific frame types so they can be re-queued once the sleep has
finished. I made a common function for determining if a frame should
be deferred so that there are not two identical switch blocks to
maintain.

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

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

15 years agoast_callerid_parse() had a path that left name uninitialized.
Richard Mudgett [Thu, 20 May 2010 23:23:21 +0000 (23:23 +0000)] 
ast_callerid_parse() had a path that left name uninitialized.

Several callers of ast_callerid_parse() do not initialize the name
parameter before calling thus there is the potential to use an
uninitialized pointer.

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

15 years ago1.4 version of PLC fix.
Mark Michelson [Thu, 20 May 2010 15:59:44 +0000 (15:59 +0000)] 
1.4 version of PLC fix.

Analogous to trunk revision 264452, but without the change
to chan_sip since it is not necessary in this branch.

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

15 years agoSet quieted flag when receiving a dtmf tone during playback in speechbackground.
Matthew Nicholson [Wed, 19 May 2010 20:01:38 +0000 (20:01 +0000)] 
Set quieted flag when receiving a dtmf tone during playback in speechbackground.

(closes issue #16966)
Reported by: asackheim

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

15 years agoInternal timing is now on by default, if you're using DAHDI 2.3 or above.
Tilghman Lesher [Wed, 19 May 2010 17:41:29 +0000 (17:41 +0000)] 
Internal timing is now on by default, if you're using DAHDI 2.3 or above.

The reason for ensuring DAHDI 2.3 or above is that this version ensures that
a timer is always available, whereas in previous versions, it was possible
for DAHDI to be loaded, but have no drivers to actually generate timing.  If
internal_timing was turned on in this circumstance, a complete lack of audio
would result.  This is the reason why internal_timing was not on by default.
However, now that DAHDI ensures the availability of a timer, there is no
reason for this setting to be off (and in fact, it solves a great many initial
user problems).

(closes issue #15932)
 Reported by: dimas
 Patches:
       20100519__issue15932.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

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

15 years agofix incorrectly typed indications for [nz] stutter and dialrecall
Alec L Davis [Wed, 19 May 2010 08:23:07 +0000 (08:23 +0000)] 
fix incorrectly typed indications for [nz] stutter and dialrecall

(closes issue #17359)
Reported by: alecdavis
Patches:
      bug17359.diff.txt uploaded by alecdavis (license 585)

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

15 years agoBecause progress is called multiple times, across several frames, we must persist...
Tilghman Lesher [Wed, 19 May 2010 06:32:27 +0000 (06:32 +0000)] 
Because progress is called multiple times, across several frames, we must persist states when detecting multitone sequences.

(closes issue #16749)
 Reported by: dant
 Patches:
       dsp.c-bug16749-1.patch uploaded by dant (license 670)
 Tested by: dant

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

15 years agoModify directory name reading to be interrupted with operator or pound escape.
Jeff Peeler [Tue, 18 May 2010 18:54:58 +0000 (18:54 +0000)] 
Modify directory name reading to be interrupted with operator or pound escape.

In the case of accidentally entering the wrong first three letters for the
reading, users could be very frustrated if the name listing is very long. This
allows interrupting the reading by pressing 0 or #. 0 will attempt to execute
a configured operator (o) extension and # will exit and proceed in the
dialplan.

ABE-2200

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

15 years agoFix logic error when checking for a devstate provider.
Mark Michelson [Mon, 17 May 2010 22:00:28 +0000 (22:00 +0000)] 
Fix logic error when checking for a devstate provider.

When using strsep, if one of the list of specified separators is not found,
it is the first parameter to strsep which is now NULL, not the pointer returned
by strsep.

This issue isn't especially severe in that the worst it is likely to do is waste
some cycles when a device with no '/' and no ':' is passed to ast_device_state.

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

15 years agoRemove arbitrary size limitation for hints.
Mark Michelson [Mon, 17 May 2010 21:48:46 +0000 (21:48 +0000)] 
Remove arbitrary size limitation for hints.

(closes issue #17257)
Reported by: tim_ringenbach
Patches:
      hints_crash_fix.diff uploaded by tim ringenbach (license 540)

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

15 years agoManager cookies are not compatible with RFC2109.
Leif Madsen [Mon, 17 May 2010 14:35:18 +0000 (14:35 +0000)] 
Manager cookies are not compatible with RFC2109.

The Version field in the cookies we're setting contain quotes around the version
number which is not compatible with RFC2109 and breaks some implementations.

(closes issue #17231)
Reported by: ecarruda
Patches:
      manager_rfc2109-trunk-v1.patch uploaded by ecarruda (license 559)
      manager_rfc2109-1.6.2-v1.patch uploaded by ecarruda (license 559)
Tested by: ecarruda, russell

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

15 years agoUpdate link to new version of core sounds.
Leif Madsen [Mon, 17 May 2010 14:04:57 +0000 (14:04 +0000)] 
Update link to new version of core sounds.

The latest version of the core sounds files 1.4.19 now includes the missing
queue-minute sound file which is called by app_queue but which has been
missing.

(closes issue #17123)
Reported by: n8ideas

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

15 years agobackport of DAHDI buffer policy dial string option
David Vossel [Mon, 17 May 2010 13:01:39 +0000 (13:01 +0000)] 
backport of DAHDI buffer policy dial string option

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

15 years agoFix internal timing not working with Zaptel
Jeff Peeler [Thu, 13 May 2010 23:08:13 +0000 (23:08 +0000)] 
Fix internal timing not working with Zaptel

dahdi_compat.h was not being included in channel.c when used with
Zaptel and wasn't in file.c at all.

(closes issue #15250)
Reported by: mneuhauser
Patches:
      dahdi_compat.patch uploaded by mneuhauser (license 425)
Tested by: IgorG

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

15 years agofixes app_meetme dsp error
David Vossel [Wed, 12 May 2010 17:00:04 +0000 (17:00 +0000)] 
fixes app_meetme dsp error

We attempted to detect silence after translating a frame
from signed linear.  This caused a flooding of errors.  To
resolve this the code to detect silence was moved before the
translation.

(closes issue #17133)
Reported by: jsdyer

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

15 years agoUse a less silly method for modifying a flex-generated file.
Jason Parker [Tue, 11 May 2010 19:55:42 +0000 (19:55 +0000)] 
Use a less silly method for modifying a flex-generated file.

The sed syntax that was used wasn't actually valid, causing some versions to
choke.  This is the method that is used in 1.6.x+ for similar changes.

(closes issue #16696)
Reported by: bklang
Patches:
      16696-sedfix.diff uploaded by qwell (license 4)
Tested by: qwell

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

15 years agoFix issue #17302 a slightly different way (mad props to Qwell)
Tilghman Lesher [Tue, 11 May 2010 17:22:07 +0000 (17:22 +0000)] 
Fix issue #17302 a slightly different way (mad props to Qwell)

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

15 years agoAllow compilation on Mac OS X 10.4 (Tiger)
Tilghman Lesher [Mon, 10 May 2010 16:34:21 +0000 (16:34 +0000)] 
Allow compilation on Mac OS X 10.4 (Tiger)

(closes issue #17297)
 Reported by: jcovert
 Patches:
       20100506__issue17297.diff.txt uploaded by tilghman (license 14)

(closes issue #17302)
 Reported by: jcovert

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

15 years agoOnly allow the operator key to be accepted after leaving a voicemail.
Jeff Peeler [Thu, 6 May 2010 20:10:59 +0000 (20:10 +0000)] 
Only allow the operator key to be accepted after leaving a voicemail.

Or rather disallow the operator key from being accepted when not offered,
such as after finishing a recording from within the mailbox options menu.

ABE-2121
SWP-1267

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

15 years agoRevert 261698, code in trunk leads me to believe unadvertised options are supported.
Jeff Peeler [Thu, 6 May 2010 18:47:28 +0000 (18:47 +0000)] 
Revert 261698, code in trunk leads me to believe unadvertised options are supported.

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

15 years agoRemove some hidden broken code in the voicemail mailbox options menu.
Jeff Peeler [Thu, 6 May 2010 18:39:06 +0000 (18:39 +0000)] 
Remove some hidden broken code in the voicemail mailbox options menu.

After finishing a recording from within the mailbox options menu, pressing 0
exhibited strange behavior with operator=yes turned on. Pressing 0 was not
even advertised as an option and the options from the vm-saveoper prompt:
"Press 1 to accept this recording. Otherwise, please continue to hold" did
not function correctly. While this of course could be fixed, it didn't really
seem to make sense even if it was working properly.

ABE-2121
SWP-1267

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

15 years agoUse the versioned MOH tarballs, now that we have them.
Jason Parker [Thu, 6 May 2010 16:56:02 +0000 (16:56 +0000)] 
Use the versioned MOH tarballs, now that we have them.

This makes for more reproducibility.  Prompted by a discussion in #asterisk-dev

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

15 years agoRegistration fix for SIP realtime.
Paul Belanger [Wed, 5 May 2010 16:42:22 +0000 (16:42 +0000)] 
Registration fix for SIP realtime.

Make sure realtime fields are not empty.

(closes issue #17266)
Reported by: Nick_Lewis
Patches:
      chan_sip.c-realtime.patch uploaded by Nick Lewis (license 657)
Tested by: Nick_Lewis, sberney

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

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

15 years agoAdd a tiny corner case to the previous commit
Tilghman Lesher [Tue, 4 May 2010 23:47:08 +0000 (23:47 +0000)] 
Add a tiny corner case to the previous commit

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

15 years agoProtect against overflow, when calculating how long to wait for a frame.
Tilghman Lesher [Tue, 4 May 2010 23:36:53 +0000 (23:36 +0000)] 
Protect against overflow, when calculating how long to wait for a frame.

(closes issue #17128)
 Reported by: under
 Patches:
       d.diff uploaded by under (license 914)

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

15 years agoVoicemail transfer to operator should occur immediately, not after main menu.
Jeff Peeler [Tue, 4 May 2010 18:46:46 +0000 (18:46 +0000)] 
Voicemail transfer to operator should occur immediately, not after main menu.

There were two scenarios in the advanced options that while using the
operator=yes and review=yes options, the transfer occurred only after exiting
the main menu (after sending a reply or leaving a message for an extension).
Now after the audio is processed for the reply or message the transfer occurs
immediately as expected.

ABE-2107
ABE-2108

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

15 years agoFix FILTER() examples to work in 1.4
Tim Ringenbach [Tue, 4 May 2010 17:40:59 +0000 (17:40 +0000)] 
Fix FILTER() examples to work in 1.4

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

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

15 years agoFix fallout from removing from configure script. Pointed out by philipp64 on #aster...
Jason Parker [Tue, 4 May 2010 15:49:27 +0000 (15:49 +0000)] 
Fix fallout from removing  from configure script.  Pointed out by philipp64 on #asterisk-dev

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

15 years agoShould have removed /usr/lib/ part. Thanks Qwell.
Paul Belanger [Mon, 3 May 2010 16:54:41 +0000 (16:54 +0000)] 
Should have removed /usr/lib/ part. Thanks Qwell.

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

15 years agonon-root make install PREFIX=/tmp fails.
Paul Belanger [Mon, 3 May 2010 16:41:30 +0000 (16:41 +0000)] 
non-root make install PREFIX=/tmp fails.
Prepend libdir when executing mkpkgconfig allowing non-root installs to work.

(closes issue #17268)
Reported by: pabelanger
Patches:
      issue17268.patch uploaded by pabelanger (license 224)
Tested by: pabelanger

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

15 years agoMinor typo pointed out by pabelanger on IRC.
Leif Madsen [Mon, 3 May 2010 14:57:39 +0000 (14:57 +0000)] 
Minor typo pointed out by pabelanger on IRC.

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

15 years agoEnsure channel state is not incorrectly set in the case of a very early answer.
Jeff Peeler [Fri, 30 Apr 2010 22:22:46 +0000 (22:22 +0000)] 
Ensure channel state is not incorrectly set in the case of a very early answer.

The needringing bit was being read in dahdi_read after answering thereby
setting the state to ringing from up. This clears needringing upon answering
so that is no longer possible.

(closes issue #17067)
Reported by: tzafrir
Patches:
      needringing.diff uploaded by tzafrir (license 46)

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

15 years agoFix potential crash from race condition due to accessing channel data without the...
Mark Michelson [Fri, 30 Apr 2010 20:08:15 +0000 (20:08 +0000)] 
Fix potential crash from race condition due to accessing channel data without the channel locked.

In res_musiconhold.c, there are several places where a channel's
stream's existence is checked prior to calling ast_closestream on it. The issue
here is that in several cases, the channel was not locked while checking the
stream. The result was that if two threads checked the state of the channel's
stream at approximately the same time, then there could be a situation where
both threads attempt to call ast_closestream on the channel's stream. The result
here is that the refcount for the stream would go below 0, resulting in a crash.

I have added proper channel locking to res_musiconhold.c to ensure that
we do not try to check chan->stream without the channel locked. A Digium customer
has been using this patch for several weeks and has not had any crashes since
applying the patch.

ABE-2147

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

15 years agoDTMF CallerID detection problems.
Richard Mudgett [Thu, 29 Apr 2010 22:11:47 +0000 (22:11 +0000)] 
DTMF CallerID detection problems.

The code handling DTMF CallerID drops digits on long CallerID numbers and
may timeout waiting for the first ring with shorter numbers.

The DTMF emulation mode was not turned off when processing DTMF CallerID.
When the emulation code gets behind in processing the DTMF digits it can
skip a digit.

For shorter numbers, the timeout may have been too short.  I increased it
from 2 seconds to 4 seconds.  Four seconds is a typical time between rings
for many countries.

(closes issue #16460)
Reported by: sum
Patches:
      issue16460.patch uploaded by rmudgett (license 664)
      issue16460_v1.6.2.patch uploaded by rmudgett (license 664)
Tested by: sum, rmudgett

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

JIRA SWP-562
JIRA AST-334
JIRA SWP-901

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

15 years agoFixes crash in audiohook_write_list
David Vossel [Thu, 29 Apr 2010 15:31:02 +0000 (15:31 +0000)] 
Fixes crash in audiohook_write_list

The middle_frame in the audiohook_write_list function was
being freed if a audiohook manipulator returned a failure.
This is incorrect logic.  This patch resolves this and
adds detailed descriptions of how this function should work
and why manipulator failures must be ignored.

(closes issue #17052)
Reported by: dvossel
Tested by: dvossel

(closes issue #16196)
Reported by: atis

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

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

15 years agoresolves deadlocks in chan_local
David Vossel [Wed, 28 Apr 2010 21:16:03 +0000 (21:16 +0000)] 
resolves deadlocks in chan_local

Issue_1.
In the local_hangup() 3 locks must be held at the same time... pvt, pvt->chan,
and pvt->owner.  Proper deadlock avoidance is done when the channel to hangup
is the outbound chan_local channel, but when it is not the outbound channel we
have an issue... We attempt to do deadlock avoidance only on the tech pvt, when
both the tech pvt and the pvt->owner are locked coming into that loop.  By
never giving up the pvt->owner channel deadlock avoidance is not entirely possible.
This patch resolves that by doing deadlock avoidance on both the pvt->owner and the pvt
when trying to get the pvt->chan lock.

Issue_2.
ast_prod() is used in ast_activate_generator() to queue a frame on the channel
and make the channel's read function get called.  This function is used in
ast_activate_generator() while the channel is locked, which mean's the channel
will have a lock both from the generator code and the frame_queue code by the
time it gets to chan_local.c's local_queue_frame code... local_queue_frame
contains some of the same crazy deadlock avoidance that local_hangup requires,
and this recursive lock prevents that deadlock avoidance from happening correctly.
This patch removes ast_prod() from the channel lock so only one lock is held during
the local_queue_frame function.

(closes issue #17185)
Reported by: schmoozecom
Patches:
      issue_17185_v1.diff uploaded by dvossel (license 671)
      issue_17185_v2.diff uploaded by dvossel (license 671)
Tested by: schmoozecom, GameGamer43

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

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

15 years agoUpdate config.guess.
Leif Madsen [Wed, 28 Apr 2010 21:07:48 +0000 (21:07 +0000)] 
Update config.guess.

Updating config.guess because after installing Ubuntu Server 9.10 and
running all the update scripts, running ./configure would not continue
because it was unable to determine what kind of system I had. After
updating config.guess things started working again.

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

15 years agoAdd AC_CONFIG_AUX_DIR to configure script, so systems without install can use install...
Jason Parker [Wed, 28 Apr 2010 20:30:21 +0000 (20:30 +0000)] 
Add AC_CONFIG_AUX_DIR to configure script, so systems without install can use install-sh from our source dir.

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

15 years agoMissed this when removing $ID
Jason Parker [Wed, 28 Apr 2010 20:25:36 +0000 (20:25 +0000)] 
Missed this when removing $ID

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

15 years agoRemove usage of `id` since it isn't useful and was causing breakge.
Jason Parker [Wed, 28 Apr 2010 19:17:38 +0000 (19:17 +0000)] 
Remove usage of `id` since it isn't useful and was causing breakge.

Solaris `id` doesn't support the -u argument.  Instead of figuring out how to
fix this to work on Solaris, I decided to check why it was necessary and where
else it was used.  It was only used in one place, and it hasn't been needed
for a very long time (I question whether it was ever needed).

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

15 years agoDo not play goodbye prompt after timeout of message review.
Jeff Peeler [Wed, 28 Apr 2010 17:13:29 +0000 (17:13 +0000)] 
Do not play goodbye prompt after timeout of message review.

ABE-2124

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

15 years agoDAHDI "WARNING" message is confusing and vague
Richard Mudgett [Tue, 27 Apr 2010 21:53:07 +0000 (21:53 +0000)] 
DAHDI "WARNING" message is confusing and vague

"WARNING[28406]: chan_dahdi.c:6873 ss_thread: CallerID feed failed: Success"

Changed the warning to "Failed to decode CallerID on channel 'name'".  The
message before it is likely more specific about why the CallerID decode
failed.

SWP-501
AST-283

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

15 years agoUpdate sounds files.
Leif Madsen [Tue, 27 Apr 2010 21:48:47 +0000 (21:48 +0000)] 
Update sounds files.

* Add additional sounds prompts for say_enumeration
* Update the English conference sounds prompts so they are better
  quality and all sound more consistent
* Clean up the core-sounds-XX.txt and extra-sounds-XX.txt files to
  include all present sound files

Both core (en, fr, es) and extra (en, fr) sounds files have been updated.

(closes issue #16200)
Reported by: murf

(closes issue #17137)
Reported by: lmadsen

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

15 years agoAdd gar to the check for AR for those silly OSes (Solaris) that don't have ar.
Jason Parker [Tue, 27 Apr 2010 21:15:46 +0000 (21:15 +0000)] 
Add gar to the check for AR for those silly OSes (Solaris) that don't have ar.

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

15 years agoSupport the silly OSes that don't have ar and strip.
Jason Parker [Tue, 27 Apr 2010 19:29:26 +0000 (19:29 +0000)] 
Support the silly OSes that don't have ar and strip.

Since AC_PATH_TOOL is equiv to AC_CHECK_TOOL when path isn't specified, and
AC_PATH_TOOLS doesn't exist, we'll just switch to AC_CHECK_TOOLS.

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

15 years agohidecalleridname parameter in chan_dahdi.conf
Richard Mudgett [Tue, 27 Apr 2010 18:14:54 +0000 (18:14 +0000)] 
hidecalleridname parameter in chan_dahdi.conf

Issue #7321 implements a new chan_dahdi configuration option.  However, a
change mentioned in the issue was never implemented.  This is the change
that will allow the feature to work.

I added a note to chan_dahdi.conf.sample about the feature.

(closes issue #17143)
Reported by: djensen99
Patches:
      diff.txt uploaded by djensen99 (license NA) (One line change)
Tested by: djensen99

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

15 years agoLet compilation succeed warning-free when DONT_OPTIMIZE is turned off.
Mark Michelson [Mon, 26 Apr 2010 21:44:43 +0000 (21:44 +0000)] 
Let compilation succeed warning-free when DONT_OPTIMIZE is turned off.

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

15 years agoPrevent Newchannel manager events for dummy channels.
Mark Michelson [Mon, 26 Apr 2010 21:03:08 +0000 (21:03 +0000)] 
Prevent Newchannel manager events for dummy channels.

No Newchannel manager event will be fired for channels that are
allocated to not match a registered technology type. Thus bogus
channels allocated solely for variable substitution or CDR
operations do not result in a Newchannel event.

(closes issue #16957)
Reported by: atis

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

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

15 years agoWhen StopMonitor is called, ensure that it will not be restarted by a channel event.
Tilghman Lesher [Sun, 25 Apr 2010 18:09:05 +0000 (18:09 +0000)] 
When StopMonitor is called, ensure that it will not be restarted by a channel event.
(closes issue #16590)
 Reported by: kkm
 Patches:
       resmonitor-16590-trunk.239289.diff uploaded by kkm (license 888)

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

15 years agoFix broken CDR behavior.
Matthew Nicholson [Thu, 22 Apr 2010 21:49:07 +0000 (21:49 +0000)] 
Fix broken CDR behavior.

This change allows a CDR record previously marked with disposition ANSWERED to be set as BUSY or NO ANSWER.

Additionally this change partially reverts r235635 and does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated from ast_call().  To preserve proper CDR behavior, the AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in ast_bridge_call().

(closes issue #16797)
Reported by: VarnishedOtter
Tested by: mnicholson

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