Commit Graph

16820 Commits

Author SHA1 Message Date
Joshua Colp
79d555f70c Merged revisions 163579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  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.1@163581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 16:57:04 +00:00
Russell Bryant
85ad905561 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.1@163515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 14:48:40 +00:00
Russell Bryant
a4597d4d45 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.1@163514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-12 14:47:29 +00:00
Tilghman Lesher
c4281ca1fa 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.1@163386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 23:48:48 +00:00
Matthew Nicholson
73b4cdeaee 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.1@163319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 22:52:40 +00:00
Russell Bryant
32f5b0def1 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.1@163256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 21:50:10 +00:00
Russell Bryant
74fada439f Merged revisions 163241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
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.1@163252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 21:24:37 +00:00
Mark Michelson
6282938aea Merged revisions 163213 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163213 | mmichelson | 2008-12-11 14:57:44 -0600 (Thu, 11 Dec 2008) | 9 lines

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/branches/1.6.1@163214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 21:00:25 +00:00
Mark Michelson
dec219bd8b Blocked revisions 163198 via svnmerge
........
r163198 | mmichelson | 2008-12-11 14:21:44 -0600 (Thu, 11 Dec 2008) | 3 lines

Add an appropriate goto if ast_call fails


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@163200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 20:22:14 +00:00
Russell Bryant
39a8f051b7 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.1@163173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 20:10:13 +00:00
Tilghman Lesher
9e5b0ce525 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.1@163170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 20:05:43 +00:00
Mark Michelson
6be7b5a38c Blocked revisions 163166 via svnmerge
........
r163166 | mmichelson | 2008-12-11 13:40:18 -0600 (Thu, 11 Dec 2008) | 3 lines

Reduce indentation level of ast_feature_request_and_dial


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@163167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 19:40:52 +00:00
Russell Bryant
221462c7a1 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.1@163100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 17:16:26 +00:00
Tilghman Lesher
0cf1fa1a84 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.1@163091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 16:54:04 +00:00
Mark Michelson
15d88d2188 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.1@163087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 16:49:47 +00:00
Mark Michelson
e3390f9344 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.1@163083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 16:44:19 +00:00
Sean Bright
2ae9c54641 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.1@163040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 15:42:41 +00:00
Joshua Colp
6bb78bff53 Merged revisions 162997 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  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.1@163006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 15:07:55 +00:00
Tilghman Lesher
704f4a7d5c Merged revisions 162922,162930 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r162922 | tilghman | 2008-12-10 16:48:09 -0600 (Wed, 10 Dec 2008) | 7 lines
  
  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
........
  r162930 | tilghman | 2008-12-10 17:01:14 -0600 (Wed, 10 Dec 2008) | 2 lines
  
  Previously missing line, now the substitution works correctly
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@162949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 23:13:22 +00:00
Jeff Peeler
f358a95371 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.1@162929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 22:54:22 +00:00
Joshua Colp
2400f3af10 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.1@162925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 22:52:19 +00:00
Jeff Peeler
cbe59286a3 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.1@162896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 22:12:57 +00:00
Joshua Colp
25ed056a69 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.1@162807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 19:05:02 +00:00
Joshua Colp
777d07ee11 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.1@162741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 17:54:58 +00:00
Michiel van Baak
55e22b0cf9 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.1@162698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 17:12:18 +00:00
Mark Michelson
96740e6cce 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.1@162674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:48:31 +00:00
Mark Michelson
f4f2de61c2 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.1@162669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:39:59 +00:00
Mark Michelson
e67941f5cb 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.1@162666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:37:14 +00:00
Joshua Colp
cae4de5b86 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.1@162662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:12:54 +00:00
Joshua Colp
ffc955adae 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.1@162658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 16:08:34 +00:00
Joshua Colp
a78825a181 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.1@162622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 15:28:02 +00:00
Michiel van Baak
bf77311441 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.1@162585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 11:37:29 +00:00
Joshua Colp
e9177c1d06 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.1@162544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 01:10:58 +00:00
Mark Michelson
e8cdcc6ab6 Merged revisions 162488 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r162488 | kpfleming | 2008-12-09 17:41:02 -0600 (Tue, 09 Dec 2008) | 1 line

