Commit Graph

16452 Commits

Author SHA1 Message Date
Russell Bryant
c80f103ed6 Blocked revisions 164309 via svnmerge
........
r164309 | russell | 2008-12-15 11:21:38 -0600 (Mon, 15 Dec 2008) | 2 lines

Fix a couple more build issues related to ast_str_opaque

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 17:21:59 +00:00
Russell Bryant
28a97c18ee Merged revisions 164203 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164203 | russell | 2008-12-15 08:40:24 -0600 (Mon, 15 Dec 2008) | 39 lines

Merged revisions 164201 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r164201 | russell | 2008-12-15 08:31:37 -0600 (Mon, 15 Dec 2008) | 31 lines

Handle a case where a call can be bridged to a channel that is still ringing.

The issue that was reported was about a case where a RINGING channel got 
redirected to an extension to pick up a call from parking.  Once the parked 
call got taken out of parking, it heard silence until the other side answered.  
Ideally, the caller that was parked would get a ringing indication.  This patch
fixes this case so that the caller receives ringback once it comes out of 
parking until the other side answers.

The fixes are:

 - Make sure we remember that a channel was an outgoing channel when doing 
   a masquerade.  This prevents an erroneous ast_answer() call on the channel,
   which causes a bogus 200 OK to be sent in the case of SIP.

 - Add some additional comments to explain related parts of code.

 - Update the handling of the ast_channel visible_indication field.  Storing 
   values that are not stateful is pointless.  Control frames that are events 
   or commands should be ignored.

 - When a bridge first starts, check to see if the peer channel needs to be 
   given ringing indication because the calling side is still ringing.

 - Rework ast_indicate_data() a bit for the sake of readability.

