Commit Graph

16898 Commits

Author SHA1 Message Date
Jeff Peeler
48a29209e6 Blocked revisions 165798 via svnmerge
........
r165798 | jpeeler | 2008-12-18 15:43:17 -0600 (Thu, 18 Dec 2008) | 6 lines

(closes issue #13993)
Reported by: mika

Add ActionID response to ping if sent with request.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 21:44:20 +00:00
Joshua Colp
4142e300f7 Merged revisions 165792 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165792 | file | 2008-12-18 17:21:44 -0400 (Thu, 18 Dec 2008) | 6 lines
  
  Numerous documentation updates.
  (closes issue #13970)
  Reported by: pkempgen
  Patches:
        __20081217_cli_usage_fixes.patch.txt uploaded by blitzrage (license 10)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 21:24:00 +00:00
Russell Bryant
52f5e8fcfb Merged revisions 165723 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165723 | russell | 2008-12-18 13:33:42 -0600 (Thu, 18 Dec 2008) | 14 lines

Remove the need for AST_PBX_KEEPALIVE with the GoSub option from Dial.

This is part of an effort to completely remove AST_PBX_KEEPALIVE and other
similar return codes from the source.  While this usage was perfectly safe,
there are others that are problematic.  Since we know ahead of time that
we do not want to PBX to destroy the channel, the PBX API has been changed
so that information can be provided as an argument, instead, thus removing
the need for the KEEPALIVE return value.

Further changes to get rid of KEEPALIVE and related code is being done by
murf.  There is a patch up for that on review 29.

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

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 19:45:11 +00:00
Mark Michelson
0101f564a4 Merged revisions 165724 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165724 | mmichelson | 2008-12-18 13:34:33 -0600 (Thu, 18 Dec 2008) | 8 lines

Fix crashes in res_odbc.

The variable "class" was being set NULL just prior to
being dereferenced in an ao2_link call. I have moved
the setting of the variable to NULL until after the
ao2_link call.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 19:36:23 +00:00
Russell Bryant
03d73a0522 Merged revisions 165662 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r165662 | russell | 2008-12-18 12:54:47 -0600 (Thu, 18 Dec 2008) | 15 lines

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

........
r165661 | russell | 2008-12-18 12:52:18 -0600 (Thu, 18 Dec 2008) | 7 lines

Set the process group ID on the MOH process so that all children will get killed

(closes issue #14099)
Reported by: caspy
Patches:
      res_musiconhold.c.patch.killpg.try2 uploaded by caspy (license 645)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 18:58:05 +00:00
Tilghman Lesher
fcb9c545f4 Merged revisions 165658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165658 | tilghman | 2008-12-18 12:36:48 -0600 (Thu, 18 Dec 2008) | 2 lines
  
  Fix 2 resource leaks and fix another pipe-to-comma conversion
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 18:47:08 +00:00
Joshua Colp
1f96800e79 Merge in changes to return chan_sip to matching based on how it was previously done and how it is done in trunk. It will do name based for users and friends and IP based for peers.
(closes issue #14107)
Reported by: jsmith


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 17:59:37 +00:00
Joshua Colp
e5a8f92ab1 Merged revisions 165599 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r165599 | file | 2008-12-18 13:13:32 -0400 (Thu, 18 Dec 2008) | 11 lines
  
  Merged revisions 165591 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r165591 | file | 2008-12-18 13:11:42 -0400 (Thu, 18 Dec 2008) | 4 lines
    
    Only care about a compatible codec for early bridging if we are actually bridging to another channel. If we are not we actually want to bring the audio back to us.
    (closes issue #13545)
    Reported by: davidw
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 17:15:55 +00:00
Tilghman Lesher
51bcaa624f Merged revisions 165541 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165541 | tilghman | 2008-12-18 10:36:48 -0600 (Thu, 18 Dec 2008) | 2 lines
  
  Fix reference counts of the class and add an assertion to the end.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 16:48:13 +00:00
Joshua Colp
e0480df461 Blocked revisions 165538 via svnmerge
................
  r165538 | file | 2008-12-18 12:11:08 -0400 (Thu, 18 Dec 2008) | 12 lines
  
  Blocked revisions 165537 via svnmerge
  
  ........
    r165537 | file | 2008-12-18 12:07:37 -0400 (Thu, 18 Dec 2008) | 6 lines
    
    Do not crash if we are not passed in a followme id.
    (closes issue #14106)
    Reported by: ys
    Patches:
          app_followme.c.2.diff uploaded by ys (license 281)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 16:12:28 +00:00
Eliel C. Sardanons
4745521710 Blocked revisions 165502 via svnmerge
........
  r165502 | eliel | 2008-12-18 13:25:15 -0200 (Thu, 18 Dec 2008) | 9 lines
  
  Remove duplicate code from the ast_str API. We now use __AST_STR_* to
  access 'struct ast_str' members, but this must only be used inside the API implementation.
  
  (closes issue #14098)
  Reported by: eliel
  Patches:
        ast_str.patch uploaded by eliel (license 64)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 15:27:04 +00:00
Russell Bryant
3b0d24cede Blocked revisions 165433 via svnmerge
........
r165433 | russell | 2008-12-18 07:33:34 -0600 (Thu, 18 Dec 2008) | 9 lines

Add a new application, Originate.

(closes issue #14075)
Reported by: rcasas
Patches:
      app_originate.c uploaded by rcasas (license 641), heavily modified by me
Tested by: russell
Review: http://reviewboard.digium.com/r/95/

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-18 13:34:26 +00:00
Tilghman Lesher
6b559884cf Blocked revisions 165397 via svnmerge
........
  r165397 | tilghman | 2008-12-17 17:39:48 -0600 (Wed, 17 Dec 2008) | 3 lines
  
  Add RECORD_STATUS variable, as requested on the -users list.
  Patch by me (license 14)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 23:40:32 +00:00
Mark Michelson
e76e724b3b Merged revisions 165330 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165330 | mmichelson | 2008-12-17 15:46:19 -0600 (Wed, 17 Dec 2008) | 3 lines

Fix a refcount leak in res_odbc


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 21:48:59 +00:00
Tilghman Lesher
d70704c277 Merged revisions 165325 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165325 | tilghman | 2008-12-17 15:28:51 -0600 (Wed, 17 Dec 2008) | 2 lines
  
  Oops, broke trunk
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 21:31:15 +00:00
Mark Michelson
0d8c8393e1 Blocked revisions 165326 via svnmerge
........
r165326 | mmichelson | 2008-12-17 15:29:30 -0600 (Wed, 17 Dec 2008) | 3 lines

Fix the build


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 21:30:12 +00:00
Mark Michelson
04b50b8b8c Merged revisions 165318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r165318 | mmichelson | 2008-12-17 15:17:20 -0600 (Wed, 17 Dec 2008) | 15 lines

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

........
r165255 | mmichelson | 2008-12-17 14:51:38 -0600 (Wed, 17 Dec 2008) | 7 lines

Fix some memory leaks found while looking at how realtime
configs are handled.

Also cleaned up some coding guidelines violations in app_realtime.c,
mostly related to spacing


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 21:25:32 +00:00
Tilghman Lesher
c383e518fd Merged revisions 165319 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r165319 | tilghman | 2008-12-17 15:18:57 -0600 (Wed, 17 Dec 2008) | 11 lines
  
  Merged revisions 165317 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r165317 | tilghman | 2008-12-17 15:14:37 -0600 (Wed, 17 Dec 2008) | 4 lines
    
    Reverse the fix from issue #6176 and add proper handling for that issue.
    (Closes issue #13962, closes issue #13363)
    Fixed by myself (license 14)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 21:22:38 +00:00
Steve Murphy
77014eebbe Merged revisions 165254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165254 | murf | 2008-12-17 13:50:19 -0700 (Wed, 17 Dec 2008) | 5 lines

This patch is here committed to satisfy the
buildbot, who has a problem with the const.



........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 21:02:45 +00:00
Terry Wilson
fe4f241693 Merged revisions 165219 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165219 | twilson | 2008-12-17 13:55:10 -0600 (Wed, 17 Dec 2008) | 2 lines
  
  Polycom phones close the connection after reading a little bit of the firmware files, we should stop sending in that case. Also, make that case print out a debug statement instead of a scary WARNING.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 20:02:14 +00:00
Joshua Colp
f9973f81a3 Merged revisions 165216 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165216 | file | 2008-12-17 15:52:40 -0400 (Wed, 17 Dec 2008) | 4 lines
  
  Call proxy_update so that the IP address gets populated. Sending stuff to 0.0.0.0 is silly!
  (closes issue #14055)
  Reported by: chris-mac
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 19:54:40 +00:00
Mark Michelson
5f50fb1dce Merged revisions 165142-165143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165142 | mmichelson | 2008-12-17 11:52:50 -0600 (Wed, 17 Dec 2008) | 10 lines

Use the create_vm_state_from_user function in a place where
it was not being used before. Also, I've moved the urgent
folder check in messagecount() up a bit so that the flow is
a bit better.

This was something I noticed while taking a look at issue
#13973, although I don't think this is the underlying cause
of the issue.


........
r165143 | mmichelson | 2008-12-17 11:53:37 -0600 (Wed, 17 Dec 2008) | 3 lines

And actually assign the function to a pointer...


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 17:56:53 +00:00
Steve Murphy
b9e92ed94e Merged revisions 165071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

I might add here that in I tested the merged fixes
from trunk in both 1.6.0 and 1.6.1 via both
'make' and ./runtests in the ael regression tests
for all but DEBUG_CHANNEL_LOCKS, DEBUG_SCHEDULER,
and CHANNEL_TRACE options.

........
r165071 | murf | 2008-12-16 22:04:56 -0700 (Tue, 16 Dec 2008) | 31 lines

A possibly "horrible fix" for a "horribly broken"
situation.

As stuff shifts around in the asterisk code, the
miscellaneous inclusions from the standalone stuff
gets broken. There's no easy fix for this situation.

I made sure that everything in utils builds without
problem ***AND*** that aelparse runs the regressions
correctly with the following make menuselect options
both on and off:

DONT_OPTIMIZE
DEBUG_THREADS
DEBUG_CHANNEL_LOCKS
MALLOC_DEBUG
MTX_PROFILE
DEBUG_SCHEDULER
DEBUG_THREADLOCALS
DETECT_DEADLOCKS
CHANNEL_TRACE

I think from now on, I'm going to #undef
all these features in the various utils native
files; I guess I could do the same for the
copied-in files, surrounded by STANDALONE ifdef.

A standalone isn't going to care about threads,
mutexes, etc.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@165093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 05:53:02 +00:00
Mark Michelson
cbad8e6dca Merged revisions 164978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164978 | mmichelson | 2008-12-16 17:06:04 -0600 (Tue, 16 Dec 2008) | 15 lines

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

........
r164977 | mmichelson | 2008-12-16 17:04:27 -0600 (Tue, 16 Dec 2008) | 7 lines

After looking through SIP registration code most of the day, this
is one of the few things I could find that was just plain wrong.
Even though it probably isn't possible for it to happen, it seems weird
to have code that checks if a pointer is NULL and then immediately dereferences
that pointer if it was NULL.


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 23:07:33 +00:00
Jeff Peeler
8cbe3fd12d Merged revisions 164942 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164942 | jpeeler | 2008-12-16 16:45:39 -0600 (Tue, 16 Dec 2008) | 6 lines

(closes issue #13669)
Reported by: pj

Delete file recording if recording terminated from a hangup.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 22:52:17 +00:00
Russell Bryant
4468cd8d49 Merged revisions 164882 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164882 | russell | 2008-12-16 15:39:15 -0600 (Tue, 16 Dec 2008) | 17 lines

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

........
r164881 | russell | 2008-12-16 15:38:29 -0600 (Tue, 16 Dec 2008) | 9 lines

Fix an issue where DEBUG_THREADS may erroneously report that a thread 
is exiting while holding a lock.

If the last lock attempt was a trylock, and it failed, it will still be in the
list of locks so that it can be reported.

(closes issue #13219)
Reported by: pj

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 21:40:30 +00:00
Russell Bryant
57bb6ea061 Merged revisions 164877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164877 | russell | 2008-12-16 15:12:49 -0600 (Tue, 16 Dec 2008) | 14 lines

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

........
r164876 | russell | 2008-12-16 15:10:44 -0600 (Tue, 16 Dec 2008) | 6 lines

Do not dereference the channel if AST_PBX_KEEPALIVE has been returned.

This is a bug I noticed while looking at the code for app_macro.  This return code
means that another thread has assumed ownership of the channel and it can no longer
be touched.  (I hate this return code with a passion, by the way.)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 21:13:53 +00:00
Russell Bryant
c5307108ba Blocked revisions 164821 via svnmerge
........
r164821 | russell | 2008-12-16 14:49:25 -0600 (Tue, 16 Dec 2008) | 2 lines

Fix build issues on Linux after sysinfo related changes

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 20:49:59 +00:00
Joshua Colp
70d2cf782e Blocked revisions 164814 via svnmerge
........
  r164814 | file | 2008-12-16 16:47:31 -0400 (Tue, 16 Dec 2008) | 2 lines
  
  Qualify trumps poke per lmadsen.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 20:48:47 +00:00
Russell Bryant
43371e4cb1 Merged revisions 164807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164807 | russell | 2008-12-16 14:41:51 -0600 (Tue, 16 Dec 2008) | 17 lines

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

........
r164806 | russell | 2008-12-16 14:35:25 -0600 (Tue, 16 Dec 2008) | 9 lines

Add "restart gracefully" to the AMI blacklist of CLI commands.  

"module unload" was already identified as a command that can not be used 
from the AMI.  "restart gracefully" effectively unloads all modules, and will 
run in to the same problems.

(closes issue #13894)
Reported by: kernelsensei

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 20:44:22 +00:00
Joshua Colp
7a95b97aea Blocked revisions 164809 via svnmerge
........
  r164809 | file | 2008-12-16 16:42:33 -0400 (Tue, 16 Dec 2008) | 4 lines
  
  Add configuration options for finer control over how Asterisk handles having to poke all peers at seemingly the same time.
  (closes issue #13217)
  Reported by: cervajs
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 20:43:35 +00:00
Steve Murphy
e3e5457dc4 Merged revisions 164801 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164801 | murf | 2008-12-16 13:04:46 -0700 (Tue, 16 Dec 2008) | 36 lines

(closes issue #14076)
Reported by: toc
Tested by: murf

OK, Well this issue has had its share of flip-flopping.
I found the following:

1. the code in question, in ext_cmp1 in pbx.c, would not
allow two extensions that vary only by any dashes contained
within them, to be defined in the same context.

2. for input dialstrings, dashes are NOT ignored.
So, skipping them when sorting patterns seemed a bit silly.
Thus, you might declare ext 891 in a context, but
if you try dialing 8-9-1, it will NOT match 891.

So, I proposed to remove the code from ext_cmp1 to 
skip the spaces and dashes. Just kept us from 
declaring 891 and 8-9-1 in the same context,
forcing users to generate otherwise uselessly
obfuscated dialplan code to get the same effect.

Then, I tried out 1.4, and found that:

1. you can declare 891 and 8-9-1 in the
same context!

2. You can't define 891, and have 8-9-1 match
it! Nor can you define 8-9-1, and have 891
match it!

So, it appears that my proposal simply restores
the pbx to behaving as it did in 1.4.



........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 20:18:07 +00:00
Tilghman Lesher
a7346e7e21 Merged revisions 164798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164798 | tilghman | 2008-12-16 13:54:11 -0600 (Tue, 16 Dec 2008) | 4 lines
  
  Set up umask as a possible configuration option.
  (closes issue #13753)
   Reported by: irroot
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 19:54:51 +00:00
Russell Bryant
f39a711c49 Merged revisions 164737 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164737 | russell | 2008-12-16 11:14:01 -0600 (Tue, 16 Dec 2008) | 22 lines

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

........
r164736 | russell | 2008-12-16 11:06:29 -0600 (Tue, 16 Dec 2008) | 14 lines

Fix memory leak and invalid reporting issues with DEBUG_THREADLOCALS.

One issue was that the ast_mutex_* API was being used within the context of the
thread local data destructors.  We would go off and allocate more thread local data
while the pthread lib was in the middle of destroying it all.  This led to a memory 
leak.

Another issue was an invalid argument being provided to the the object_add
API call.

(closes issue #13678)
Reported by: ys
Tested by: Russell

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 17:18:12 +00:00
Joshua Colp
14b7e03145 Blocked revisions 164733 via svnmerge
........
  r164733 | file | 2008-12-16 12:50:11 -0400 (Tue, 16 Dec 2008) | 6 lines
  
  Be more detailed about why the include did not get included.
  (closes issue #14071)
  Reported by: kshumard
  Patches:
        pbx_config.patch.improvederroroutput.txt uploaded by kshumard (license 92)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 16:52:05 +00:00
Russell Bryant
072033cdb0 Merged revisions 164675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164675 | russell | 2008-12-16 10:00:29 -0600 (Tue, 16 Dec 2008) | 19 lines

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

........
r164672 | russell | 2008-12-16 09:56:37 -0600 (Tue, 16 Dec 2008) | 11 lines

Fix a memory leak related to the use of the "setvar" configuration option.

The problem was that these variables were being appended to the list of vars
on the sip_pvt every time a re-registration or re-subscription came in.
Since it's just a waste of memory to put them there unless the request was an
INVITE, then the fix is to check the request type before copying the vars.

(closes issue #14037)
Reported by: marvinek
Tested by: russell

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 16:03:45 +00:00
Joshua Colp
d2b0a64b61 Merged revisions 164659 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164659 | file | 2008-12-16 11:44:28 -0400 (Tue, 16 Dec 2008) | 4 lines
  
  When using externhost make sure the port gets set to the bindaddr port if one was not specified in the externhost value itself.
  (closes issue #13634)
  Reported by: performer
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 15:47:10 +00:00
Steve Murphy
a13fe6807a Merged revisions 164648 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164648 | murf | 2008-12-16 08:31:54 -0700 (Tue, 16 Dec 2008) | 13 lines

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

........
r164634 | murf | 2008-12-16 08:15:58 -0700 (Tue, 16 Dec 2008) | 5 lines

I added a sentence to clarify why - and ' ' are ignored in patterns
as per bug 14076. Leif says he'll put some stuff about it in the
extensions.conf sample, etc.


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 15:42:52 +00:00
Russell Bryant
8d40c280fd Merged revisions 164623 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164623 | russell | 2008-12-16 09:00:27 -0600 (Tue, 16 Dec 2008) | 5 lines

Set MINIVM_ACCMESS_STATUS in all cases.  Also, remove a variable that was not needed.

(closes issue #14081)
Reported by: pkempgen

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 15:02:14 +00:00
Russell Bryant
6ff3d9f58f Merged revisions 164606 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164606 | russell | 2008-12-16 08:31:02 -0600 (Tue, 16 Dec 2008) | 13 lines

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

........
r164605 | russell | 2008-12-16 08:28:10 -0600 (Tue, 16 Dec 2008) | 5 lines

Don't try to change working directory if a directory was not configured.

(closes issue #14089)
Reported by: caspy

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 14:47:34 +00:00
Russell Bryant
a133e807d1 Merged revisions 164602 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164602 | russell | 2008-12-16 08:17:45 -0600 (Tue, 16 Dec 2008) | 7 lines

Fix usage of the DAHDI_VMWI ioctl.

(closes issue #14090)
Reported by: alecdavis
Patches:
      chan_dahdi.VMWI_ioctl.diff.txt uploaded by alecdavis (license 585)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 14:18:45 +00:00
Sean Bright
01a62afd31 Blocked revisions 164565 via svnmerge
........
  r164565 | seanbright | 2008-12-15 20:52:32 -0500 (Mon, 15 Dec 2008) | 1 line
  
  Use tables instead of ASCII art.  Also change a bit of minor formatting.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 01:53:06 +00:00
Russell Bryant
791523697d Merged revisions 164525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164525 | russell | 2008-12-15 16:25:46 -0600 (Mon, 15 Dec 2008) | 6 lines

Open a timer before loading configuration so that the trunking configuration option
will take effect.

(closes issue #14082)
Reported by: seandarcy

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 22:27:19 +00:00
Russell Bryant
a0258d8f1b Merged revisions 164522 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164522 | russell | 2008-12-15 16:22:43 -0600 (Mon, 15 Dec 2008) | 4 lines

Fix log message to refer to the generic timing interface, not DAHDI specifically

(inspired by issue #14082)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 22:23:18 +00:00
Russell Bryant
f8dc9e9776 Merged revisions 164519 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164519 | russell | 2008-12-15 15:53:30 -0600 (Mon, 15 Dec 2008) | 7 lines

Make sure we handle a uint32_t payload in ast_frdup()

(closes issue #14080)
Reported by: fnordian
Patches:
      frame.patch uploaded by fnordian (license 110)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 22:00:33 +00:00
Tilghman Lesher
71d1c23319 Blocked revisions 164485 via svnmerge
........
  r164485 | tilghman | 2008-12-15 15:17:07 -0600 (Mon, 15 Dec 2008) | 7 lines
  
  Allow disabling pattern match searches within the Realtime dialplan switch.
  (closes issue #13698)
   Reported by: fhackenberger
   Patches: 
         20081211__bug13698.diff.txt uploaded by Corydon76 (license 14)
   Tested by: fhackenberger
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 21:17:52 +00:00
Mark Michelson
15c67dbb41 Blocked revisions 164428 via svnmerge
........
r164428 | mmichelson | 2008-12-15 14:07:03 -0600 (Mon, 15 Dec 2008) | 11 lines

Add an 'i' option to app_page. This option works the same as
the 'i' options for app_dial and app_queue, in that they will ignore
any attempts by phones to forward the call.

(closes issue #13977)
Reported by: putnopvut
Patches:
      page_ignore_forwards.patch uploaded by putnopvut (license 60)
Tested by: putnopvut, acunningham


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 20:07:28 +00:00
Steve Murphy
4535c9c6dc Blocked revisions 164415 via svnmerge
........
r164415 | murf | 2008-12-15 12:42:05 -0700 (Mon, 15 Dec 2008) | 16 lines

I was getting this warning during a compile
on a 64-bit machine running ubuntu server 8.10, 
and gcc-4.3.2:

   [CXXi] chan_vpb.ii -> chan_vpb.oo
cc1plus: warnings being treated as errors
In file included from /home/murf/asterisk/trunk/include/asterisk/utils.h:671,
                 from chan_vpb.cc:46:
/home/murf/asterisk/trunk/include/asterisk/strings.h: In function ‘char* ast_str_truncate(ast_str*, ssize_t)’:
/home/murf/asterisk/trunk/include/asterisk/strings.h:479: error: comparison between signed and unsigned integer expressions
make[1]: *** [chan_vpb.oo] Error 1
make: *** [channels] Error 2

which this fix silences


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 19:57:59 +00:00
Mark Michelson
81311222e2 Merged revisions 164423 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164423 | mmichelson | 2008-12-15 13:53:29 -0600 (Mon, 15 Dec 2008) | 11 lines

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

........
r164422 | mmichelson | 2008-12-15 13:53:08 -0600 (Mon, 15 Dec 2008) | 3 lines

Add the deadlock note to ast_spawn_extension as well


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 19:54:18 +00:00
Mark Michelson
2850729218 Merged revisions 164419 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164419 | mmichelson | 2008-12-15 13:51:24 -0600 (Mon, 15 Dec 2008) | 12 lines

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

........
r164416 | mmichelson | 2008-12-15 13:45:07 -0600 (Mon, 15 Dec 2008) | 4 lines

Add notes to autoservice and pbx doxygen regarding a potential
deadlock scenario so that it is avoided in the future


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 19:52:19 +00:00