asterisk/asterisk.git
11 years agoFix build WRT ast_str_opaque
Russell Bryant [Mon, 15 Dec 2008 14:40:08 +0000 (14:40 +0000)]
Fix build WRT ast_str_opaque

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

11 years agoDon't pass a negative to an unsigned type and expect things to work correctly.
Tilghman Lesher [Sun, 14 Dec 2008 18:16:28 +0000 (18:16 +0000)]
Don't pass a negative to an unsigned type and expect things to work correctly.

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

11 years agoUse a \picture instead of ASCII art.
Sean Bright [Sun, 14 Dec 2008 15:26:37 +0000 (15:26 +0000)]
Use a \picture instead of ASCII art.

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

11 years agoBlocked revisions 164082 via svnmerge
Tilghman Lesher [Sat, 13 Dec 2008 23:24:09 +0000 (23:24 +0000)]
Blocked revisions 164082 via svnmerge

........
  r164082 | tilghman | 2008-12-13 17:22:02 -0600 (Sat, 13 Dec 2008) | 9 lines

  Change the default calldurationlimit from the special value 0 to -1, so we
  can better detect an exceptional case.  This follows on to the changes made
  in revision 156386.  Related to issue #13851.
  (closes issue #13974)
   Reported by: paradise
   Patches:
         20081208__bug13974.diff.txt uploaded by Corydon76 (license 14)
   Tested by: file, blitzrage, ZX81
........

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

11 years agoUse ast_str_strlen() instead of recalculating the string length.
Sean Bright [Sat, 13 Dec 2008 18:25:58 +0000 (18:25 +0000)]
Use ast_str_strlen() instead of recalculating the string length.

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

11 years agonuke another use of the ast_str internals.
Michiel van Baak [Sat, 13 Dec 2008 13:26:13 +0000 (13:26 +0000)]
nuke another use of the ast_str internals.

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

11 years agoMerge ast_str_opaque branch (discontinue usage of ast_str internals)
Tilghman Lesher [Sat, 13 Dec 2008 08:36:35 +0000 (08:36 +0000)]
Merge ast_str_opaque branch (discontinue usage of ast_str internals)

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

11 years agoThis shouldn't have gotten commited. We might want to generate this into a separate...
Sean Bright [Sat, 13 Dec 2008 03:03:15 +0000 (03:03 +0000)]
This shouldn't have gotten commited.  We might want to generate this into a separate file instead of the version controlled one.

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

11 years agoUse actual tables instead of ASCII art ones.
Sean Bright [Sat, 13 Dec 2008 03:00:26 +0000 (03:00 +0000)]
Use actual tables instead of ASCII art ones.

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

11 years agoOnly detach and destroy the whisper audiohooks if they are actually in use.
Joshua Colp [Sat, 13 Dec 2008 00:59:24 +0000 (00:59 +0000)]
Only detach and destroy the whisper audiohooks if they are actually in use.

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

11 years agoWhen using realtime queues, app_queue wasn't updating the strategy if it was changed...
Terry Wilson [Fri, 12 Dec 2008 23:48:26 +0000 (23:48 +0000)]
When using realtime queues, app_queue wasn't updating the strategy if it was changed in the realtime backend.  This patch resolves the issue for almost all situations.  It is currently not supported to switch to the linear strategy via realtime since the ao2_container for members will have been set to have multiple buckets and therefore the members would be unordered.

(closes issue #14034)
Reported by: cristiandimache
Tested by: otherwiseguy, cristiandimache

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

11 years agoAdd a note to indicate why this only supports one channel for now.
Russell Bryant [Fri, 12 Dec 2008 23:06:55 +0000 (23:06 +0000)]
Add a note to indicate why this only supports one channel for now.

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

11 years agoBlocked revisions 163785 via svnmerge
Russell Bryant [Fri, 12 Dec 2008 22:23:18 +0000 (22:23 +0000)]
Blocked revisions 163785 via svnmerge

........
r163785 | russell | 2008-12-12 16:20:26 -0600 (Fri, 12 Dec 2008) | 2 lines

Set the reviewboard:url property on 1.4, as well

........

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

11 years agoMerged revisions 163761 via svnmerge from
Tilghman Lesher [Fri, 12 Dec 2008 22:04:26 +0000 (22:04 +0000)]
Merged revisions 163761 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r163761 | tilghman | 2008-12-12 16:03:10 -0600 (Fri, 12 Dec 2008) | 7 lines

  Simple fix for Ctrl-C not immediately exiting Asterisk, but also add a
  pointer inside editline to look back to asterisk.c, so others don't spend
  as much time as I did looking (in the wrong place) for the appropriate
  function.
  Reported by: ZX81, via the #asterisk-users channel
  Fixed by: me (license 14)
........

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

11 years agoAdd a new CLI command, "channel redirect", which is similar in operation
Russell Bryant [Fri, 12 Dec 2008 20:12:23 +0000 (20:12 +0000)]
Add a new CLI command, "channel redirect", which is similar in operation
to AMI Redirect.

Review: http://reviewboard.digium.com/r/89/

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

11 years agodemote always-appearing debug message (for certain boards) to ast_debug lev 3 msg...
Steve Murphy [Fri, 12 Dec 2008 19:16:32 +0000 (19:16 +0000)]
demote always-appearing debug message (for certain boards) to ast_debug lev 3 msg instead

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

11 years agoRename a number of tcptls_session variables. There are no functional changes here.
Russell Bryant [Fri, 12 Dec 2008 18:45:03 +0000 (18:45 +0000)]
Rename a number of tcptls_session variables.  There are no functional changes here.

The name "ser" was used in a lot of places.  However, it is a relic from when
the struct was a server_instance, not a session_instance.  It was renamed since
it represents both a server or client connection.

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

11 years agoFix a small race condition in sip_tcp_locate().
Russell Bryant [Fri, 12 Dec 2008 18:33:27 +0000 (18:33 +0000)]
Fix a small race condition in sip_tcp_locate().

We must increase the reference count on the tcptls_session _before_ unlocking
the thread list.

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

11 years agoResolve crashes when using SIP TCP/TLS with qualify.
Russell Bryant [Fri, 12 Dec 2008 18:19:47 +0000 (18:19 +0000)]
Resolve crashes when using SIP TCP/TLS with qualify.

The problem was a reference count error on the tcptls_session structure.

(closes issue #13989)
Reported by: Nugget

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

11 years agoWhen a device registers we need to unlink them (if linked) from the peers_by_ip conta...
Joshua Colp [Fri, 12 Dec 2008 18:17:12 +0000 (18:17 +0000)]
When a device registers we need to unlink them (if linked) from the peers_by_ip container and link them back in since their IP address has changed. This would have manifested itself if you configured a new device (as type=peer), registered, and then tried to place a call from the device. Since the peer was not linked into the peers_by_ip container it would have never been found.
(closes issue #13811)
Reported by: pj

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

11 years agoDocument default Monitor file location.
Michiel van Baak [Fri, 12 Dec 2008 17:22:47 +0000 (17:22 +0000)]
Document default Monitor file location.

(closes issue #14065)
Reported by: kshumard
Patches:
      res_monitor.documentation.patch.txt uploaded by kshumard (license 92)

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

11 years agoFix codec capability setup in chan_skinny
Michiel van Baak [Fri, 12 Dec 2008 17:14:13 +0000 (17:14 +0000)]
Fix codec capability setup in chan_skinny

Behaviour now is that general codec config flows to default_line and default_device. [devices] stuff amends default_device and similar for [lines]. These are copied to individual device and line as they are created.
Added confcapability and confprefs for the configured stuff which doesn't change as device and so on are connected. prefs are based on line prefs if they exist, else the device prefs are used (prefs identifies codec order).

(closes issue #13806)
Reported by: pj
Patches:
      codecs.diff uploaded by wedhorn (license 30)
Tested by: pj and me

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

11 years agoSince chan_sip is callback devicestate driven do not pass in actual states, pass...
Joshua Colp [Fri, 12 Dec 2008 16:55:15 +0000 (16:55 +0000)]
Since chan_sip is callback devicestate driven do not pass in actual states, pass in unknown so we get asked. Additionally do not pass in an actual device state value in ast_setstate since the channel may be callback driven.
(closes issue #13525)
Reported by: pj

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

11 years agoAdd internationalization to sample configuration file
Doug Bailey [Fri, 12 Dec 2008 15:10:25 +0000 (15:10 +0000)]
Add internationalization to sample configuration file

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

11 years agoMerged revisions 163511 via svnmerge from
Russell Bryant [Fri, 12 Dec 2008 14:44:06 +0000 (14:44 +0000)]
Merged revisions 163511 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r163511 | russell | 2008-12-12 08:40:31 -0600 (Fri, 12 Dec 2008) | 5 lines

Specify uint32_t for variables storing a CRC32 so that it is actually 32 bits
on 64-bit machines, as well.

(inspired by issue #13879)

........

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

11 years agoMerged revisions 163448 via svnmerge from
Russell Bryant [Fri, 12 Dec 2008 13:55:30 +0000 (13:55 +0000)]
Merged revisions 163448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r163448 | russell | 2008-12-12 07:44:08 -0600 (Fri, 12 Dec 2008) | 26 lines

Resolve issues that could cause DTMF to be processed out of order.

These changes come from team/russell/issue_12658

1) Change autoservice to put digits on the head of the channel's frame readq
   instead of the tail.  If there were frames on the readq that autoservice
   had not yet read, the previous code would have resulted in out of order
   processing.  This required a new API call to queue a frame to the head
   of the queue instead of the tail.

2) Change up the processing of DTMF in ast_read().  Some of the problems
   were the result of having two sources of pending DTMF frames.  There
   was the dtmfq and the more generic readq.  Both were used for pending
   DTMF in various scenarios.  Simplifying things to only use the frame
   readq avoids some of the problems.

3) Fix a bug where a DTMF END frame could get passed through when it
   shouldn't have.  If code set END_DTMF_ONLY in the middle of digit emulation,
   and a digit arrived before emulation was complete, digits would get
   processed out of order.

(closes issue #12658)
Reported by: dimas
Tested by: russell, file
Review: http://reviewboard.digium.com/r/85/

........

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

11 years agoMerged revisions 163383 via svnmerge from
Tilghman Lesher [Thu, 11 Dec 2008 23:38:56 +0000 (23:38 +0000)]
Merged revisions 163383 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r163383 | tilghman | 2008-12-11 17:35:55 -0600 (Thu, 11 Dec 2008) | 9 lines

  When a Ctrl-C or Ctrl-D ends a remote console, on certain shells, the terminal
  is messed up.  By intercepting those events with a signal handler in the remote
  console, we can avoid those issues.
  (closes issue #13464)
   Reported by: tzafrir
   Patches:
         20081110__bug13464.diff.txt uploaded by Corydon76 (license 14)
   Tested by: blitzrage
........

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

11 years agoMerged revisions 163316 via svnmerge from
Matthew Nicholson [Thu, 11 Dec 2008 22:49:59 +0000 (22:49 +0000)]
Merged revisions 163316 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r163316 | mnicholson | 2008-12-11 16:44:31 -0600 (Thu, 11 Dec 2008) | 9 lines

  Clean up the dundi cache every 5 minutes.

  (closes issue #13819)
  Reported by: adomjan
  Patches:
        pbx_dundi.c-clearcache.patch uploaded by adomjan (license 487)
        dundi_clearecache3.diff uploaded by mnicholson (license 96)
  Tested by: adomjan
........

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

11 years agoMerged revisions 163253 via svnmerge from
Russell Bryant [Thu, 11 Dec 2008 21:48:08 +0000 (21:48 +0000)]
Merged revisions 163253 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r163253 | russell | 2008-12-11 15:46:29 -0600 (Thu, 11 Dec 2008) | 8 lines

Fix some observed slowdowns in dialplan processing.

The change is to remove autoservice usage from dialplan functions that do not
need it because they do not perform operations that potentially block.

(closes issue #13940)
Reported by: tbelder

........

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

11 years agoFix a problem where continuous mode will get inadvertently get turned off if set_rate()
Russell Bryant [Thu, 11 Dec 2008 21:21:31 +0000 (21:21 +0000)]
Fix a problem where continuous mode will get inadvertently get turned off if set_rate()
is used while continuous mode was already turned on.

(closes issue #13738)
Reported by: smurfix
Patches:
      res.patch.fixed uploaded by smurfix (license 547)

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

11 years agoAdd an option to voicemail.conf to allow urgent messages to be
Mark Michelson [Thu, 11 Dec 2008 20:57:44 +0000 (20:57 +0000)]
Add an option to voicemail.conf to allow urgent messages to be
forwarded as not urgent.

(closes issue #14063)
Reported by: jaroth
Patches:
      urgfwd_v2.patch uploaded by jaroth (license 50)

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

11 years agoAdd an appropriate goto if ast_call fails
Mark Michelson [Thu, 11 Dec 2008 20:21:44 +0000 (20:21 +0000)]
Add an appropriate goto if ast_call fails

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

11 years agoFix the "failed" extension for outgoing calls.
Russell Bryant [Thu, 11 Dec 2008 20:07:47 +0000 (20:07 +0000)]
Fix the "failed" extension for outgoing calls.

The conversion to use ast_check_hangup() everywhere instead of checking the softhangup
flag directly introduced this problem.  The issue is that ast_check_hangup() checked
for tech_pvt to be NULL.  Unfortunately, this will be NULL is some valid circumstances,
such as with a dummy channel.

The fix is simple.  Don't check tech_pvt.  It's pointless, because the code path that
sets this to NULL is when the channel hangup callback gets called.  This happens inside
of ast_hangup(), which is the same function responsible for freeing the channel.  Any
code calling ast_check_hangup() better not be calling it after that point, and if so,
we have a bigger problem at hand.

(closes issue #14035)
Reported by: erogoza

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

11 years agoSometimes even Linux needs -lm to link libtonezone, such as when libtonezone
Tilghman Lesher [Thu, 11 Dec 2008 20:02:35 +0000 (20:02 +0000)]
Sometimes even Linux needs -lm to link libtonezone, such as when libtonezone
is compiled statically.
(closes issue #13887)
 Reported by: tzafrir

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

11 years agoReduce indentation level of ast_feature_request_and_dial
Mark Michelson [Thu, 11 Dec 2008 19:40:18 +0000 (19:40 +0000)]
Reduce indentation level of ast_feature_request_and_dial

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

11 years agoMerged revisions 163092 via svnmerge from
Russell Bryant [Thu, 11 Dec 2008 17:06:16 +0000 (17:06 +0000)]
Merged revisions 163092 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r163092 | russell | 2008-12-11 10:54:51 -0600 (Thu, 11 Dec 2008) | 11 lines

Fix an issue that made it so you could only have a single caller executing
a custom feature at a time.  This was especially problematic when custom
features ran for any appreciable amount of time.

The fix turned out to be quite simple.  The dynamic features are now stored
in a read/write list instead of a list using a mutex.

(closes issue #13478)
Reported by: neutrino88
Fix suggested by file

........

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

11 years agoMerged revisions 163088 via svnmerge from
Tilghman Lesher [Thu, 11 Dec 2008 16:52:24 +0000 (16:52 +0000)]
Merged revisions 163088 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r163088 | tilghman | 2008-12-11 10:51:27 -0600 (Thu, 11 Dec 2008) | 6 lines

  Don't wait forever, if there's a specified recording timeout.
  (closes issue #13885)
   Reported by: bamby
   Patches:
         res_agi.c.patch uploaded by bamby (license 430)
........

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

11 years agoMerged revisions 163084 via svnmerge from
Mark Michelson [Thu, 11 Dec 2008 16:47:34 +0000 (16:47 +0000)]
Merged revisions 163084 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r163084 | mmichelson | 2008-12-11 10:46:22 -0600 (Thu, 11 Dec 2008) | 4 lines

Revert this cast to long. Using time_t here causes build failures on a
FreeBSD 32-bit build.

........

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

11 years agoMerged revisions 163080 via svnmerge from
Mark Michelson [Thu, 11 Dec 2008 16:33:16 +0000 (16:33 +0000)]
Merged revisions 163080 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r163080 | mmichelson | 2008-12-11 10:24:43 -0600 (Thu, 11 Dec 2008) | 14 lines

Fix a potential crash due to unsafe datastore handling.

This patch also contains a conversion from using long to time_t
for representing times for a queue, as well as some whitespace
fixes.

(closes issue #14060)
Reported by: nivek
Patches:
      datastore_fixup.patch.corrected uploaded by nivek (license 636)
  with slight modification from me
Tested by: nivek

........

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

11 years agoFix some of the grammar issues in doc/tex/qos.tex.
Sean Bright [Thu, 11 Dec 2008 15:40:07 +0000 (15:40 +0000)]
Fix some of the grammar issues in doc/tex/qos.tex.

(closes issue #14049)
Reported by: kshumard
Patches:
      doc.tex.qos.tex.patch uploaded by kshumard (license 92)
      (Slight modifications by seanbright)

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

11 years agoWhen a device registers to use it is entirely possible that they may be in use, so...
Joshua Colp [Thu, 11 Dec 2008 15:05:49 +0000 (15:05 +0000)]
When a device registers to use it is entirely possible that they may be in use, so tell the core that we don't know the devstate and have it ask us for it.
(closes issue #13525)
Reported by: pj

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

11 years agoPreviously missing line, now the substitution works correctly
Tilghman Lesher [Wed, 10 Dec 2008 23:01:14 +0000 (23:01 +0000)]
Previously missing line, now the substitution works correctly

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

11 years agoMerged revisions 162926 via svnmerge from
Jeff Peeler [Wed, 10 Dec 2008 22:53:34 +0000 (22:53 +0000)]
Merged revisions 162926 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162926 | jpeeler | 2008-12-10 16:52:51 -0600 (Wed, 10 Dec 2008) | 3 lines

Oops, inverted logic for a strcasecmp check. Pointed out by mmichelson, thanks!

........

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

11 years agoFix reloads of aliased CLI commands. Due to changes done to turn it into a single...
Joshua Colp [Wed, 10 Dec 2008 22:48:58 +0000 (22:48 +0000)]
Fix reloads of aliased CLI commands. Due to changes done to turn it into a single memory allocation we can't just use the existing CLI alias structure. We have to destroy all existing ones and then create new ones.
(closes issue #14054)
Reported by: pj

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

11 years agoChecking global variables here actually overwrote the previous substitution by
Tilghman Lesher [Wed, 10 Dec 2008 22:48:09 +0000 (22:48 +0000)]
Checking global variables here actually overwrote the previous substitution by
channel variables, and in any case, was redundant;
pbx_substitute_variables_helper ALREADY does substitution for global
variables.
(closes issue #13327)
 Reported by: pj

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

11 years agoMerged revisions 162874 via svnmerge from
Jeff Peeler [Wed, 10 Dec 2008 22:11:46 +0000 (22:11 +0000)]
Merged revisions 162874 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162874 | jpeeler | 2008-12-10 16:04:18 -0600 (Wed, 10 Dec 2008) | 5 lines

(closes issue #13229)
Reported by: clegall_proformatique

Ensure that moh_generate does not return prematurely before local_ast_moh_stop is called. Also, the sleep in mp3_spawn now only occurs for http locations since it seems to have been added originally only for failing media streams.

........

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

11 years agoMerged revisions 162804 via svnmerge from
Joshua Colp [Wed, 10 Dec 2008 19:02:57 +0000 (19:02 +0000)]
Merged revisions 162804 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162804 | file | 2008-12-10 15:01:17 -0400 (Wed, 10 Dec 2008) | 6 lines

  Fix subscription based MWI up a bit. We only want to put sip: at the beginning of the URI if it is not already there and revert code to ignore destination check if subscribing for MWI.
  (closes issue #12560)
  Reported by: vsauer
  Patches:
        patch001.diff uploaded by ramonpeek (license 266)
........

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

11 years agoMerged revisions 162738 via svnmerge from
Joshua Colp [Wed, 10 Dec 2008 17:53:09 +0000 (17:53 +0000)]
Merged revisions 162738 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162738 | file | 2008-12-10 13:50:43 -0400 (Wed, 10 Dec 2008) | 6 lines

  When a SIP peer unregisters set the expiry time back to 0 so that the 200 OK contains an expires of 0.
  (closes issue #13599)
  Reported by: hjourdain
  Patches:
        chan_sip.c.diff uploaded by hjourdain (license 583)
........

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

11 years agoadd tab completion for 'core set debug X filename.c'
Michiel van Baak [Wed, 10 Dec 2008 17:09:15 +0000 (17:09 +0000)]
add tab completion for 'core set debug X filename.c'

(closes issue #13969)
Reported by: jtodd
Patches:
      20081205__bug13969.diff.txt uploaded by Corydon76 (license 14)
Tested by: mvanbaak, eliel

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

11 years agoBlocked revisions 162671 via svnmerge
Steve Murphy [Wed, 10 Dec 2008 16:52:05 +0000 (16:52 +0000)]
Blocked revisions 162671 via svnmerge

........
r162671 | murf | 2008-12-10 09:45:01 -0700 (Wed, 10 Dec 2008) | 22 lines

(closes issue #14022)
Reported by: wetwired
Tested by: murf

I checked, and I added a mod to the trunk version
of Asterisk that would make it 8-bit transparent
on 27 Nov 2007, but I made no such updates to
1.4. My best guess is that 1.4 was released, and
it was not appropriate to commit an enhancement.

But I'm going to add the same fixes to 1.4 now,
for the following reasons:
1. wetwired is correct; 1.4 is **mostly** 8-bit
   transparent now. This is because the lexical
   token forming rules use . in most 'word'
   state continuances.  It's just the beginning
   of a 'word' that is picky.
2. Accepting 8-bit chars in some places and
   not others leads to bug reports like this.

........

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

11 years agoBlocked revisions 162670 via svnmerge
Mark Michelson [Wed, 10 Dec 2008 16:46:51 +0000 (16:46 +0000)]
Blocked revisions 162670 via svnmerge

........
r162670 | mmichelson | 2008-12-10 10:44:37 -0600 (Wed, 10 Dec 2008) | 14 lines

Update to stringfield handling so that side-effects on
parameters are not evaluated multiple times.

An example where this caused a problem was in chan_sip.c, with
the line

  ast_string_field_set(p, fromdomain, ++fromdomain);

This patch was originally uploaded to issue #13783 by
jamessan. While the issue was closed for other reasons, this
patch is valid and fixes a separate problem, and is thus
being committed.

........

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

11 years agoMerged revisions 162659 via svnmerge from
Mark Michelson [Wed, 10 Dec 2008 16:39:10 +0000 (16:39 +0000)]
Merged revisions 162659 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162659 | mmichelson | 2008-12-10 10:10:25 -0600 (Wed, 10 Dec 2008) | 8 lines

Add missing documentation to misdn.txt

(closes issue #14052)
Reported by: festr
Patches:
      misdn.txt.patch uploaded by festr (license 443)

........

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

11 years agoMerged revisions 162663 via svnmerge from
Mark Michelson [Wed, 10 Dec 2008 16:34:35 +0000 (16:34 +0000)]
Merged revisions 162663 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162663 | mmichelson | 2008-12-10 10:24:56 -0600 (Wed, 10 Dec 2008) | 11 lines

Revert fix for issue 13570. It has caused more problems than
it helped to fix.

(closes issue #13783)
Reported by: navkumar

(closes issue #14025)
Reported by: ffs

........

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

11 years agoFreeBSD also needs libgen.h
Joshua Colp [Wed, 10 Dec 2008 16:11:06 +0000 (16:11 +0000)]
FreeBSD also needs libgen.h
(closes issue #14051)
Reported by: ys
Patches:
      res_http_post.c.diff uploaded by ys (license 281)

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

11 years agoMerged revisions 162653 via svnmerge from
Joshua Colp [Wed, 10 Dec 2008 16:06:59 +0000 (16:06 +0000)]
Merged revisions 162653 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162653 | file | 2008-12-10 12:05:29 -0400 (Wed, 10 Dec 2008) | 6 lines

  Increment the sequence number on the end packets for RFC2833. After reading the RFC some more and doing some testing I agree with this change.
  (closes issue #12983)
  Reported by: vt
  Patches:
        dtmf_inc_seqnum_on_end_pkts.diff uploaded by vt (license 520)
........

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

11 years agoWhen transmitting a register set the socket port to the local one for the transport...
Joshua Colp [Wed, 10 Dec 2008 15:22:26 +0000 (15:22 +0000)]
When transmitting a register set the socket port to the local one for the transport being used, not the port for the remote server.
(closes issue #13633)
Reported by: performer

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

11 years agoMake res_snmp.so compile on OpenBSD.
Michiel van Baak [Wed, 10 Dec 2008 11:34:09 +0000 (11:34 +0000)]
Make res_snmp.so compile on OpenBSD.

OpenBSD uses an old version of gcc which throws an error
if you use a macro that's not #defined

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

11 years agoFinish conversion to using ARRAY_LEN and remove it as a janitor project.
Joshua Colp [Wed, 10 Dec 2008 01:09:06 +0000 (01:09 +0000)]
Finish conversion to using ARRAY_LEN and remove it as a janitor project.
(closes issue #14032)
Reported by: bkruse
Patches:
      14032.patch uploaded by bkruse (license 132)

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

11 years agoit does help if the compiler attribute syntax is correct
Kevin P. Fleming [Tue, 9 Dec 2008 23:41:02 +0000 (23:41 +0000)]
it does help if the compiler attribute syntax is correct

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

11 years agoMerged revisions 162463 via svnmerge from
Tilghman Lesher [Tue, 9 Dec 2008 23:10:34 +0000 (23:10 +0000)]
Merged revisions 162463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162463 | tilghman | 2008-12-09 17:08:53 -0600 (Tue, 09 Dec 2008) | 2 lines

  Oops, should be "tz", not "zonetag".
........

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

11 years agoAdd some additional Asterisk project developer documentation.
Russell Bryant [Tue, 9 Dec 2008 22:38:41 +0000 (22:38 +0000)]
Add some additional Asterisk project developer documentation.

After the nightly update of the documentation on asterisk.org, I'll post
an update to asterisk-dev with a pointer to the changes.  This covers some
release branch and commit policy information.  None of this should be a
surprise, since it's just documenting what we have already been doing.

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

11 years agoMerged revisions 162413 via svnmerge from
Russell Bryant [Tue, 9 Dec 2008 22:25:06 +0000 (22:25 +0000)]
Merged revisions 162413 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162413 | russell | 2008-12-09 16:17:39 -0600 (Tue, 09 Dec 2008) | 8 lines

Remove the test_for_thread_safety() function completely.

The test is not valid.  Besides, if we actually suspected that recursive
mutexes were not working, we would get a ton of LOG_ERROR messages when
DEBUG_THREADS is turned on.

(inspired by a discussion on the asterisk-dev list)

........

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

11 years agoMerged revisions 162348 via svnmerge from
Tilghman Lesher [Tue, 9 Dec 2008 21:57:09 +0000 (21:57 +0000)]
Merged revisions 162348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162348 | tilghman | 2008-12-09 15:53:25 -0600 (Tue, 09 Dec 2008) | 4 lines

  We appear to have documented tz= in the [general] section of voicemail.conf,
  without actually having implemented it.  Oops.
  (Reported by Olivier on the -users list)
........

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

11 years agoMerged revisions 162341 via svnmerge from
Joshua Colp [Tue, 9 Dec 2008 21:16:37 +0000 (21:16 +0000)]
Merged revisions 162341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162341 | file | 2008-12-09 17:14:29 -0400 (Tue, 09 Dec 2008) | 4 lines

  Add 'down' as a valid state for directed call pickup. This creeps up when we receive session progress when dialing a device and not ringing.
  (closes issue #14005)
  Reported by: ddl
........

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

11 years agoMerged revisions 162286 via svnmerge from
Russell Bryant [Tue, 9 Dec 2008 20:59:54 +0000 (20:59 +0000)]
Merged revisions 162286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162286 | russell | 2008-12-09 14:57:35 -0600 (Tue, 09 Dec 2008) | 9 lines

Fix an issue where callers on an incoming call on an SLA trunk would not hear ringback.

We need to make sure that we don't start writing audio to the trunk channel until we're
actually ready to answer it.  Otherwise, the channel driver will treat it as inband
progress, even though all they are getting is silence.

(closes issue #12471)
Reported by: mthomasslo

........

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

11 years agoMerged revisions 162273 via svnmerge from
Joshua Colp [Tue, 9 Dec 2008 20:46:11 +0000 (20:46 +0000)]
Merged revisions 162273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162273 | file | 2008-12-09 16:44:32 -0400 (Tue, 09 Dec 2008) | 4 lines

  Fix double declaration of 'x' on the PPC platform.
  (closes issue #14038)
  Reported by: ffloimair
........

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

11 years agoMerged revisions 162264 via svnmerge from
Steve Murphy [Tue, 9 Dec 2008 20:40:31 +0000 (20:40 +0000)]
Merged revisions 162264 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162264 | murf | 2008-12-09 13:20:54 -0700 (Tue, 09 Dec 2008) | 1 line

In discussion with seanbright on #asterisk-dev,  I have added a default rule, and an option to suppress the default rule from being generated in the flex output, for the sake of those OS's where they didn't tweak flex's ECHO macro, and the compiler doesn't like it. The regressions are OK with this.
........

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

11 years agoMerged revisions 162265 via svnmerge from
Mark Michelson [Tue, 9 Dec 2008 20:30:07 +0000 (20:30 +0000)]
Merged revisions 162265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162265 | mmichelson | 2008-12-09 14:28:44 -0600 (Tue, 09 Dec 2008) | 6 lines

If we fail to start a thread for the pbx to run in, we need to
be sure to decrease the number of active calls on the system.

This fix may relate to ABE-1713, but it is not certain yet.

........

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

11 years agoMerged revisions 162204 via svnmerge from
Joshua Colp [Tue, 9 Dec 2008 19:48:35 +0000 (19:48 +0000)]
Merged revisions 162204 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162204 | file | 2008-12-09 15:47:07 -0400 (Tue, 09 Dec 2008) | 7 lines

  Make sure that the timestamp for DTMF is not the same as the previous voice frame and do not send audio when transmitting DTMF as this confuses some equipment.
  (closes issue #13209)
  Reported by: ip-rob
  Patches:
        13209.diff uploaded by file (license 11)
  Tested by: ip-rob, bujones
........

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

11 years agoBlocked revisions 162071 via svnmerge
Tilghman Lesher [Tue, 9 Dec 2008 19:26:08 +0000 (19:26 +0000)]
Blocked revisions 162071 via svnmerge

........
  r162071 | tilghman | 2008-12-09 11:07:50 -0600 (Tue, 09 Dec 2008) | 3 lines

  For some reason, after a distclean, gcc started returning
  'value computed is not used'.  Fixing (for --enable-dev-mode).
........

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

11 years agoMerged revisions 162188 via svnmerge from
Joshua Colp [Tue, 9 Dec 2008 19:08:39 +0000 (19:08 +0000)]
Merged revisions 162188 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r162188 | file | 2008-12-09 15:06:14 -0400 (Tue, 09 Dec 2008) | 4 lines

  Take video into account when early bridging RTP.
  (closes issue #13535)
  Reported by: davidw
........

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

11 years agoMerged revisions 162136 via svnmerge from
Steve Murphy [Tue, 9 Dec 2008 18:35:35 +0000 (18:35 +0000)]
Merged revisions 162136 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162136 | murf | 2008-12-09 11:13:39 -0700 (Tue, 09 Dec 2008) | 1 line

Previous fix used ast_malloc and ast_copy_string and messed up the standalone stuff. Fixed.
........

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

11 years agoMerged revisions 162013 via svnmerge from
Steve Murphy [Tue, 9 Dec 2008 17:18:03 +0000 (17:18 +0000)]
Merged revisions 162013 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162013 | murf | 2008-12-09 09:31:55 -0700 (Tue, 09 Dec 2008) | 45 lines

(closes issue #14019)
Reported by: ckjohnsonme
Patches:
      14019.diff uploaded by murf (license 17)
Tested by: ckjohnsonme, murf

This crash was the result of a few small errors that
would combine in 64-bit land to result in a crash.

32-bit land might have seen these combine to mysteriously
drop the args to an application call, in certain
circumstances.

Also, in trying to find this bug, I spotted
a situation in the flex input, where, in passing
back a 'word' to the parser, it would allocate
a buffer larger than necessary. I changed the
usage in such situations, so that strdup was
not used, but rather, an ast_malloc, followed
by ast_copy_string.

I removed a field from the pval struct, in
u2, that was never getting used, and set in
one spot in the code. I believe it was an
artifact of a previous fix to make switch
cases work invisibly with extens.

And, for goto's I removed a '!' from
before a strcmp, that has been there
since the initial merging of AEL2, that
might prevent the proper target of a
goto from being found. This was pretty
harmless on its own, as it would just
louse up a consistency check for users.

Many thanks to ckjohnsonme for providing
a simplified and complete set of information
about the bug, that helped considerably in
finding and fixing the problem.

Now, to get aelparse up and running again
in trunk, and out of its "horribly broken" state,
so I can run the regression suite!

........

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

11 years agoMerged revisions 162014 via svnmerge from
Russell Bryant [Tue, 9 Dec 2008 16:47:39 +0000 (16:47 +0000)]
Merged revisions 162014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162014 | russell | 2008-12-09 10:46:53 -0600 (Tue, 09 Dec 2008) | 5 lines

Allow DISA to handle extensions that start with #.

(closes issue #13330)
Reported by: jcovert

........

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

11 years agoMerged revisions 161948 via svnmerge from
Russell Bryant [Tue, 9 Dec 2008 14:57:39 +0000 (14:57 +0000)]
Merged revisions 161948 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r161948 | russell | 2008-12-09 08:52:25 -0600 (Tue, 09 Dec 2008) | 15 lines

Fix a problem with GROUP() settings on a masquerade.

The previous code carried over group settings from the old channel to the new
one.  However, it did nothing with the group settings that were already on the
new channel.  This patch removes all group settings that already existed on the
new channel.

I have a more complicated version of this patch which addresses only the most
blatant problem with this, which is that a channel can end up with multiple
group settings in the same category.  However, I could not think of a use case
for keeping any of the group settings from the old channel, so I went this route
for now.

(closes AST-152)

........

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

11 years agoAvoid allocating memory for a thread that don't need it. Also, this memory was not...
Eliel C. Sardanons [Tue, 9 Dec 2008 14:49:30 +0000 (14:49 +0000)]
Avoid allocating memory for a thread that don't need it. Also, this memory was not being freed until the
main thread ends. (That is never).

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

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

11 years agoNote that the recently changed waittime parameter is in milliseconds.
Brandon Kruse [Mon, 8 Dec 2008 23:04:49 +0000 (23:04 +0000)]
Note that the recently changed waittime parameter is in milliseconds.

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

11 years agoAdd alw as a valid file extension for alaw and ulw as a valid file extension for...
Joshua Colp [Mon, 8 Dec 2008 21:41:50 +0000 (21:41 +0000)]
Add alw as a valid file extension for alaw and ulw as a valid file extension for ulaw.
(closes issue #14001)
Reported by: henrikw
Patches:
      alw.diff uploaded by henrikw (license 627)

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

11 years agoUpdate autosupport script with a few changes.
Joshua Colp [Mon, 8 Dec 2008 20:53:50 +0000 (20:53 +0000)]
Update autosupport script with a few changes.

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

11 years agoAllocate enough space initially for the message.
Tilghman Lesher [Mon, 8 Dec 2008 18:49:50 +0000 (18:49 +0000)]
Allocate enough space initially for the message.
(closes issue #14027)
 Reported by: junky
 Patches:
       M14027.diff uploaded by junky (license 177)

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

11 years agoFix a regression introduced when the PBX timeouts were converted to milliseconds...
Joshua Colp [Mon, 8 Dec 2008 18:47:32 +0000 (18:47 +0000)]
Fix a regression introduced when the PBX timeouts were converted to milliseconds. collect_digits now gets milliseconds fed to it, not seconds.
(closes issue #14012)
Reported by: dveiga
Patches:
      14012.patch uploaded by bkruse (license 132)

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

11 years agoMerged revisions 161725 via svnmerge from
Joshua Colp [Mon, 8 Dec 2008 17:53:32 +0000 (17:53 +0000)]
Merged revisions 161725 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r161725 | file | 2008-12-08 13:52:10 -0400 (Mon, 08 Dec 2008) | 6 lines

  Make the usereqphone option work again.
  (closes issue #13474)
  Reported by: mmaguire
  Patches:
        20080912_bug13474.diff uploaded by mmaguire (license 571)
........

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

11 years agoFix a crash that can occur on a transfer in chan_sip when attempting to collect
Matthew Nicholson [Mon, 8 Dec 2008 17:23:41 +0000 (17:23 +0000)]
Fix a crash that can occur on a transfer in chan_sip when attempting to collect
rtp stats.

(closes issue #13956)
Reported by: chris-mac
Tested by: chris-mac

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

11 years agoAdd the ability to play a courtesy tone to the transfer target in a native SIP attend...
Terry Wilson [Mon, 8 Dec 2008 16:02:42 +0000 (16:02 +0000)]
Add the ability to play a courtesy tone to the transfer target in a native SIP attended transfer by setting the variable ATTENEDED_TRANSFER_COMPLETE_SOUND.

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

11 years ago- Fix a leak while printing an argument description.
Eliel C. Sardanons [Mon, 8 Dec 2008 04:23:50 +0000 (04:23 +0000)]
- Fix a leak while printing an argument description.
- Avoid printing the name of an argument in the [Arguments] tag if there is no description
  for that argument.

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

11 years agoAdd voicemail related applications and functions XML documentation:
Eliel C. Sardanons [Mon, 8 Dec 2008 03:35:55 +0000 (03:35 +0000)]
Add voicemail related applications and functions XML documentation:
    applications:
      - VoiceMail()
      - VoiceMailMain()
      - MailboxExists()
      - VMAuthenticate()
    functions:
      - MAILBOX_EXISTS()

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

11 years agoIntroduce SMS() application XML documentation.
Eliel C. Sardanons [Sun, 7 Dec 2008 22:43:46 +0000 (22:43 +0000)]
Introduce SMS() application XML documentation.

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

11 years agoMove Speech* applications and functions documentation to XML.
Eliel C. Sardanons [Sat, 6 Dec 2008 21:18:51 +0000 (21:18 +0000)]
Move Speech* applications and functions documentation to XML.

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

11 years agoIf the autoloop flag is set on a channel, then we need to
Mark Michelson [Fri, 5 Dec 2008 23:24:38 +0000 (23:24 +0000)]
If the autoloop flag is set on a channel, then we need to
add 1 to the priority when checking if the extension exists. Otherwise,
gosubs will fail.

This was discovered when investigating an asterisk-users mailing list post
made by Gary Hawkins.

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

11 years agoMerged revisions 161426 via svnmerge from
Sean Bright [Fri, 5 Dec 2008 21:08:43 +0000 (21:08 +0000)]
Merged revisions 161426 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r161426 | seanbright | 2008-12-05 16:02:20 -0500 (Fri, 05 Dec 2008) | 15 lines

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

  ........
    r161421 | seanbright | 2008-12-05 15:50:23 -0500 (Fri, 05 Dec 2008) | 8 lines

    Fix build errors on FreeBSD (uint -> unsigned int).

    (closes issue #14006)
    Reported by: alphaque
    Patches:
          astobj2.h-patch uploaded by alphaque (license 259)
          (Slightly modified by seanbright)
  ........
................

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

11 years agoUse ast_free() instead of free(), pointed out by eliel on IRC.
Sean Bright [Fri, 5 Dec 2008 16:04:36 +0000 (16:04 +0000)]
Use ast_free() instead of free(), pointed out by eliel on IRC.

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

11 years agoWhen using IMAP_STORAGE, it's important to convert bare newlines (\n) in
Sean Bright [Fri, 5 Dec 2008 15:56:15 +0000 (15:56 +0000)]
When using IMAP_STORAGE, it's important to convert bare newlines (\n) in
emailbody and pagerbody to CR-LF so that the IMAP server doesn't spit out an
error.  This was informally reported on #asterisk-dev a few weeks ago.  Reviewed
by Mark M. on IRC.

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

11 years agoMerged revisions 161287 via svnmerge from
Russell Bryant [Fri, 5 Dec 2008 14:16:24 +0000 (14:16 +0000)]
Merged revisions 161287 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r161287 | russell | 2008-12-05 08:12:14 -0600 (Fri, 05 Dec 2008) | 2 lines

Fix a NULL format string warning found by buildbot.

........

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

11 years agoResolve a compiler warning from buildbot about a NULL format string.
Russell Bryant [Fri, 5 Dec 2008 13:46:01 +0000 (13:46 +0000)]
Resolve a compiler warning from buildbot about a NULL format string.

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

11 years agoJanitor, use ARRAY_LEN() when possible.
Eliel C. Sardanons [Fri, 5 Dec 2008 10:31:25 +0000 (10:31 +0000)]
Janitor, use ARRAY_LEN() when possible.

(closes issue #13990)
Reported by: eliel
Patches:
      array_len.diff uploaded by eliel (license 64)

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

11 years agoThe first file should have a blank config filename in the structure, so that
Tilghman Lesher [Fri, 5 Dec 2008 05:41:41 +0000 (05:41 +0000)]
The first file should have a blank config filename in the structure, so that
when a save occurs to a different filename, everything goes to the alternate
filename, instead of appending to the original.  This is important for the
AMI command UpdateConfig.
(closes issue #13301)
 Reported by: trevo
 Patches:
       20081113__bug13301.diff.txt uploaded by Corydon76 (license 14)
       20081113__bug13301__1.6.0.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76, blitzrage

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

11 years agoCheck the return value of fread/fwrite so the compiler doesn't complain. Only a
Sean Bright [Fri, 5 Dec 2008 02:47:54 +0000 (02:47 +0000)]
Check the return value of fread/fwrite so the compiler doesn't complain.  Only a
problem when IMAP_STORAGE is enabled.

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

11 years agoIf 'faxdetect=yes' in sip.conf, switch to a 'fax' extension (if it exists) after...
Dwayne M. Hubbard [Thu, 4 Dec 2008 23:00:30 +0000 (23:00 +0000)]
If 'faxdetect=yes' in sip.conf, switch to a 'fax' extension (if it exists) after T38 is negotiated.
Terry Wilson created the original patch for this functionality, which I slightly modified and added
the faxdetect=yes|no configuration option.  This patch is only for T38 fax detection and does not
do anything for G711 over SIP fax detection.  By default, this option is disabled.

Reviewboard: http://reviewboard.digium.com/r/69/

This functionality is for issue AST-140.

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

11 years agoFix minor coding guidelines introduced with CLI permissions.
Eliel C. Sardanons [Thu, 4 Dec 2008 19:31:48 +0000 (19:31 +0000)]
Fix minor coding guidelines introduced with CLI permissions.

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

11 years agoMerged revisions 161013 via svnmerge from
Jeff Peeler [Thu, 4 Dec 2008 18:32:20 +0000 (18:32 +0000)]
Merged revisions 161013 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r161013 | jpeeler | 2008-12-04 12:30:41 -0600 (Thu, 04 Dec 2008) | 9 lines

(closes issue #13835)
Reported by: matt_b
Tested by: jpeeler

This mirrors a check that was present in ast_rtp_read to also be in ast_rtp_raw_write to not schedule sending the receiver report if the remote RTCP endpoint address isn't present in the RTCP structure.

Closes AST-142.

........

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