(closes issue #13747)
Reported by: davidw
Tested by: russell
Review: http://reviewboard.digium.com/r/90/

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 16:26:09 +00:00
Russell Bryant
8560f7fc20 Merged revisions 164272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164272 | russell | 2008-12-15 10:17:55 -0600 (Mon, 15 Dec 2008) | 8 lines

When a reload is issued, always process the configuration for dundi.conf.

The reason is that a reload can be used to refresh DNS lookups for defined peers.
Even if the config file hasn't changed, we want to process it for that purpose.

(closes issue #13776)
Reported by: kombjuder

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 16:19:00 +00:00
Mark Michelson
22ccedb314 Merged revisions 164270 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164270 | mmichelson | 2008-12-15 10:16:47 -0600 (Mon, 15 Dec 2008) | 4 lines

Fix a compile warning and a logic error that could have been bad
for non-realtime queues


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 16:17:19 +00:00
Mark Michelson
fde29e8939 Merged revisions 164268 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164268 | mmichelson | 2008-12-15 10:10:43 -0600 (Mon, 15 Dec 2008) | 17 lines

Fix up a few issues with regards to queues

* Fix reference counting used in the __queues_show function
* Add code to be sure that the "queue show" command does not
  print information for a realtime queue which has been deleted
  from the backend
* Add a missing unref to the realtime queue loading function for
  the case where a queue is in the module's container but has been
  deleted from the realtime backend

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


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 16:12:09 +00:00
Joshua Colp
87c8ebd562 Merged revisions 164257 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164257 | file | 2008-12-15 11:41:22 -0400 (Mon, 15 Dec 2008) | 4 lines
  
  Make app_fax compatible with newer versions of spandsp. This remains backwards compatible with earlier versions though so do not fret.
  (closes issue #14073)
  Reported by: seandarcy
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 15:48:22 +00:00
Joshua Colp
f04d178d28 Blocked revisions 164208 via svnmerge
........
  r164208 | file | 2008-12-15 11:21:23 -0400 (Mon, 15 Dec 2008) | 2 lines
  
  Update to work with new ast_str changes.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 15:21:49 +00:00
Joshua Colp
050bb72674 Blocked revisions 164205 via svnmerge
................
  r164205 | file | 2008-12-15 11:06:38 -0400 (Mon, 15 Dec 2008) | 10 lines
  
  Blocked revisions 164204 via svnmerge
  
  ........
    r164204 | file | 2008-12-15 11:05:08 -0400 (Mon, 15 Dec 2008) | 4 lines
    
    Can we try not to assign an unsigned int to -1?
    (closes issue #14074)
    Reported by: wetwired
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 15:07:34 +00:00
Sean Bright
67265f048f Blocked revisions 163951-163952 via svnmerge
........
  r163951 | seanbright | 2008-12-12 22:00:26 -0500 (Fri, 12 Dec 2008) | 1 line
  
  Use actual tables instead of ASCII art ones.
........
  r163952 | seanbright | 2008-12-12 22:03:15 -0500 (Fri, 12 Dec 2008) | 1 line
  
  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/branches/1.6.0@163953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-13 03:05:41 +00:00
Joshua Colp
8777c0ce95 Blocked revisions 163912 via svnmerge
........
  r163912 | file | 2008-12-12 20:59:24 -0400 (Fri, 12 Dec 2008) | 2 lines
  
  Only detach and destroy the whisper audiohooks if they are actually in use.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@163913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-13 01:00:41 +00:00
Terry Wilson
d56bef322c Merged revisions 163873 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r163873 | twilson | 2008-12-12 17:48:26 -0600 (Fri, 12 Dec 2008) | 6 lines
  
  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/branches/1.6.0@163874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-13 00:05:53 +00:00
Russell Bryant
20aa89180e Blocked revisions 163828 via svnmerge
........
r163828 | russell | 2008-12-12 17:06:55 -0600 (Fri, 12 Dec 2008) | 2 lines

Add a note to indicate why this only supports one channel for now.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@163829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 23:07:36 +00:00
Tilghman Lesher
cb692bccde Merged revisions 163762 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r163762 | tilghman | 2008-12-12 16:04:26 -0600 (Fri, 12 Dec 2008) | 14 lines
  
  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/branches/1.6.0@163763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 22:05:16 +00:00
Russell Bryant
32f63eb45e Blocked revisions 163716 via svnmerge
........
r163716 | russell | 2008-12-12 14:12:23 -0600 (Fri, 12 Dec 2008) | 5 lines

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/branches/1.6.0@163717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 20:12:43 +00:00
Steve Murphy
076e16cf9f Merged revisions 163675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r163675 | murf | 2008-12-12 12:16:32 -0700 (Fri, 12 Dec 2008) | 1 line
  
  demote always-appearing debug message (for certain boards) to ast_debug lev 3 msg instead
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@163714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 19:40:04 +00:00
Russell Bryant
1b1801f155 Merged revisions 163670 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163670 | russell | 2008-12-12 12:45:03 -0600 (Fri, 12 Dec 2008) | 6 lines

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/branches/1.6.0@163671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 18:52:14 +00:00
Russell Bryant
ab65296510 Merged revisions 163667 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163667 | russell | 2008-12-12 12:33:27 -0600 (Fri, 12 Dec 2008) | 5 lines

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/branches/1.6.0@163668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 18:34:56 +00:00
Russell Bryant
a3a784988d Merged revisions 163642 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163642 | russell | 2008-12-12 12:19:47 -0600 (Fri, 12 Dec 2008) | 7 lines

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/branches/1.6.0@163650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 18:21:35 +00:00
Joshua Colp
934c3d072a Blocked revisions 163629 via svnmerge
........
  r163629 | file | 2008-12-12 14:17:12 -0400 (Fri, 12 Dec 2008) | 4 lines
  
  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/branches/1.6.0@163635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 18:18:34 +00:00
Michiel van Baak
1953d171c5 Merged revisions 163612 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r163612 | mvanbaak | 2008-12-12 18:22:47 +0100 (Fri, 12 Dec 2008) | 7 lines
  
  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/branches/1.6.0@163620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 17:24:31 +00:00
Michiel van Baak
31969af963 Blocked revisions 163582 via svnmerge
........
  r163582 | mvanbaak | 2008-12-12 18:14:13 +0100 (Fri, 12 Dec 2008) | 11 lines
  
  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/branches/1.6.0@163583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 17:16:02 +00:00
Joshua Colp
e93be99823 Blocked revisions 163579 via svnmerge
........
  r163579 | file | 2008-12-12 12:55:15 -0400 (Fri, 12 Dec 2008) | 4 lines
  
  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/branches/1.6.0@163580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 16:55:59 +00:00
Russell Bryant
0ac7322a4b Merged revisions 163512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163512 | russell | 2008-12-12 08:44:06 -0600 (Fri, 12 Dec 2008) | 13 lines

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/branches/1.6.0@163513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 14:45:44 +00:00
Russell Bryant
d94b6eeeaf Merged revisions 163449 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163449 | russell | 2008-12-12 07:55:30 -0600 (Fri, 12 Dec 2008) | 34 lines

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/branches/1.6.0@163450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 14:05:01 +00:00
Tilghman Lesher
40a2446502 Merged revisions 163384 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r163384 | tilghman | 2008-12-11 17:38:56 -0600 (Thu, 11 Dec 2008) | 16 lines
  
  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/branches/1.6.0@163385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 23:43:53 +00:00
Matthew Nicholson
9cd7139df4 Merged revisions 163317 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r163317 | mnicholson | 2008-12-11 16:49:59 -0600 (Thu, 11 Dec 2008) | 16 lines
  
  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/branches/1.6.0@163318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 22:52:18 +00:00
Russell Bryant
cb8fbf7b13 Merged revisions 163254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163254 | russell | 2008-12-11 15:48:08 -0600 (Thu, 11 Dec 2008) | 16 lines

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/branches/1.6.0@163255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 21:49:13 +00:00
Russell Bryant
d878d06d2c Blocked revisions 163241 via svnmerge
........
r163241 | russell | 2008-12-11 15:21:31 -0600 (Thu, 11 Dec 2008) | 8 lines

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/branches/1.6.0@163248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 21:22:56 +00:00
Russell Bryant
668ac35844 Merged revisions 163171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163171 | russell | 2008-12-11 14:07:47 -0600 (Thu, 11 Dec 2008) | 16 lines

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/branches/1.6.0@163172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 20:09:10 +00:00
Tilghman Lesher
09a6317035 Merged revisions 163168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r163168 | tilghman | 2008-12-11 14:02:35 -0600 (Thu, 11 Dec 2008) | 5 lines
  
  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/branches/1.6.0@163169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 20:04:15 +00:00
Russell Bryant
2f56ece505 Merged revisions 163094 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163094 | russell | 2008-12-11 11:06:16 -0600 (Thu, 11 Dec 2008) | 19 lines

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/branches/1.6.0@163095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 17:11:50 +00:00
Tilghman Lesher
1ac2518c09 Merged revisions 163089 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r163089 | tilghman | 2008-12-11 10:52:24 -0600 (Thu, 11 Dec 2008) | 13 lines
  
  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/branches/1.6.0@163090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 16:53:12 +00:00
Mark Michelson
bfbf6f4aac Merged revisions 163085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163085 | mmichelson | 2008-12-11 10:47:34 -0600 (Thu, 11 Dec 2008) | 12 lines

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/branches/1.6.0@163086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 16:49:18 +00:00
Mark Michelson
5826008ffd Merged revisions 163081 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163081 | mmichelson | 2008-12-11 10:33:16 -0600 (Thu, 11 Dec 2008) | 22 lines

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/branches/1.6.0@163082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 16:40:46 +00:00
Sean Bright
9cfa4c1dfe Blocked revisions 163037 via svnmerge
........
  r163037 | seanbright | 2008-12-11 10:40:07 -0500 (Thu, 11 Dec 2008) | 8 lines
  
  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/branches/1.6.0@163039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 15:41:29 +00:00
Joshua Colp
ea9f10f371 Blocked revisions 162997 via svnmerge
........
  r162997 | file | 2008-12-11 11:05:49 -0400 (Thu, 11 Dec 2008) | 4 lines
  
  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/branches/1.6.0@163001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 15:06:49 +00:00
Jeff Peeler
69b008a143 Merged revisions 162927 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162927 | jpeeler | 2008-12-10 16:53:34 -0600 (Wed, 10 Dec 2008) | 11 lines

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/branches/1.6.0@162928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 22:54:01 +00:00
Joshua Colp
a75b51ae14 Blocked revisions 162923 via svnmerge
........
  r162923 | file | 2008-12-10 18:48:58 -0400 (Wed, 10 Dec 2008) | 4 lines
  
  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/branches/1.6.0@162924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 22:50:26 +00:00
Jeff Peeler
378383b674 Merged revisions 162891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162891 | jpeeler | 2008-12-10 16:11:46 -0600 (Wed, 10 Dec 2008) | 13 lines

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/branches/1.6.0@162894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 22:12:40 +00:00
Joshua Colp
b1eb64beec Merged revisions 162805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162805 | file | 2008-12-10 15:02:57 -0400 (Wed, 10 Dec 2008) | 13 lines
  
  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/branches/1.6.0@162806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 19:04:13 +00:00
Joshua Colp
b4d8725ec1 Merged revisions 162739 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162739 | file | 2008-12-10 13:53:09 -0400 (Wed, 10 Dec 2008) | 13 lines
  
  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/branches/1.6.0@162740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 17:54:06 +00:00
Michiel van Baak
b35132ebeb Blocked revisions 162687 via svnmerge
........
  r162687 | mvanbaak | 2008-12-10 18:09:15 +0100 (Wed, 10 Dec 2008) | 8 lines
  
  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/branches/1.6.0@162692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 17:11:08 +00:00
Mark Michelson
3495f89e85 Blocked revisions 162672 via svnmerge
................
r162672 | mmichelson | 2008-12-10 10:46:51 -0600 (Wed, 10 Dec 2008) | 21 lines

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/branches/1.6.0@162673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:48:10 +00:00
Mark Michelson
a94a213cc3 Merged revisions 162667 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162667 | mmichelson | 2008-12-10 10:39:10 -0600 (Wed, 10 Dec 2008) | 16 lines

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/branches/1.6.0@162668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:39:40 +00:00
Mark Michelson
52eea9252e Merged revisions 162664 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162664 | mmichelson | 2008-12-10 10:34:35 -0600 (Wed, 10 Dec 2008) | 19 lines

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/branches/1.6.0@162665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:36:38 +00:00
Joshua Colp
05b88f7bb3 Blocked revisions 162660 via svnmerge
........
  r162660 | file | 2008-12-10 12:11:06 -0400 (Wed, 10 Dec 2008) | 6 lines
  
  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/branches/1.6.0@162661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:11:38 +00:00
Joshua Colp
db16f8c6bc Merged revisions 162656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162656 | file | 2008-12-10 12:06:59 -0400 (Wed, 10 Dec 2008) | 13 lines
  
  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/branches/1.6.0@162657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:07:51 +00:00
Joshua Colp
62f443578b Merged revisions 162619 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r162619 | file | 2008-12-10 11:22:26 -0400 (Wed, 10 Dec 2008) | 4 lines
  
  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/branches/1.6.0@162621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 15:26:49 +00:00
Michiel van Baak
5c111c073f Merged revisions 162583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r162583 | mvanbaak | 2008-12-10 12:34:09 +0100 (Wed, 10 Dec 2008) | 5 lines
  
  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/branches/1.6.0@162584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 11:36:28 +00:00
Joshua Colp
1609a7cf8a Blocked revisions 162542 via svnmerge
........
  r162542 | file | 2008-12-09 21:09:06 -0400 (Tue, 09 Dec 2008) | 6 lines
  
  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/branches/1.6.0@162543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 01:10:11 +00:00