it does help if the compiler attribute syntax is correct
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@162490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 23:45:41 +00:00
Tilghman Lesher
e7fe92f90a Merged revisions 162466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162466 | tilghman | 2008-12-09 17:10:34 -0600 (Tue, 09 Dec 2008) | 9 lines
  
  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/branches/1.6.1@162472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 23:12:06 +00:00
Russell Bryant
83ef986697 Blocked revisions 162418 via svnmerge
........
r162418 | russell | 2008-12-09 16:38:41 -0600 (Tue, 09 Dec 2008) | 7 lines

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/branches/1.6.1@162420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 22:39:07 +00:00
Russell Bryant
5964f2e0f1 Merged revisions 162414 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162414 | russell | 2008-12-09 16:25:06 -0600 (Tue, 09 Dec 2008) | 16 lines

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/branches/1.6.1@162416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 22:34:55 +00:00
Tilghman Lesher
fb46352fcb Merged revisions 162355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162355 | tilghman | 2008-12-09 15:57:09 -0600 (Tue, 09 Dec 2008) | 11 lines
  
  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/branches/1.6.1@162372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 22:02:40 +00:00
Joshua Colp
3c6b748bab Merged revisions 162342 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162342 | file | 2008-12-09 17:16:37 -0400 (Tue, 09 Dec 2008) | 11 lines
  
  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/branches/1.6.1@162344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 21:18:15 +00:00
Russell Bryant
3f223f6531 Merged revisions 162291 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162291 | russell | 2008-12-09 14:59:54 -0600 (Tue, 09 Dec 2008) | 17 lines

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/branches/1.6.1@162302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 21:03:44 +00:00
Dwayne M. Hubbard
79e400caa7 Blocked revisions 161115 via svnmerge
........
r161115 | dhubbard | 2008-12-04 17:00:30 -0600 (Thu, 04 Dec 2008) | 11 lines

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/branches/1.6.1@162279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 20:49:17 +00:00
Joshua Colp
f373055869 Merged revisions 162275 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162275 | file | 2008-12-09 16:46:11 -0400 (Tue, 09 Dec 2008) | 11 lines
  
  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/branches/1.6.1@162278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 20:48:02 +00:00
Steve Murphy
f31795831e Merged revisions 162271 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162271 | murf | 2008-12-09 13:40:31 -0700 (Tue, 09 Dec 2008) | 9 lines

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/branches/1.6.1@162277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 20:47:13 +00:00
Mark Michelson
b6b83bbe9c Merged revisions 162266 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162266 | mmichelson | 2008-12-09 14:30:07 -0600 (Tue, 09 Dec 2008) | 14 lines

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/branches/1.6.1@162269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 20:31:51 +00:00
Joshua Colp
8e796b4658 Merged revisions 162205 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162205 | file | 2008-12-09 15:48:35 -0400 (Tue, 09 Dec 2008) | 14 lines
  
  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/branches/1.6.1@162207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 19:52:45 +00:00
Joshua Colp
085cfe48cf Merged revisions 162197 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r162197 | file | 2008-12-09 15:08:39 -0400 (Tue, 09 Dec 2008) | 11 lines
  
  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/branches/1.6.1@162202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 19:10:33 +00:00
Steve Murphy
b331a9e331 Merged revisions 162140 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162140 | murf | 2008-12-09 11:35:35 -0700 (Tue, 09 Dec 2008) | 9 lines

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/branches/1.6.1@162142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 18:49:03 +00:00
Steve Murphy
6ceb1dd7c0 Merged revisions 162079 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162079 | murf | 2008-12-09 10:18:03 -0700 (Tue, 09 Dec 2008) | 53 lines

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/branches/1.6.1@162082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 17:32:49 +00:00
Russell Bryant
20aed1b254 Merged revisions 162016 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r162016 | russell | 2008-12-09 10:47:39 -0600 (Tue, 09 Dec 2008) | 13 lines

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/branches/1.6.1@162018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 16:50:04 +00:00
Eliel C. Sardanons
3fdbe5d8eb Blocked revisions 161947 via svnmerge
........
  r161947 | eliel | 2008-12-09 12:49:30 -0200 (Tue, 09 Dec 2008) | 8 lines
  
  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/branches/1.6.1@162015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 16:46:56 +00:00