asterisk/asterisk.git
12 years agoThis patch adds a new application for sending MWI to phones via Asterisk's event...
Terry Wilson [Mon, 24 Nov 2008 18:11:08 +0000 (18:11 +0000)]
This patch adds a new application for sending MWI to phones via Asterisk's event subsystem.  Also, the minivm documentation is all converted to use xmldocs.

(closes issue #13946)
Reported by: Marquis
Patches:
      minivmmwi_plus_xmldocs.patch uploaded by Marquis (license 32)
Tested by: otherwiseguy, Marquis

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

12 years agoIf you enabled 'notifycid' one of the limitations is that the calling channel
Sean Bright [Sun, 23 Nov 2008 03:36:52 +0000 (03:36 +0000)]
If you enabled 'notifycid' one of the limitations is that the calling channel
is only found if it dialed the extension that was subscribed to.  You can now
specify 'ignore-context' for the 'notifycid' option in sip.conf which will, as
it's value implies, ignore the current context of the caller when doing the
lookup.

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

12 years agoNo need to use a separate structure for this since we can just pass
Sean Bright [Sun, 23 Nov 2008 03:30:46 +0000 (03:30 +0000)]
No need to use a separate structure for this since we can just pass
our sip_pvt pointer in directly.

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

12 years agolast commit worked on OpenBSD but still generated warning on Ubuntu.
Michiel van Baak [Sat, 22 Nov 2008 17:17:33 +0000 (17:17 +0000)]
last commit worked on OpenBSD but still generated warning on Ubuntu.

Initialise a variable so --enable-dev-mode does not complain

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

12 years agodont send reorder tone after a device is hungup if a dialout is abandoned or failed.
Michiel van Baak [Sat, 22 Nov 2008 16:57:11 +0000 (16:57 +0000)]
dont send reorder tone after a device is hungup if a dialout is abandoned or failed.
Without this reorder tone will play after hangup and both wedhorn's and my wife have threatened to use an axe on our asterisk box

(closes issue #13948)
Reported by: wedhorn
Patches:
switch.diff uploaded by wedhorn (license 30)

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

12 years agoAdd Media Source Update to skinny's control2str
Michiel van Baak [Sat, 22 Nov 2008 16:48:09 +0000 (16:48 +0000)]
Add Media Source Update to skinny's control2str

(issue #13948)

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

12 years agofix a very occasional core dump in chan_skinny found by wedhorn.
Michiel van Baak [Sat, 22 Nov 2008 16:06:38 +0000 (16:06 +0000)]
fix a very occasional core dump in chan_skinny found by wedhorn.

(issue #13948)

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

12 years agomake this compile under devmode
Michiel van Baak [Sat, 22 Nov 2008 15:58:49 +0000 (15:58 +0000)]
make this compile under devmode

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

12 years agoBlocked revisions 158629 via svnmerge
Jeff Peeler [Sat, 22 Nov 2008 00:05:33 +0000 (00:05 +0000)]
Blocked revisions 158629 via svnmerge

........
r158629 | jpeeler | 2008-11-21 18:04:36 -0600 (Fri, 21 Nov 2008) | 5 lines

(closes issue #13786)
Reported by: tzafrir

When compiling against Zaptel dahdi_compat will now only define all the DAHDI defines if the Zaptel define is present. Also, there is no such thing as DAHDI_PRI.

........

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

12 years agoMerged revisions 158603 via svnmerge from
Steve Murphy [Fri, 21 Nov 2008 23:40:46 +0000 (23:40 +0000)]
Merged revisions 158603 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r158603 | murf | 2008-11-21 16:14:50 -0700 (Fri, 21 Nov 2008) | 11 lines

In reference to the fix made for 13871, I was
merging the fix into 1.6.0 and realized I missed
the code in the h-exten block, and didn't catch it
because my test case had the h-exten commented out.

So, this corrects the code I missed, as a
preventative against another crash report.
Tested with the h-exten defined, all is well.

........

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

12 years agoAllow space within an extension, when the space is within a character class.
Tilghman Lesher [Fri, 21 Nov 2008 23:33:22 +0000 (23:33 +0000)]
Allow space within an extension, when the space is within a character class.
(requested by lmadsen on -dev, patch by me)

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

12 years agoMerged revisions 158600 via svnmerge from
Tilghman Lesher [Fri, 21 Nov 2008 23:14:11 +0000 (23:14 +0000)]
Merged revisions 158600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r158600 | tilghman | 2008-11-21 17:07:46 -0600 (Fri, 21 Nov 2008) | 5 lines

  The passed extension may not be the same in the list as the current entry,
  because we strip spaces when copying the extension into the structure.
  Therefore, use the copied item to place the item into the list.
  (found by lmadsen on -dev, fixed by me)
........

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

12 years agoMerged revisions 158539 via svnmerge from
Russell Bryant [Fri, 21 Nov 2008 22:12:37 +0000 (22:12 +0000)]
Merged revisions 158539 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r158539 | russell | 2008-11-21 16:05:55 -0600 (Fri, 21 Nov 2008) | 2 lines

When compiling with DEBUG_THREADS, report the real file/func/line for ao2_lock/ao2_unlock

........

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

12 years agoMerged revisions 158483 via svnmerge from
Steve Murphy [Fri, 21 Nov 2008 21:47:16 +0000 (21:47 +0000)]
Merged revisions 158483 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r158483 | murf | 2008-11-21 14:19:47 -0700 (Fri, 21 Nov 2008) | 11 lines

(closes issue #13871)
Reported by: mdu113

This one is totally my fault. The code doesn't even
create a bridge CDR if the channel CDR has POST_DISABLED.
I didn't check for that at the end of the bridge.
Fixed with a few small insertions. Tested. Looks
good. No cdr generated, no crash, no unnecc. data
objects created either.

........

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

12 years agoFix for #13963. Make physical channel mapping unconfigured default
Matthew Fredrickson [Fri, 21 Nov 2008 21:06:59 +0000 (21:06 +0000)]
Fix for #13963.  Make physical channel mapping unconfigured default

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

12 years agoas suggested by jtodd, document the purposes of the CHANGES and UPGRADE files
Kevin P. Fleming [Fri, 21 Nov 2008 20:42:37 +0000 (20:42 +0000)]
as suggested by jtodd, document the purposes of the CHANGES and UPGRADE files

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

12 years agoMake sure we add the Event header for CoreShowChannels.
Jason Parker [Fri, 21 Nov 2008 19:40:57 +0000 (19:40 +0000)]
Make sure we add the Event header for CoreShowChannels.

(closes issue #13334)
Reported by: srt
Patches:
      13334_missing_event_header_in_core_show_channel.diff uploaded by srt (license 378)

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

12 years agoReloading the config and having no changes still initialized some settings to 0....
Terry Wilson [Fri, 21 Nov 2008 17:08:16 +0000 (17:08 +0000)]
Reloading the config and having no changes still initialized some settings to 0. Initialize settings after doing all of the cfg checks.

(closes issue #13942)
Reported by: davidw
Patches:
      cdr_diff.txt uploaded by otherwiseguy (license 396)
Tested by: davidw

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

12 years agoAdd fix to prevent crash during reload if there is an outstanding MWI registration...
Doug Bailey [Fri, 21 Nov 2008 15:53:49 +0000 (15:53 +0000)]
Add fix to prevent crash during reload if there is an outstanding MWI registration message pending.

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

12 years agoBlocked revisions 158306 via svnmerge
Mark Michelson [Fri, 21 Nov 2008 15:25:58 +0000 (15:25 +0000)]
Blocked revisions 158306 via svnmerge

........
r158306 | mmichelson | 2008-11-21 09:24:19 -0600 (Fri, 21 Nov 2008) | 5 lines

This change had somehow gotten reverted due to a
completely unrelated commit. Thanks to Theo Belder
on the Asterisk-dev list for pointing this out.

........

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

12 years agoUse a more expressive constant for a 64-bit scanned int
Mark Michelson [Fri, 21 Nov 2008 01:22:18 +0000 (01:22 +0000)]
Use a more expressive constant for a 64-bit scanned int

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

12 years agoUse some magic constants to get the right size
Mark Michelson [Fri, 21 Nov 2008 01:14:20 +0000 (01:14 +0000)]
Use some magic constants to get the right size
for this sscanf statement. Thanks Richard!

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

12 years agoFix the build for 32-bit systems. %lu is only 32-bits
Mark Michelson [Fri, 21 Nov 2008 00:59:23 +0000 (00:59 +0000)]
Fix the build for 32-bit systems. %lu is only 32-bits
on 32-bit systems, so we need to use %llu instead. Of course
%llu is 128-bits on 64-bit systems, so we have to cast to
unsigned long long. No harm, but it's sure annoying.

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

12 years agoChange the remote user agent session version variable
Mark Michelson [Thu, 20 Nov 2008 23:12:50 +0000 (23:12 +0000)]
Change the remote user agent session version variable
from an int to a uint64_t. This prevents potential comparison
problems from happening if the version string exceeds
INT_MAX. This was an apparent problem for one user who could
not properly place a call on hold since the version in the
SDP of the re-INVITE to place the call on hold greatly
exceeded INT_MAX.

This also aligns with RFC 2327 better since it recommends
using an NTP timestamp for the version (which is a
64-bit number).

(closes issue #13531)
Reported by: sgofferj
Patches:
      13531.patch uploaded by putnopvut (license 60)
Tested by: sgofferj

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

12 years agoFix one case where the application argument was not converted from a pipe to
Sean Bright [Thu, 20 Nov 2008 19:41:23 +0000 (19:41 +0000)]
Fix one case where the application argument was not converted from a pipe to
a comma.  This was causing problems with switch statements with empty expressions.

(closes issue #13901)
Reported by: smurfix
Patches:
      20081118_bug13901.diff uploaded by seanbright (license 71)
Tested by: seanbright
Reviewed by: murf

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

12 years agoMerged revisions 158072 via svnmerge from
Mark Michelson [Thu, 20 Nov 2008 18:20:00 +0000 (18:20 +0000)]
Merged revisions 158072 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r158072 | twilson | 2008-11-20 11:48:58 -0600 (Thu, 20 Nov 2008) | 2 lines

Begin on a crusade to end trailing whitespace!

........

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

12 years agoMerged revisions 158071 via svnmerge from
Mark Michelson [Thu, 20 Nov 2008 17:54:31 +0000 (17:54 +0000)]
Merged revisions 158071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r158071 | mmichelson | 2008-11-20 11:48:42 -0600 (Thu, 20 Nov 2008) | 16 lines

We don't handle 4XX responses to BYE well. According to
section 15 of RFC 3261, we should terminate a dialog if we
receive a 481 or 408 in response to our BYE. Since I am aware
of at least one phone manufacturer who may sometimes send a
404 as well, I am being liberal and saying that any 4XX response
to a BYE should result in a terminated dialog.

(closes issue #12994)
Reported by: pabelanger
Patches:
      12994.patch uploaded by putnopvut (license 60)

Closes AST-129

........

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

12 years agomore formatting corrections :: one line for loops and if statements still need {}
Ryan Brindley [Thu, 20 Nov 2008 17:53:42 +0000 (17:53 +0000)]
more formatting corrections :: one line for loops and if statements still need {}

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

12 years agoBegin on a crusade to end trailing whitespace!
Terry Wilson [Thu, 20 Nov 2008 17:48:58 +0000 (17:48 +0000)]
Begin on a crusade to end trailing whitespace!

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

12 years agoformatting changes :: one line for loops and if statements should have {}
Ryan Brindley [Thu, 20 Nov 2008 17:46:56 +0000 (17:46 +0000)]
formatting changes :: one line for loops and if statements should have {}

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

12 years agoMerged revisions 158053 via svnmerge from
Mark Michelson [Thu, 20 Nov 2008 17:39:06 +0000 (17:39 +0000)]
Merged revisions 158053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r158053 | mmichelson | 2008-11-20 11:33:06 -0600 (Thu, 20 Nov 2008) | 12 lines

Make sure to set the hangup cause on the calling channel in the case
that ast_call() fails. For incoming SIP channels, this was causing
us to send a 603 instead of a 486 when the call-limit was reached on
the destination channel.

(closes issue #13867)
Reported by: still_nsk
Patches:
      13867.diff uploaded by putnopvut (license 60)
Tested by: blitzrage

........

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

12 years ago(closes issue #12929)
Jeff Peeler [Thu, 20 Nov 2008 17:37:31 +0000 (17:37 +0000)]
(closes issue #12929)
Reported by: snyfer

This handles the case for a zero length file to attempt to be streamed. Instead of failing from not playing any data, go ahead and return success as ast_streamfile should consider playing nothing a success when there is nothing to play.

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

12 years agoWhitespace fix
Jason Parker [Thu, 20 Nov 2008 17:37:05 +0000 (17:37 +0000)]
Whitespace fix

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

12 years agoMerged revisions 157859 via svnmerge from
Kevin P. Fleming [Thu, 20 Nov 2008 00:08:12 +0000 (00:08 +0000)]
Merged revisions 157859 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r157859 | kpfleming | 2008-11-19 15:34:47 -0600 (Wed, 19 Nov 2008) | 7 lines

  the gcc optimizer frequently finds broken code (use of uninitalized variables, unreachable code, etc.), which is good. however, developers usually compile with the optimizer turned off, because if they need to debug the resulting code, optimized code makes that process very difficult. this means that we get code changes committed that weren't adequately checked over for these sorts of problems.

  with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course).

  while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain
........

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

12 years agoFix compiling
Terry Wilson [Thu, 20 Nov 2008 00:06:46 +0000 (00:06 +0000)]
Fix compiling

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

12 years agoAdd a space to the output
Mark Michelson [Wed, 19 Nov 2008 23:30:42 +0000 (23:30 +0000)]
Add a space to the output

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

12 years agoAdd a RES_NOT_DYNAMIC case for the CLI command
Mark Michelson [Wed, 19 Nov 2008 23:29:14 +0000 (23:29 +0000)]
Add a RES_NOT_DYNAMIC case for the CLI command
'queue remove member'

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

12 years agoCommit CHANGES change I promised when submitting
Mark Michelson [Wed, 19 Nov 2008 22:17:05 +0000 (22:17 +0000)]
Commit CHANGES change I promised when submitting
res_timing_timerfd

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

12 years agoAdd info about REALTIME_FIELD and REALTIME_HASH
Tilghman Lesher [Wed, 19 Nov 2008 22:01:00 +0000 (22:01 +0000)]
Add info about REALTIME_FIELD and REALTIME_HASH

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

12 years agoCast this value since a uint64_t is not the same
Mark Michelson [Wed, 19 Nov 2008 21:55:25 +0000 (21:55 +0000)]
Cast this value since a uint64_t is not the same
as an unsigned long long on a 64-bit machine.

Reported by kpfleming on IRC

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

12 years agoTwo new functions, REALTIME_FIELD, and REALTIME_HASH, which should make
Tilghman Lesher [Wed, 19 Nov 2008 21:54:39 +0000 (21:54 +0000)]
Two new functions, REALTIME_FIELD, and REALTIME_HASH, which should make
querying realtime from the dialplan a little more consistent and easy to use.
The original REALTIME function is preserved, for those who are already
accustomed to that interface.
(closes issue #13651)
 Reported by: Corydon76
 Patches:
       20081119__bug13651__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage, Corydon76

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

12 years agoMerge the changes from the res_timing_timerfd branch.
Mark Michelson [Wed, 19 Nov 2008 19:37:32 +0000 (19:37 +0000)]
Merge the changes from the res_timing_timerfd branch.

This provides a new timing interface. In order to use it,
you must be running a Linux with a kernel version of
2.6.25 or newer and glibc 2.8 or newer.

This timing interface is a good alternative if a timing
source is necessary (e.g. for IAX trunking) but DAHDI is
otherwise unnecessary for the system.

For now, this commit contains the actual work done in the
res_timing_timerfd branch. There are no notices in the README
or CHANGES files yet, but they will be added in my next commit.

The timing API of Asterisk also needs to have a bit of work done
with regards to choosing which timing interface to use. This commit
makes the choice a build-time decision, by only allowing one of
the timer interfaces to be chosen in menuselect. It would be preferable
if the choice could be made at run-time, however. The preferred timing
interface could be loaded and tested, and if it does not work, choice
number two may be used instead. That sort of thing. That is beyond
the scope of work in this branch though.

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

12 years agoFix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon trying...
Terry Wilson [Wed, 19 Nov 2008 19:25:14 +0000 (19:25 +0000)]
Fix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon trying to parse an invalid config

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

12 years agoAdd check for t38_terminal_init in spandsp (not found in 0.0.6, so it should fail...
Tilghman Lesher [Wed, 19 Nov 2008 18:28:14 +0000 (18:28 +0000)]
Add check for t38_terminal_init in spandsp (not found in 0.0.6, so it should fail reasonably)
(closes issue #13473)
 Reported by: genie
 Patches:
       20080916__bug13473.diff.txt uploaded by Corydon76 (license 14)

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

12 years agocorrect small bug introduced during API conversion
Kevin P. Fleming [Wed, 19 Nov 2008 13:45:48 +0000 (13:45 +0000)]
correct small bug introduced during API conversion

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

12 years agomove relevant entries into UPGRADE.txt and resync UPGRADE-1.6.txt with previous branches
Kevin P. Fleming [Wed, 19 Nov 2008 13:27:02 +0000 (13:27 +0000)]
move relevant entries into UPGRADE.txt and resync UPGRADE-1.6.txt with previous branches

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

12 years agomake some corrections to the ast_agi_register_multiple(), ast_agi_unregister_multiple...
Kevin P. Fleming [Wed, 19 Nov 2008 12:42:19 +0000 (12:42 +0000)]
make some corrections to the ast_agi_register_multiple(), ast_agi_unregister_multiple() and ast_agi_fdprintf() API calls to be consistent with API guidelines

also, move UPGRADE.txt to UPGRADE-1.6.txt and make the new UPGRADE.txt contain information about upgrading between Asterisk 1.6 releases

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

12 years agoComment out config line that is in a commented out context
Terry Wilson [Wed, 19 Nov 2008 05:37:10 +0000 (05:37 +0000)]
Comment out config line that is in a commented out context

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

12 years agoStarting with a change to ensure that ast_verbose() preserves ABI compatibility
Tilghman Lesher [Wed, 19 Nov 2008 01:02:45 +0000 (01:02 +0000)]
Starting with a change to ensure that ast_verbose() preserves ABI compatibility
in 1.6.1 (as compared to 1.6.0 and versions of 1.4), this change also
deprecates the use of Asterisk with FreeBSD 4, given the central use of va_copy
in core functions.  va_copy() is C99, anyway, and we already require C99 for
other purposes, so this isn't really a big change anyway.  This change also
simplifies some of the core ast_str_* functions.

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

12 years agoIf malloc returns NULL, we need to return NULL immediately or
Mark Michelson [Wed, 19 Nov 2008 00:59:48 +0000 (00:59 +0000)]
If malloc returns NULL, we need to  return NULL immediately or
else Asterisk will crash when attempting to dereference the NULL
pointer

(closes issue #13858)
Reported by: eliel
Patches:
      astmm.c.patch uploaded by eliel (license 64)

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

12 years agoFix a few build problems on Solaris (and check for an md5 utility in
Sean Bright [Wed, 19 Nov 2008 00:27:45 +0000 (00:27 +0000)]
Fix a few build problems on Solaris (and check for an md5 utility in
configure instead of the icky loop I was doing before).

(closes issue #13842)
Reported by: snuffy
Patches:
      bug13842_20081106.diff uploaded by snuffy (license 35)
      13842.diff uploaded by seanbright (license 71)
Tested by: snuffy

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

12 years agoThis change prevents a crash from occurring if res_musiconhold.so
Mark Michelson [Tue, 18 Nov 2008 23:59:02 +0000 (23:59 +0000)]
This change prevents a crash from occurring if res_musiconhold.so
is unloaded and then Asterisk is stopped. The problem was that
we are not unregistering the ast_moh_destroy function at exit.

(closes issue #13761)
Reported by: eliel
Patches:
      res_musiconhold.c.patch uploaded by eliel (license 64)

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

12 years agoAdd some missing $(DESTDIR)s to the bininstall
Mark Michelson [Tue, 18 Nov 2008 23:39:41 +0000 (23:39 +0000)]
Add some missing $(DESTDIR)s to the bininstall
target of the Makefile.

(closes issue #13875)
Reported by: pabelanger
Patches:
      Makefile.155928 uploaded by pabelanger (license 224)

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

12 years agoFix the logic for when delete=yes when IMAP storage
Mark Michelson [Tue, 18 Nov 2008 23:28:23 +0000 (23:28 +0000)]
Fix the logic for when delete=yes when IMAP storage
is in use so that the message is deleted from both
local and IMAP storage.

(closes issue #13642)
Reported by: jaroth
Patches:
      deleteyes.patch uploaded by jaroth (license 50)

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

12 years agoMerged revisions 157503 via svnmerge from
Mark Michelson [Tue, 18 Nov 2008 22:54:08 +0000 (22:54 +0000)]
Merged revisions 157503 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r157503 | mmichelson | 2008-11-18 16:47:57 -0600 (Tue, 18 Nov 2008) | 13 lines

Add some missing invite state changes necessary in the sip_write
function. Not setting the invite state correctly on the call was
resulting in the Record application leaving empty files. I also
have updated the doxygen comment next to the declaration of the
INV_EARLY_MEDIA constant to reflect that we also use this state
when we *send* a 18X response to an INVITE.

(closes issue #13878)
Reported by: nahuelgreco
Patches:
      sip-early-media-recording-1.4.22.patch uploaded by nahuelgreco (license 162)
  Tested by: putnopvut

........

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

12 years agoBased on Russell's advice on the asterisk-dev list, I have
Mark Michelson [Tue, 18 Nov 2008 21:59:24 +0000 (21:59 +0000)]
Based on Russell's advice on the asterisk-dev list, I have
changed from using a global lock in update_call_counter to
using the locks within the sip_pvt and sip_peer structures
instead.

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

12 years agoRemove echo line that is unnecessary (Thanks seanbright).
Jason Parker [Tue, 18 Nov 2008 21:15:08 +0000 (21:15 +0000)]
Remove echo line that is unnecessary (Thanks seanbright).

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

12 years agoMake this executable
Jason Parker [Tue, 18 Nov 2008 21:03:12 +0000 (21:03 +0000)]
Make this executable

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

12 years agoAdd init script for ArchLinux
Jason Parker [Tue, 18 Nov 2008 21:01:46 +0000 (21:01 +0000)]
Add init script for ArchLinux

(closes issue #13667)
Reported by: sherif
Patches:
      archlinux_rc_makefile.patch uploaded by sherif (license 591)
      archlinux_rc_makefile-2.patch uploaded by mvanbaak (license 7)

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

12 years ago* Add a lock to be used in the update_call_counter function.
Mark Michelson [Tue, 18 Nov 2008 20:23:58 +0000 (20:23 +0000)]
* Add a lock to be used in the update_call_counter function.
* Revert logic to mirror 1.4's in the sense that it will not allow
  the call counter to dip below 0.

These two measures prevent potential races that could cause a SIP peer
to appear to be busy forever.

(closes issue #13668)
Reported by: mjc
Patches:
      hintfix_trunk_rev152649.patch uploaded by wolfelectronic (license 586)

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

12 years agoMerged revisions 157365 via svnmerge from
Jeff Peeler [Tue, 18 Nov 2008 19:16:00 +0000 (19:16 +0000)]
Merged revisions 157365 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r157365 | jpeeler | 2008-11-18 13:13:33 -0600 (Tue, 18 Nov 2008) | 6 lines

(closes issue #13899)
Reported by: akkornel

This fix is the result of a bug fix in ast_app_separate_args r124395. If an argument does not exist it should always be set to a null string rather than a null pointer.

........

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

12 years agoMerged revisions 157305 via svnmerge from
Mark Michelson [Tue, 18 Nov 2008 18:31:08 +0000 (18:31 +0000)]
Merged revisions 157305 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r157305 | mmichelson | 2008-11-18 12:25:55 -0600 (Tue, 18 Nov 2008) | 12 lines

Fix a crash in the end_bridge_callback of app_dial and
app_followme which would occur at the end of an attended
transfer. The error occurred because we initially stored
a pointer to an ast_channel which then was hung up due
to a masquerade.

This commit adds a "fixup" callback to the bridge_config
structure to allow for end_bridge_callback_data to be
changed in the case that a new channel pointer is needed
for the end_bridge_callback.

........

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

12 years ago(closes issue #13420)
Steve Murphy [Tue, 18 Nov 2008 18:07:55 +0000 (18:07 +0000)]
(closes issue #13420)
Reported by: alex70
Patches:
      13420.13539.patch uploaded by murf (license 17)
Tested by: murf, awk

This fixes two problems: a spurious linefeed insertion
probably left over from pre-precomment times. Only
generated when category had no previous comments.

The other problem: Insertions could get the line-numbering
out of whack and generate negative line numbers, causing
chunks of line numbers to be emitted, on the scale of the
number of lines up to that point in the file. In such cases,
abort the looping, and all is well.

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

12 years agoCan't use items duplicated off the stack frame in an element returned from
Tilghman Lesher [Mon, 17 Nov 2008 22:25:06 +0000 (22:25 +0000)]
Can't use items duplicated off the stack frame in an element returned from
a function: in these cases, we have to use the heap, or garbage will result.
(closes issue #13898)
 Reported by: alecdavis
 Patches:
       20081114__bug13898__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: alecdavis

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

12 years agoensure that if a .i file (preprocessed source) is present, the .o file is made from...
Kevin P. Fleming [Sat, 15 Nov 2008 19:51:29 +0000 (19:51 +0000)]
ensure that if a .i file (preprocessed source) is present, the .o file is made from it, not from the .c file (this only works because GNU makes respects the order the rules are defined)

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

12 years agoMerged revisions 157162-157163 via svnmerge from
Kevin P. Fleming [Sat, 15 Nov 2008 19:45:19 +0000 (19:45 +0000)]
Merged revisions 157162-157163 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r157162 | kpfleming | 2008-11-15 20:24:24 +0100 (Sat, 15 Nov 2008) | 1 line

  dist-clean should remove dependency information files as well
........
  r157163 | kpfleming | 2008-11-15 20:31:03 +0100 (Sat, 15 Nov 2008) | 1 line

  when an individual directory dist-clean is run, run clean in that directory first, and when running top-level dist-clean, do not run subdirectory clean operations twice
........

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

12 years agoMerged revisions 157104 via svnmerge from
Kevin P. Fleming [Sat, 15 Nov 2008 18:25:01 +0000 (18:25 +0000)]
Merged revisions 157104 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r157104 | kpfleming | 2008-11-15 19:00:32 +0100 (Sat, 15 Nov 2008) | 13 lines

  major update to doxygen configuration file:

  1) update to doxygen 1.5.x style file, as used in trunk

  2) tell doxygen where are header files are, so include-file processing can be done

  3) make all macros that are used to define variables/functions be expanded, so that doxygen will properly document the resulting variable/function

  4) make all macros that are used to provide the contents of a variable (structure) be expanded, so that doxygen will be able to document the resulting fields

  5) suppress compiler attributes (__attribute__(xxx)) from being seen by doxygen, so it will properly match up function definition and usage (for an example of th effect of this, look at the doxygen docs for ast_log() from before and afte this commit)
........

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

12 years agoAvoid a not needed cast, making code more readable.
Eliel C. Sardanons [Sat, 15 Nov 2008 15:37:11 +0000 (15:37 +0000)]
Avoid a not needed cast, making code more readable.

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

12 years agoFix a few more places where the case insensitive hash should be used since
Russell Bryant [Sat, 15 Nov 2008 04:25:57 +0000 (04:25 +0000)]
Fix a few more places where the case insensitive hash should be used since
the comparison is case insensitive.

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

12 years agoUse the new case insensitive hash function for console interfaces. The comparison
Russell Bryant [Sat, 15 Nov 2008 04:08:42 +0000 (04:08 +0000)]
Use the new case insensitive hash function for console interfaces.  The comparison
function is case insensitive.

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

12 years agoAllow setting static values in CDRs
Tilghman Lesher [Fri, 14 Nov 2008 22:36:30 +0000 (22:36 +0000)]
Allow setting static values in CDRs

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

12 years agoRevision 155513 of chan_sip.c in trunk inadvertently
Mark Michelson [Fri, 14 Nov 2008 21:19:58 +0000 (21:19 +0000)]
Revision 155513 of chan_sip.c in trunk inadvertently
removed a very important line to set the "len" field
for incoming SIP requests. The result was that all incoming
SIP messages appeared to be 0-length, meaning Asterisk
could do no meaningful processing of anything SIP-related

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

12 years agoCleanup whitespace issues
Terry Wilson [Fri, 14 Nov 2008 17:35:33 +0000 (17:35 +0000)]
Cleanup whitespace issues

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

12 years agoUse Mark's new ast_str_case_hash function instead of jumping through hoops to do...
Terry Wilson [Fri, 14 Nov 2008 17:29:05 +0000 (17:29 +0000)]
Use Mark's new ast_str_case_hash function instead of jumping through hoops to do insensitive case lookups

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

12 years agoPing is missing the standard double-newline after the event.
Tilghman Lesher [Fri, 14 Nov 2008 17:02:00 +0000 (17:02 +0000)]
Ping is missing the standard double-newline after the event.
(closes issue #13903)
 Reported by: kebl0155

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

12 years agoFix some refcounting in app_queue.c and change the
Mark Michelson [Fri, 14 Nov 2008 16:53:38 +0000 (16:53 +0000)]
Fix some refcounting in app_queue.c and change the
hashing used by app_queue.c to be case-insensitive.
This is accomplished by adding a new case-insensitive
hashing function.

This was necessary to prevent bad refcount errors
(and potential crashes) which would occur due to the
fact that queues were initially read from the config
file in a case-sensitive manner. Then, when a user
issued a CLI command or manager action, we allowed
for case-insensitive input and used that input to
directly try to find the queue in the hash table. The result
was either that we could not find a queue that was input or
worse, we would end up hashing to a completely bogus value
based on the input.

This commit resolves the problem presented in
issue #13703. However, that issue was reported against
1.6.0. Since this fix introduces a behavior change, I am
electing to not place this same fix in to the 1.6.0 or 1.6.1
branches, and instead will opt for a change which does not
change behavior.

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

12 years agoRemove some useless locking and make sure we hangup channels on a link when we get...
Matthew Fredrickson [Fri, 14 Nov 2008 16:34:33 +0000 (16:34 +0000)]
Remove some useless locking and make sure we hangup channels on a link when we get a GRS.

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

12 years agoMerged revisions 156816 via svnmerge from
Mark Michelson [Fri, 14 Nov 2008 15:20:03 +0000 (15:20 +0000)]
Merged revisions 156816 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156816 | mmichelson | 2008-11-14 09:18:59 -0600 (Fri, 14 Nov 2008) | 10 lines

If the prompt to reenter a voicemail password timed out, it
resulted in the password not being saved, even if the input matched
what you gave when first prompted to enter a new password. This is
because the return value of ast_readstring was checked, but not checked
properly.

This bug was discovered by Jared Smith during an Asterisk training course.
Thanks for reporting it!

........

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

12 years agoMerged revisions 156755 via svnmerge from
Tilghman Lesher [Fri, 14 Nov 2008 00:43:13 +0000 (00:43 +0000)]
Merged revisions 156755 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156755 | tilghman | 2008-11-13 18:41:37 -0600 (Thu, 13 Nov 2008) | 6 lines

  ast_waitfordigit() requires that the channel be up, for no good logical
  reason.  This prevents While/EndWhile from working within the "h"
  extension.
  Reported by: jgalarneau (for ABE C.2)
  Fixed by: me
........

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

12 years agoMerged revisions 156688 via svnmerge from
Tilghman Lesher [Thu, 13 Nov 2008 21:30:41 +0000 (21:30 +0000)]
Merged revisions 156688 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156688 | tilghman | 2008-11-13 15:24:00 -0600 (Thu, 13 Nov 2008) | 7 lines

  Provide more space for all the data which can appear in an originating
  channel name.
  (closes issue #13398)
   Reported by: bamby
   Patches:
         manager.c.diff uploaded by bamby (license 430)
........

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

12 years ago(closes issue #13891)
Jeff Peeler [Thu, 13 Nov 2008 19:17:50 +0000 (19:17 +0000)]
(closes issue #13891)
Reported by: smurfix

This reverts a change I made in 116297. At the time it seemed the change was required to solve an issue with attempting a transfer but then letting it timeout without dialing any digits. However, I didn't realize that having an empty extension was possible. I'm removing the immediate return that was added in pbx_find_extension if the extension is null.

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

12 years agoCommand offsets were not changed correctly when the command syntax for
Tilghman Lesher [Thu, 13 Nov 2008 19:10:28 +0000 (19:10 +0000)]
Command offsets were not changed correctly when the command syntax for
'pri set debug' was changed from 'pri debug'.

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

12 years agoKevin sent a note indicating that this change is
Mark Michelson [Thu, 13 Nov 2008 17:07:56 +0000 (17:07 +0000)]
Kevin sent a note indicating that this change is
not necessary, so I am reverting it

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

12 years agoIntroduce XML documentation for:
Eliel C. Sardanons [Thu, 13 Nov 2008 15:46:06 +0000 (15:46 +0000)]
Introduce XML documentation for:
  - MeetMe()
  - MeetMeCount()
  - MeetMeChannelAdmin()
  - MeetMeAdmin()
  - SLAStation()
  - SLATrunk()

- Add an attribute to optionlist 'hasparams' with the same functionality as the one
we have in <parameter> and <argument> (the DTD was updated)
- Fix a leak when getting an attribute while parsing an <optionlist>.

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

12 years agoFix a typo introduced when changing xmldoc_has_arguments() to xmldoc_has_inside()
Eliel C. Sardanons [Thu, 13 Nov 2008 13:53:13 +0000 (13:53 +0000)]
Fix a typo introduced when changing xmldoc_has_arguments() to xmldoc_has_inside()
we need to pass the name of the node that we are looking for.

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

12 years agoRemove trailing whitespaces
Eliel C. Sardanons [Thu, 13 Nov 2008 13:08:34 +0000 (13:08 +0000)]
Remove trailing whitespaces
using ':%s/\s\+$//' pointed by seanbright on #asterisk-dev

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

12 years agoUse the reviewboard:url SVN property so post-review will work without modification.
Sean Bright [Wed, 12 Nov 2008 23:13:42 +0000 (23:13 +0000)]
Use the reviewboard:url SVN property so post-review will work without modification.

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

12 years agoMerged revisions 156386 via svnmerge from
Tilghman Lesher [Wed, 12 Nov 2008 21:34:51 +0000 (21:34 +0000)]
Merged revisions 156386 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156386 | tilghman | 2008-11-12 15:18:57 -0600 (Wed, 12 Nov 2008) | 5 lines

  When using call limits under 1 second, infinite call lengths are allowed,
  instead.
  (closes issue #13851)
   Reported by: ruddy
........

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

12 years ago- Make alias->real_cmd point to the allocated space outside alias->alias.
Eliel C. Sardanons [Wed, 12 Nov 2008 20:27:40 +0000 (20:27 +0000)]
- Make alias->real_cmd point to the allocated space outside alias->alias.
- Register the aliased cli command (or we will not alias anything).
- Use ARRAY_LEN() when possible.

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

12 years agoMerged revisions 156297 via svnmerge from
Steve Murphy [Wed, 12 Nov 2008 19:47:29 +0000 (19:47 +0000)]
Merged revisions 156297 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156297 | murf | 2008-11-12 12:36:16 -0700 (Wed, 12 Nov 2008) | 18 lines

It turns out that the 0x0XX00 codes being returned for
N, X, and Z are off by one, as per conversation with
jsmith on #asterisk-dev;  he was teaching a class
and disconcerted that this published rule was not
being followed, with patterns _NXX, _[1-8]22 and
_[2-9]22... and NXX was winning, but [1-8] should
have been.

This change, tested on these 3 patterns now
picks the proper one.

However, this change may surprise users who
set up dialplans based on previous behavior,
which has been there for what, 2 and half
years or so now.

........

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

12 years agoFix a bug caused by using sizeof(pointer) instead of sizeof(the struct)
Russell Bryant [Wed, 12 Nov 2008 19:38:51 +0000 (19:38 +0000)]
Fix a bug caused by using sizeof(pointer) instead of sizeof(the struct)

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

12 years agoMerged revisions 156294 via svnmerge from
Tilghman Lesher [Wed, 12 Nov 2008 19:28:22 +0000 (19:28 +0000)]
Merged revisions 156294 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156294 | tilghman | 2008-11-12 13:26:45 -0600 (Wed, 12 Nov 2008) | 6 lines

  If the SLA thread is not started, then reload causes a memory leak.
  (closes issue #13889)
   Reported by: eliel
   Patches:
         app_meetme.c.patch uploaded by eliel (license 64)
........

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

12 years agoMerged revisions 156289 via svnmerge from
Jeff Peeler [Wed, 12 Nov 2008 19:11:15 +0000 (19:11 +0000)]
Merged revisions 156289 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156289 | jpeeler | 2008-11-12 13:10:12 -0600 (Wed, 12 Nov 2008) | 3 lines

For whatever reason, gcc only warned me about the possible use of an uninitialized variable when compiling 1.6.1.

........

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

12 years agoMerged revisions 156229 via svnmerge from
Tilghman Lesher [Wed, 12 Nov 2008 18:55:18 +0000 (18:55 +0000)]
Merged revisions 156229 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156229 | tilghman | 2008-11-12 12:39:21 -0600 (Wed, 12 Nov 2008) | 11 lines

  Revert revision 132506, since it occasionally caused IAX2 HANGUP packets not
  to be sent, and instead, schedule a task to destroy the iax2 pvt structure
  10 seconds later.  This allows the IAX2 HANGUP packet to be queued,
  transmitted, and ACKed before the pvt is destroyed.
  (closes issue #13645)
   Reported by: dzajro
   Patches:
         20081111__bug13645__3.diff.txt uploaded by Corydon76 (license 14)
   Tested by: vazir
   Reviewed: http://reviewboard.digium.com/r/51/
........

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

12 years agoMerged revisions 156178 via svnmerge from
Jeff Peeler [Wed, 12 Nov 2008 18:32:46 +0000 (18:32 +0000)]
Merged revisions 156178 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156178 | jpeeler | 2008-11-12 11:53:44 -0600 (Wed, 12 Nov 2008) | 8 lines

(closes issue #13173)
Reported by: pep

This change adds an announce_thread responsible for playing announcements to an existing conference. This allows all announcing to be immediately stopped if necessary but more importantly allows other threads that need to play something to not block. There are multiple benefits to this, but the actual bug is for solving the scenario for a channel to be unusable after hang up for the entire duration of the parting announcement. The parting announcement can be extremely long depending on what the user recorded upon joining the conference.

Reviewed by Russell on Review Board:
http://reviewboard.digium.com/r/25/

........

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

12 years agoMerged revisions 156167 via svnmerge from
Mark Michelson [Wed, 12 Nov 2008 17:41:56 +0000 (17:41 +0000)]
Merged revisions 156167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156167 | mmichelson | 2008-11-12 11:38:33 -0600 (Wed, 12 Nov 2008) | 7 lines

When doing some tests, I was having a crash at the end of every call
if an attended transfer occurred during the call. I traced the cause to
the CDR on one of the channels being NULL. murf suggested a check in
the end bridge callback to be sure the CDR is non-NULL before proceeding,
so that's what I'm adding.

........

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

12 years agoMerged revisions 156164 via svnmerge from
Russell Bryant [Wed, 12 Nov 2008 17:38:20 +0000 (17:38 +0000)]
Merged revisions 156164 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156164 | russell | 2008-11-12 11:29:52 -0600 (Wed, 12 Nov 2008) | 7 lines

Move the sanity check that makes sure "always fork" is not set along with the
console option to be after the code that reads options from asterisk.conf.
This resolves a situation where Asterisk can start taking up 100% when
misconfigured.
(Thanks to Bryce Porter (x86 on IRC) for letting me log in to his system to
 figure out what was causing the 100% CPU problem.)

........

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

12 years ago- The paramname is a pointer allocated with strdup() or malloc(), so,
Eliel C. Sardanons [Wed, 12 Nov 2008 17:28:02 +0000 (17:28 +0000)]
- The paramname is a pointer allocated with strdup() or malloc(), so,
we need to free it with ast_free().

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

12 years agoAdd a couple of AC_SUBST calls to the AST_C_COMPILE_CHECK
Mark Michelson [Wed, 12 Nov 2008 15:33:11 +0000 (15:33 +0000)]
Add a couple of AC_SUBST calls to the AST_C_COMPILE_CHECK
macro. These missing calls were discovered when working on
timerfd support in a separate branch.

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

12 years agoAdd XML documentation for AGI commands:
Eliel C. Sardanons [Wed, 12 Nov 2008 13:43:46 +0000 (13:43 +0000)]
Add XML documentation for AGI commands:
   - database deltree
   - database get
   - exec
   - get data
   - get full variable

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