asterisk/asterisk.git
11 years agoRussell pointed out that using ast_strdupa() within a loop like this is
Tilghman Lesher [Fri, 18 Jul 2008 20:57:47 +0000 (20:57 +0000)]
Russell pointed out that using ast_strdupa() within a loop like this is
probably not a good idea, as we might run out of stack space.  Therefore,
changing this over to use the ast_str infrastructure for buffers is
probably a good idea.

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

11 years agoFix trunk devmode
Tilghman Lesher [Fri, 18 Jul 2008 20:41:02 +0000 (20:41 +0000)]
Fix trunk devmode

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

11 years ago updateconfig is not uri decoding variables,values from the GET url
Pari Nannapaneni [Fri, 18 Jul 2008 20:14:05 +0000 (20:14 +0000)]
 updateconfig is not uri decoding variables,values from the GET url

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

11 years agoMerged revisions 132112 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 19:09:39 +0000 (19:09 +0000)]
Merged revisions 132112 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132112 | tilghman | 2008-07-18 14:06:10 -0500 (Fri, 18 Jul 2008) | 6 lines

Fix for Taiwanese number syntax
(closes issue #12319)
 Reported by: CharlesWang
 Patches:
       saynumber-tw-1.4.18.1.patch uploaded by CharlesWang (license 444)

........

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

11 years agoMerged revisions 132107 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 18:50:37 +0000 (18:50 +0000)]
Merged revisions 132107 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132107 | tilghman | 2008-07-18 13:47:50 -0500 (Fri, 18 Jul 2008) | 6 lines

Textual clarification
(closes issue #13106)
 Reported by: flefoll
 Patches:
       config.c.br14.120173.patch-unknown-directive uploaded by flefoll (license 244)

........

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

11 years agoMake sure we break the poll so that messages queued will be sent on the SS7 when...
Matthew Fredrickson [Fri, 18 Jul 2008 18:50:00 +0000 (18:50 +0000)]
Make sure we break the poll so that messages queued will be sent on the SS7 when using CLI commands for blocking and blocking of CICs and linksets.

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

11 years agoFix magic Revision keywords in hashtab.c and change cdr_radius.c to use
Brett Bryant [Fri, 18 Jul 2008 17:55:41 +0000 (17:55 +0000)]
Fix magic Revision keywords in hashtab.c and change cdr_radius.c to use
the same keyword as the other files (patch by eliel).

(closes issue #13104)
Reported by: eliel
Patches:
      revision.patch uploaded by eliel (license 64)

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

11 years agoBlocked revisions 132042 via svnmerge
Tilghman Lesher [Fri, 18 Jul 2008 17:39:18 +0000 (17:39 +0000)]
Blocked revisions 132042 via svnmerge

........
r132042 | tilghman | 2008-07-18 12:33:42 -0500 (Fri, 18 Jul 2008) | 3 lines

Spinlock within the destroy, to allow a scheduled job to continue, if it's
waiting on the mutex which the destroy thread has.

........

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

11 years agoMerged revisions 131988 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 17:10:34 +0000 (17:10 +0000)]
Merged revisions 131988 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131988 | tilghman | 2008-07-18 12:10:01 -0500 (Fri, 18 Jul 2008) | 2 lines

Oops

........

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

11 years agoMerged revisions 131985 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 16:48:18 +0000 (16:48 +0000)]
Merged revisions 131985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131985 | tilghman | 2008-07-18 11:46:23 -0500 (Fri, 18 Jul 2008) | 2 lines

Preserve ABI compatibility with last change

........

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

11 years agoMerged revisions 131970 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 16:33:56 +0000 (16:33 +0000)]
Merged revisions 131970 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131970 | tilghman | 2008-07-18 11:30:31 -0500 (Fri, 18 Jul 2008) | 2 lines

Make the ast_assert call within ast_sched_del report something useful.

........

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

11 years agoMerged revisions 131921 via svnmerge from
Kevin P. Fleming [Fri, 18 Jul 2008 16:16:12 +0000 (16:16 +0000)]
Merged revisions 131921 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131921 | kpfleming | 2008-07-18 11:15:41 -0500 (Fri, 18 Jul 2008) | 2 lines

remove the dlfcn compatibility stuff, because no platforms that Asterisk currently runs on it use it, and it doesn't build anyway

........

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

11 years agoMerged revisions 131915 via svnmerge from
Brett Bryant [Fri, 18 Jul 2008 15:38:22 +0000 (15:38 +0000)]
Merged revisions 131915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131915 | bbryant | 2008-07-18 10:34:42 -0500 (Fri, 18 Jul 2008) | 4 lines

Fix a bug in blind transfers where the BLINDTRANSFER variable isn't always set to the other end of the blind transfer.

(closes issue #12586)

........

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

11 years agoAdd configuration option to chan_dahdi.conf to allow buffering policy and number...
Jeff Peeler [Thu, 17 Jul 2008 22:40:00 +0000 (22:40 +0000)]
Add configuration option to chan_dahdi.conf to allow buffering policy and number of buffers to be configured per channel. Syntax:

buffers=<num of buffers>,<policy>

Where the number of buffers is some non-negative integer and the policy is either "full", "half", or "immediate".

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

11 years agoDocument that the duration of dtmf may be passed to
Mark Michelson [Thu, 17 Jul 2008 21:26:41 +0000 (21:26 +0000)]
Document that the duration of dtmf may be passed to
the SendDTMF application. Also correct the default
pause between digits.

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

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

11 years agoMerged revisions 131790 via svnmerge from
Tilghman Lesher [Thu, 17 Jul 2008 20:37:14 +0000 (20:37 +0000)]
Merged revisions 131790 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131790 | tilghman | 2008-07-17 15:35:44 -0500 (Thu, 17 Jul 2008) | 7 lines

Revert part of issue #5620 (revision 6965) as it appears that it was in error.
This should fix talk call progress on analog lines.
(closes issue #12178)
 Reported by: michael-fig
 Patches:
       20080717__bug12178.diff.txt uploaded by Corydon76 (license 14)

........

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

11 years agoFix memory leaks
Tilghman Lesher [Thu, 17 Jul 2008 18:36:34 +0000 (18:36 +0000)]
Fix memory leaks
(closes issue #13099)
 Reported by: gknispel_proformatique
 Patches:
       res_config_sqlite_leak_on_error.patch uploaded by gknispel (license 261)

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

11 years agoFix a memory leak in register_group_feature when attempting to register
Brett Bryant [Thu, 17 Jul 2008 18:14:42 +0000 (18:14 +0000)]
Fix a memory leak in register_group_feature when attempting to register
a feature without specifying a group or feature to register.

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

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

11 years agoFix memory leak.
Tilghman Lesher [Thu, 17 Jul 2008 15:45:25 +0000 (15:45 +0000)]
Fix memory leak.
(Closes issue #13096)
Reported by gknispel_proformatique

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

11 years agoInstead of attempting to pass through AST_EVENT_DEVICE_STATE, use DEVICE_STATE_CHANGE
Russell Bryant [Thu, 17 Jul 2008 14:46:29 +0000 (14:46 +0000)]
Instead of attempting to pass through AST_EVENT_DEVICE_STATE, use DEVICE_STATE_CHANGE
instead.  DEVICE_STATE is a state change on one server, and DEVICE_STATE_CHANGE is
the "real" state of that device across all servers sharing state.  This would have
only been a problem with distributed device state.

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

11 years agoChange several 'core' commands to be 'dialplan' commands (with appropriate
Tilghman Lesher [Thu, 17 Jul 2008 14:00:27 +0000 (14:00 +0000)]
Change several 'core' commands to be 'dialplan' commands (with appropriate
deprecation, of course)
(closes issue #13016)
 Reported by: caio1982
 Patches:
       dialplan_globals6.diff uploaded by caio1982 (license 22)

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

11 years ago(closes issue #13089)
Steve Murphy [Wed, 16 Jul 2008 23:53:02 +0000 (23:53 +0000)]
(closes issue #13089)
Reported by: murf

Most of this bug was already fixed by Tilghman before
I opened it; Many thanks to Tilghman for his fix
in svn version 125794. That fix cleared up some of the
fields in the lock_info.

This commit changes the address that is stored for the
lock in the lock_info struct, so that it is the same
as that passed into the locking macros. This makes
searching for a lock_info (as in log_show_lock())
by its lock addr possible. The lock_addr field is
infinitely more useful if it is the same as what
is 'publicly' available outside the lock_info code.

Many thanks to kpfleming, putnopvut, and Russell for their
invaluable insights earlier today.

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

11 years agoJanitor project: convert free to ast_free
Brett Bryant [Wed, 16 Jul 2008 22:28:01 +0000 (22:28 +0000)]
Janitor project: convert free to ast_free

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

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

11 years agoMerged revisions 131491 via svnmerge from
Brett Bryant [Wed, 16 Jul 2008 22:17:36 +0000 (22:17 +0000)]
Merged revisions 131491 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131491 | bbryant | 2008-07-16 17:17:07 -0500 (Wed, 16 Jul 2008) | 6 lines

Fix a bug in iax2 registration that allowed peers to register with
case-insensitive names (user_cmp_cb and peer_cmp_cb are now both
case-sensitive).

(closes issue #13091)

........

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

11 years agoFixes sysinfo operator issue also fixed elsewhere in r131445.
Brett Bryant [Wed, 16 Jul 2008 21:54:08 +0000 (21:54 +0000)]
Fixes sysinfo operator issue also fixed elsewhere in r131445.

(issue #13057)

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

11 years agoBlocked revisions 131480 via svnmerge
Tilghman Lesher [Wed, 16 Jul 2008 21:50:08 +0000 (21:50 +0000)]
Blocked revisions 131480 via svnmerge

........
r131480 | tilghman | 2008-07-16 16:46:06 -0500 (Wed, 16 Jul 2008) | 2 lines

Apparently, in certain cases, a callno is already destroyed when iax2_destroy is called.

........

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

11 years agoFixes an issue with "core show sysinfo" that used the wrong operator to
Brett Bryant [Wed, 16 Jul 2008 21:24:18 +0000 (21:24 +0000)]
Fixes an issue with "core show sysinfo" that used the wrong operator to
calculate the number of bytes from a sysinfo structure.
unsigned long.

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

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

11 years agoMerged revisions 131421 via svnmerge from
Russell Bryant [Wed, 16 Jul 2008 20:48:27 +0000 (20:48 +0000)]
Merged revisions 131421 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131421 | russell | 2008-07-16 15:47:53 -0500 (Wed, 16 Jul 2008) | 7 lines

Always ensure that the channel's tech_pvt reference is NULL after calling the
destroy callback.
(closes issue #13060)
Reported by: jpgrayson
Patches:
      chan_iax2_tech_pvt_crash.patch uploaded by jpgrayson (license 492)

........

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

11 years agoMerged revisions 131369 via svnmerge from
Mark Michelson [Wed, 16 Jul 2008 20:24:12 +0000 (20:24 +0000)]
Merged revisions 131369 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131369 | mmichelson | 2008-07-16 15:23:02 -0500 (Wed, 16 Jul 2008) | 14 lines

Move the init_queue call back to where it used to be (changed
Sept 12 last year). It was moved then to prevent a memory leak.
Since then, the same memory leak recurred and was fixed in a
better way.

Now it has been found that the placement of this init_queue
call can cause problems if a realtime queue has values changed
to an empty string. The problem is that the default value
for that queue parameter would not be set.

(closes issue #13084)
Reported by: elbriga

........

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

11 years agoDon't try to dereference the dbfile pointer if
Mark Michelson [Wed, 16 Jul 2008 19:57:02 +0000 (19:57 +0000)]
Don't try to dereference the dbfile pointer if
we know that it's NULL.

(closes issue #13092)
Reported by: gknispel_proformatique
Patches:
      trunk_sqlite_check_vars_null.patch uploaded by gknispel (license 261)

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

11 years agoMerged revisions 131357 via svnmerge from
Mark Michelson [Wed, 16 Jul 2008 19:37:42 +0000 (19:37 +0000)]
Merged revisions 131357 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131357 | mmichelson | 2008-07-16 14:37:08 -0500 (Wed, 16 Jul 2008) | 6 lines

Apparently, "thread safety" is important, whatever
that means. :P

(Thanks Russell!)

........

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

11 years agoMerged revisions 131299 via svnmerge from
Mark Michelson [Wed, 16 Jul 2008 18:59:27 +0000 (18:59 +0000)]
Merged revisions 131299 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131299 | mmichelson | 2008-07-16 13:57:34 -0500 (Wed, 16 Jul 2008) | 13 lines

Make absolutely certain that the transfer datastore
is removed from the calling channel once the caller
is finished in the queue. This could have weird con-
sequences when dialing local queue members when multiple
transfers occur on a single call.

Also fixed a memory leak that would occur when an
attended transfer occurred from a queue member.

(closes issue #13047)
Reported by: festr

........

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

11 years agoMerged revisions 131242 via svnmerge from
Steve Murphy [Wed, 16 Jul 2008 17:59:33 +0000 (17:59 +0000)]
Merged revisions 131242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131242 | murf | 2008-07-16 11:53:43 -0600 (Wed, 16 Jul 2008) | 19 lines

(closes issue #13090)
Reported by: murf

The problem was that, esoteric as it is, because the hangerupper
context immediately preceded the std-priv-extent macro, that
the checking code accidentally would fall from traversing hangerupper
into the std-priv-exten macro, where it would hit the hangerupper
in the 'includes', and proceed into an infinite recursion.

A small fix to traverse into the statements of the context instead
of the context solves this issue.

I also added some commented out printfs for debug, which were pretty
handy in the face of a dorky gdb.

This was a problem around since the package was first written;
but evidently pretty rare in turning up in the field.

........

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

11 years agoAdd missing terminator to ast_event_subscribe to fix a crash.
Russell Bryant [Wed, 16 Jul 2008 15:08:22 +0000 (15:08 +0000)]
Add missing terminator to ast_event_subscribe to fix a crash.
(from rev 131206 in the 1.6.0 branch)

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

11 years agoFix rotate strategy
Tilghman Lesher [Wed, 16 Jul 2008 00:52:48 +0000 (00:52 +0000)]
Fix rotate strategy
(Closes issue #13086)

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

11 years ago(closes issue #12960)
Steve Murphy [Tue, 15 Jul 2008 23:36:19 +0000 (23:36 +0000)]
(closes issue #12960)
Reported by: mnicholson

Spent most of the day on this bug, and the
solution was so simple. Just had to find and
understand the problem.

The problem was, that the routine to copy
the existing switches, includes, and ignorepats
from the old context to the new one, wasn't
getting called when the context is already
existent. (In other words, if AEL is adding
a new context to the mix, they get copied,
but if pbx_config already defined a context,
then the copy wasn't happening. This made
no sense, so I moved the call to copy the
includes & etc, no matter the case.

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

11 years agoFix a couple of places in res_agi where the agi_commands lock would not be
Russell Bryant [Tue, 15 Jul 2008 18:46:40 +0000 (18:46 +0000)]
Fix a couple of places in res_agi where the agi_commands lock would not be
released, causing a deadlock.  (Reported by mvanbaak in #asterisk-dev,
discovered by bbryant's change to the lock tracking code to yell at you
if a thread exits with a lock still held)

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

11 years agoMerged revisions 130959 via svnmerge from
Tilghman Lesher [Tue, 15 Jul 2008 18:25:34 +0000 (18:25 +0000)]
Merged revisions 130959 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130959 | tilghman | 2008-07-15 12:19:13 -0500 (Tue, 15 Jul 2008) | 8 lines

astman_send_error does not need a newline appended -- the API takes care of
that for us.
(closes issue #13068)
 Reported by: gknispel_proformatique
 Patches:
       asterisk_1_4_astman_send.patch uploaded by gknispel (license 261)
       asterisk_trunk_astman_send.patch uploaded by gknispel (license 261)

........

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

11 years agoFix memory leak in app_queue when a device state is changed but it isn't
Brett Bryant [Tue, 15 Jul 2008 18:14:02 +0000 (18:14 +0000)]
Fix memory leak in app_queue when a device state is changed but it isn't
a member of any queue.

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

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

11 years agoMerged revisions 131012 via svnmerge from
Michiel van Baak [Tue, 15 Jul 2008 17:49:48 +0000 (17:49 +0000)]
Merged revisions 131012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131012 | mvanbaak | 2008-07-15 19:47:15 +0200 (Tue, 15 Jul 2008) | 7 lines

remove 4 lines of redundant code.

(closes issue #13080)
Reported by: gknispel_proformatique
Patches:
      trunk_ast_cdr_setapp.patch uploaded by gknispel (license 261)

........

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

11 years agoAdditional option for videosupport (always) that disables the optimization to
Tilghman Lesher [Tue, 15 Jul 2008 16:20:35 +0000 (16:20 +0000)]
Additional option for videosupport (always) that disables the optimization to
fail to setup video RTP if the two endpoints will not support it.  This assists
with call files and certain transfers to ensure that if two video phones are
ever connected, they will always share a video feed.

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

11 years agoMerged revisions 130889 via svnmerge from
Tilghman Lesher [Mon, 14 Jul 2008 23:59:54 +0000 (23:59 +0000)]
Merged revisions 130889 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130889 | tilghman | 2008-07-14 18:59:13 -0500 (Mon, 14 Jul 2008) | 8 lines

Override the callerid in all cases when the callerid is set in the user, not
just when a remote callerid is set.  Also, if not set in the user, allow the
remote CallerID to pass through.
(closes issue #12875)
 Reported by: dimas
 Patches:
       20080714__bug12875.diff.txt uploaded by Corydon76 (license 14)

........

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

11 years agoFix a memory leak in the case that /dev/null cannot be
Mark Michelson [Mon, 14 Jul 2008 22:22:57 +0000 (22:22 +0000)]
Fix a memory leak in the case that /dev/null cannot be
opened when running startup commands from cli.conf

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

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

11 years agoMerged revisions 130792 via svnmerge from
Mark Michelson [Mon, 14 Jul 2008 17:54:11 +0000 (17:54 +0000)]
Merged revisions 130792 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130792 | mmichelson | 2008-07-14 12:50:21 -0500 (Mon, 14 Jul 2008) | 8 lines

Add a check to the CAN_EARLY_BRIDGE macro in app_dial to
be sure there are no audiohooks present on the channels
involved. This fixed a one-way audio situation I had in
my test setup. I couldn't find any open issues that suggested
one-way audio with regards to mixmonitor (or other audiohook)
usage, though.

........

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

11 years agoMerged revisions 130735 via svnmerge from
Michiel van Baak [Mon, 14 Jul 2008 17:21:18 +0000 (17:21 +0000)]
Merged revisions 130735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130735 | mvanbaak | 2008-07-14 19:10:21 +0200 (Mon, 14 Jul 2008) | 10 lines

notify the user that dnsmgr refresh wont work when dnsmgr is not enabled.
Previously this command would automagically appear and disappear.
This was confusing.

(closes issue #12796)
Reported by: chappell
Patches:
      dnsmgr_refresh_3.diff uploaded by chappell (license 8)
Tested by: russell, chappell, mvanbaak

........

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

11 years agofree memory used by the x11 grabber when closing it.
Luigi Rizzo [Mon, 14 Jul 2008 16:50:54 +0000 (16:50 +0000)]
free memory used by the x11 grabber when closing it.

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

11 years agouse ast_pthread_create_detached_background() instead of redoing
Luigi Rizzo [Mon, 14 Jul 2008 16:50:24 +0000 (16:50 +0000)]
use ast_pthread_create_detached_background() instead of redoing
it with separate calls

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

11 years agoSwap "static" and "const", so that "static" appears at the beginning of each
Tilghman Lesher [Mon, 14 Jul 2008 15:44:07 +0000 (15:44 +0000)]
Swap "static" and "const", so that "static" appears at the beginning of each
declaration (suppresses a warning).
(closes issue #13070)
 Reported by: gknispel_proformatique
 Patches:
       asterisk_trunk_const_static.patch uploaded by gknispel (license 261)

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

11 years agoMerged revisions 130634 via svnmerge from
Russell Bryant [Mon, 14 Jul 2008 10:39:23 +0000 (10:39 +0000)]
Merged revisions 130634 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130634 | russell | 2008-07-14 05:38:14 -0500 (Mon, 14 Jul 2008) | 2 lines

Bump up the debug level for a message.

........

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

11 years agoMake all sed calls Posix sed compatible.
Michiel van Baak [Sun, 13 Jul 2008 23:14:03 +0000 (23:14 +0000)]
Make all sed calls Posix sed compatible.
To make sure nobody commits script-modified files we first make a backup
of asterisk.tex, run the script, generate the pdf and / or html,
and put the original asterisk.tex back.
This will guard us for the stuff that happened before that someone committed
a locally modified asterisk.tex, with changes done by this script.

(closes issue #13062)
Reported by: mvanbaak
Patches:
      sed_without-i-v3.diff uploaded by mvanbaak (license 7)
Tested by: mvanbaak

Feedback from Corydon. Thanks for taking the time to go through this.

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

11 years agoConvert chan_skinny's open-coded linked lists to the list macros
Michiel van Baak [Sun, 13 Jul 2008 22:59:35 +0000 (22:59 +0000)]
Convert chan_skinny's open-coded linked lists to the list macros

(closes issue #12956)
Reported by: DEA
Patches:
      chan_skinny-linkedlists-v2.txt uploaded by DEA (license 3)
Tested by: DEA, mvanbaak

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

11 years agoMerged revisions 130573 via svnmerge from
Michiel van Baak [Sun, 13 Jul 2008 22:50:31 +0000 (22:50 +0000)]
Merged revisions 130573 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130573 | mvanbaak | 2008-07-14 00:48:51 +0200 (Mon, 14 Jul 2008) | 8 lines

fix memory leak when originate from manager cannot create a thread

(closes issue #13069)
Reported by: gknispel_proformatique
Patches:
      asterisk_trunk_action_originate.patch uploaded by gknispel (license 261)
  Tested by: gknispel_proformatique, mvanbaak

........

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

11 years agoMerged revisions 130514 via svnmerge from
Tilghman Lesher [Sun, 13 Jul 2008 17:58:47 +0000 (17:58 +0000)]
Merged revisions 130514 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130514 | tilghman | 2008-07-13 12:56:10 -0500 (Sun, 13 Jul 2008) | 4 lines

Reverting 2 changesets, as it breaks incoming IAX2 calls
(Related to issue #12963)
Reported by: mvanbaak

........

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

11 years agorestore ASTERISKVERSION marker to asterisk.tex.
Michiel van Baak [Sun, 13 Jul 2008 14:58:40 +0000 (14:58 +0000)]
restore ASTERISKVERSION marker to asterisk.tex.
This got lost in commit 97634

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

11 years agoUnlock list before returning
Tilghman Lesher [Sun, 13 Jul 2008 02:34:32 +0000 (02:34 +0000)]
Unlock list before returning

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

11 years agoBlocked revisions 130373 via svnmerge
Michiel van Baak [Sat, 12 Jul 2008 10:26:55 +0000 (10:26 +0000)]
Blocked revisions 130373 via svnmerge

........
r130373 | mvanbaak | 2008-07-12 12:25:52 +0200 (Sat, 12 Jul 2008) | 6 lines

in 1.4 the functions still have | as argument seperator.
This commit fixes the use of RAND in the ael random function.

(closes issue #13061)
Reported by: danpwi

........

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

11 years agonot needed here
Kevin P. Fleming [Fri, 11 Jul 2008 22:23:55 +0000 (22:23 +0000)]
not needed here

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

11 years ago(closes issue #13041)
Steve Murphy [Fri, 11 Jul 2008 22:03:19 +0000 (22:03 +0000)]
(closes issue #13041)
Reported by: eliel

OK, now the context registrar slot is strdup'd. It is freed
on destruction. I don't see the need to do this with all
the structs' registrar fields, but if some wild case proves
they should also be handled this way, then we can
put in the extra work at that time.

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

11 years agoa small change to make things compile
Steve Murphy [Fri, 11 Jul 2008 21:50:21 +0000 (21:50 +0000)]
a small change to make things compile

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

11 years agoSupport new TRANSPORT definitions in libss7
Matthew Fredrickson [Fri, 11 Jul 2008 21:36:26 +0000 (21:36 +0000)]
Support new TRANSPORT definitions in libss7

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

11 years agoMerged revisions 130236 via svnmerge from
Mark Michelson [Fri, 11 Jul 2008 20:03:55 +0000 (20:03 +0000)]
Merged revisions 130236 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130236 | mmichelson | 2008-07-11 15:03:23 -0500 (Fri, 11 Jul 2008) | 3 lines

Remove redundant logic

........

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

11 years agoDon't copy on NULL.
Tilghman Lesher [Fri, 11 Jul 2008 19:56:34 +0000 (19:56 +0000)]
Don't copy on NULL.

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

11 years agoAdd some debug code and add a missing release
Tilghman Lesher [Fri, 11 Jul 2008 19:53:38 +0000 (19:53 +0000)]
Add some debug code and add a missing release

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

11 years agoFix trunk breakage
Tilghman Lesher [Fri, 11 Jul 2008 19:40:55 +0000 (19:40 +0000)]
Fix trunk breakage

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

11 years agoMerged revisions 130173 via svnmerge from
Mark Michelson [Fri, 11 Jul 2008 19:14:15 +0000 (19:14 +0000)]
Merged revisions 130173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130173 | mmichelson | 2008-07-11 14:13:29 -0500 (Fri, 11 Jul 2008) | 7 lines

Fix a typo in audiohook_read_frame_both.

While this change has not been proven to fix any
specific issue, it is incorrect and could cause
unforeseen problems.

........

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

11 years agoMerged revisions 130169 via svnmerge from
Tilghman Lesher [Fri, 11 Jul 2008 18:52:42 +0000 (18:52 +0000)]
Merged revisions 130169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130169 | tilghman | 2008-07-11 13:51:56 -0500 (Fri, 11 Jul 2008) | 7 lines

Ensure that a destination callno of 0 will not match for frames that do not
start a dialog (new, lagrq, and ping).
(closes issue #12963)
 Reported by: russellb
 Patches:
       chan_iax2_dup_new_fix4.patch uploaded by jpgrayson (license 492)

........

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

11 years agoMissed one. Formatting only.
Sean Bright [Fri, 11 Jul 2008 18:32:26 +0000 (18:32 +0000)]
Missed one.  Formatting only.

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

11 years ago(closes issue #13041)
Steve Murphy [Fri, 11 Jul 2008 18:24:31 +0000 (18:24 +0000)]
(closes issue #13041)
Reported by: eliel
Tested by: murf

(closes issue #12960)
Reported by: mnicholson

In this 'omnibus' fix, I **think** I solved both
the problem in 13041, where unloading pbx_ael.so
caused crashes, or incomplete removal of previous
registrar'ed entries. And I added code to completely
remove all includes, switches, and ignorepats that
had a matching registrar entry, which should
appease 12960.

I also added a lot of seemingly useless brackets
around single statement if's, which helped debug
so much that I'm leaving them there.

I added a routine to check the correlation between
the extension tree lists and the hashtab
tables. It can be amazingly helpful when you have
lots of dialplan stuff, and need to narrow
down where a problem is occurring. It's ifdef'd
out by default.

I cleaned up the code around the new CIDmatch code.
It was leaving hanging extens with bad ptrs, getting confused
over which objects to remove, etc. I tightened
up the code and changed the call to remove_exten
in the merge_and_delete code.

I added more conditions to check for empty context
worthy of deletion. It's not empty if there are
any includes, switches, or ignorepats present.

If I've missed anything, please re-open this bug,
and be prepared to supply example dialplan code.

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

11 years agoJanitor patch to change uses of sizeof to ARRAY_LEN
Brett Bryant [Fri, 11 Jul 2008 18:09:35 +0000 (18:09 +0000)]
Janitor patch to change uses of sizeof to ARRAY_LEN

(closes issue #13054)
Reported by: pabelanger
Patches:
      ARRAY_LEN.patch2 uploaded by pabelanger (license 224)
Tested by: seanbright

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

11 years agoMerged revisions 130102 via svnmerge from
Tilghman Lesher [Fri, 11 Jul 2008 17:29:24 +0000 (17:29 +0000)]
Merged revisions 130102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130102 | tilghman | 2008-07-11 11:50:42 -0500 (Fri, 11 Jul 2008) | 9 lines

Pass the devicestate from an underlying channel up through the Agent channel.
This should make the Agent always report the correct device state, even when
the underlying channel is used for other purposes.
(closes issue #12773)
 Reported by: davidw
 Patches:
       20080710__bug12773.diff.txt uploaded by Corydon76 (license 14)
 Tested by: davidw

........

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

11 years agoclean up a bunch more Zaptel-related references
Kevin P. Fleming [Fri, 11 Jul 2008 16:18:01 +0000 (16:18 +0000)]
clean up a bunch more Zaptel-related references

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

11 years agoBlocked revisions 130042 via svnmerge
Kevin P. Fleming [Fri, 11 Jul 2008 16:08:37 +0000 (16:08 +0000)]
Blocked revisions 130042 via svnmerge

........
r130042 | kpfleming | 2008-07-11 11:08:03 -0500 (Fri, 11 Jul 2008) | 5 lines

new installations should be using DAHDI instead of Zaptel, so the sample config file is now chan_dahdi.conf instead of zapata.conf

also, convert remaining references to zapata.conf in various places

........

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

11 years agoMerged revisions 130039 via svnmerge from
Kevin P. Fleming [Fri, 11 Jul 2008 15:57:17 +0000 (15:57 +0000)]
Merged revisions 130039 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130039 | kpfleming | 2008-07-11 10:41:56 -0500 (Fri, 11 Jul 2008) | 4 lines

add support for a configuration parameter for 'inband audio during RELEASE', which is currently mandatory in libpri-1.4.4 but will become configurable in libpri-1.4.5 later today

(related to issue #13042)

........

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

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

........
r129970 | russell | 2008-07-11 09:18:43 -0500 (Fri, 11 Jul 2008) | 2 lines

add a simple ASTOBJ_TRYWRLOCK macro ...

........

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

11 years agoremove space in property value
Russell Bryant [Fri, 11 Jul 2008 14:22:26 +0000 (14:22 +0000)]
remove space in property value

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

11 years agoMerged revisions 129966 via svnmerge from
Kevin P. Fleming [Fri, 11 Jul 2008 14:16:15 +0000 (14:16 +0000)]
Merged revisions 129966 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129966 | kpfleming | 2008-07-11 09:03:52 -0500 (Fri, 11 Jul 2008) | 5 lines

fix a flaw found while experimenting with structure alignment and padding; low-fence checking would not work properly on 64-bit platforms, because the compiler was putting 4 bytes of padding between the fence field and the allocation memory block

added a very obvious runtime warning if this condition reoccurs, so the developer who broke it can be chastised into fixing it :-)

........
r129967 | kpfleming | 2008-07-11 09:03:52 -0500 (Fri, 11 Jul 2008) | 5 lines

simplify calculation

........

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

11 years agoMerged revisions 129907 via svnmerge from
Kevin P. Fleming [Fri, 11 Jul 2008 12:21:29 +0000 (12:21 +0000)]
Merged revisions 129907 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129907 | kpfleming | 2008-07-11 07:15:42 -0500 (Fri, 11 Jul 2008) | 2 lines

don't attempt to set user/group ownership of extracted sound files (reported on asterisk-users)

........

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

11 years agoFix some usages of snprintf, and clarify a couple variable names.
Sean Bright [Fri, 11 Jul 2008 00:55:06 +0000 (00:55 +0000)]
Fix some usages of snprintf, and clarify a couple variable names.

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

11 years agoMerged revisions 129803 via svnmerge from
Tilghman Lesher [Thu, 10 Jul 2008 22:06:07 +0000 (22:06 +0000)]
Merged revisions 129803 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129803 | tilghman | 2008-07-10 16:57:05 -0500 (Thu, 10 Jul 2008) | 8 lines

Correctly deal with duplicate NEW frames (due to retransmission).  Also, fixup
the destination call number matching to be more strict and reliable.
(closes issue #12963)
 Reported by: jpgrayson
 Patches:
       chan_iax2_dup_new_fix3.patch uploaded by jpgrayson (license 492)
 Tested by: jpgrayson, Corydon76

........

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

11 years agoMerged revisions 129741 via svnmerge from
Tilghman Lesher [Thu, 10 Jul 2008 21:23:23 +0000 (21:23 +0000)]
Merged revisions 129741 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129741 | tilghman | 2008-07-10 16:19:48 -0500 (Thu, 10 Jul 2008) | 2 lines

Oops

........

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

11 years agoMove phoneprov config files to be installed with 'make samples' so changes aren't...
Terry Wilson [Thu, 10 Jul 2008 20:56:20 +0000 (20:56 +0000)]
Move phoneprov config files to be installed with 'make samples' so changes aren't inadvertently lost on a 'make install'

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

11 years agoRemoved the fn2 field from the vm_state structure.
Mark Michelson [Thu, 10 Jul 2008 20:33:13 +0000 (20:33 +0000)]
Removed the fn2 field from the vm_state structure.

fn2 was used in three functions. In every case, it was initialized
in the function it was used in. This meant there was no need
to have it in a malloc'd structure just taking up space. Furthermore
two of the functions it was used in were completely unnecessary since
fn2 was set to exactly the same value as the vm_state's fn string.

fn2 was a char array sized at PATH_MAX. On my system, PATH_MAX is
4096. This equates to a 4K memory savings per vm_state allocated.
Since there is a vm_state malloc'd for every voicemail user on
the system, this could potentially add up nicely if there are lots
of users. In addition, a vm_state is allocated on the stack each
time a caller calls the VoiceMailMain application, meaning that
there is a significant stack savings with this patch too.

Of course, a single vm_state struct still takes up approximately
20K on my system (when using IMAP storage. Without IMAP storage,
there would be about another 300 bytes fewer usage), even with
this removal. Further optimizations are probably possible,
but most likely not as easy as this one.

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

11 years agoFixes a bug where the interface for a queue member gets reloaded as the state_interfa...
Brett Bryant [Thu, 10 Jul 2008 19:13:12 +0000 (19:13 +0000)]
Fixes a bug where the interface for a queue member gets reloaded as the state_interface, if a state_interface was set, on reload because the
state_interface isn't stored in the ast_db.

(closes issue #13043)
Reported by: jvandal
Patches:
      app_queue.patch uploaded by jvandal (license 413)

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

11 years agoA couple more minor text changes
Sean Bright [Thu, 10 Jul 2008 18:19:17 +0000 (18:19 +0000)]
A couple more minor text changes

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

11 years agoRemove extraneous \n. Pointed out by eliel on #asterisk-dev.
Sean Bright [Thu, 10 Jul 2008 18:16:21 +0000 (18:16 +0000)]
Remove extraneous \n.  Pointed out by eliel on #asterisk-dev.

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

11 years agoRemove deprecated 'show parkedcalls' CLI command
Michiel van Baak [Thu, 10 Jul 2008 16:21:16 +0000 (16:21 +0000)]
Remove deprecated 'show parkedcalls' CLI command

(closes issue #13038)
Reported by: eliel
Patches:
      finish.deprecate.patch uploaded by eliel (license 64)

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

11 years agoMerged revisions 129567 via svnmerge from
Russell Bryant [Thu, 10 Jul 2008 16:12:51 +0000 (16:12 +0000)]
Merged revisions 129567 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129567 | russell | 2008-07-10 11:03:59 -0500 (Thu, 10 Jul 2008) | 3 lines

Note that pbx_spool.so is the module used for call files
(inspired by a question in #asterisk)

........

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

11 years agoBlocked revisions 129505 via svnmerge
Sean Bright [Thu, 10 Jul 2008 14:09:18 +0000 (14:09 +0000)]
Blocked revisions 129505 via svnmerge

........
r129505 | seanbright | 2008-07-10 09:57:19 -0400 (Thu, 10 Jul 2008) | 2 lines

Update svn:ignore

........

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

11 years agoUpdate svn:ignore
Sean Bright [Thu, 10 Jul 2008 13:54:29 +0000 (13:54 +0000)]
Update svn:ignore

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

11 years agoMerged revisions 129436 via svnmerge from
Mark Michelson [Wed, 9 Jul 2008 19:40:30 +0000 (19:40 +0000)]
Merged revisions 129436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129436 | mmichelson | 2008-07-09 14:32:20 -0500 (Wed, 09 Jul 2008) | 13 lines

Fix a problem where inbound rfc2833 audio would be sent to the
core instead of being P2P bridged. When the core regenerated
the rfc2833 packet for the outbound leg, the SSRC would be different
than the RTP audio on the call leg causing DTMF detection issues on
the far end.

(closes issue #12955)
Reported by: tonyredstone
Patches:
      dynamic_rtp.patch uploaded by tsearle (license 373)
Tested by: tonyredstone

........

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

11 years agoAdd Proceeding() application (#13025)
Matthew Fredrickson [Wed, 9 Jul 2008 15:57:06 +0000 (15:57 +0000)]
Add Proceeding() application (#13025)

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

11 years agoMerged revisions 129343 via svnmerge from
Sean Bright [Wed, 9 Jul 2008 13:44:43 +0000 (13:44 +0000)]
Merged revisions 129343 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129343 | seanbright | 2008-07-09 09:41:21 -0400 (Wed, 09 Jul 2008) | 4 lines

Look for the system installed awk instead of assuming it's at /usr/bin/awk.

Pointed out by jmls via #asterisk-dev.

........

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

11 years agoCode wasn't ready to be merged - see -dev list discussion
Tilghman Lesher [Wed, 9 Jul 2008 03:39:59 +0000 (03:39 +0000)]
Code wasn't ready to be merged - see -dev list discussion

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

11 years agoFix compilation error when IMAP storage is enabled
Mark Michelson [Tue, 8 Jul 2008 22:56:12 +0000 (22:56 +0000)]
Fix compilation error when IMAP storage is enabled

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

11 years agoBlocked revisions 129208 via svnmerge
Mark Michelson [Tue, 8 Jul 2008 21:32:09 +0000 (21:32 +0000)]
Blocked revisions 129208 via svnmerge

........
r129208 | mmichelson | 2008-07-08 16:31:51 -0500 (Tue, 08 Jul 2008) | 3 lines

Update documentation to have the correct option name

........

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

11 years agoBlocked revisions 129158 via svnmerge
Mark Michelson [Tue, 8 Jul 2008 21:10:33 +0000 (21:10 +0000)]
Blocked revisions 129158 via svnmerge

........
r129158 | mmichelson | 2008-07-08 16:09:10 -0500 (Tue, 08 Jul 2008) | 14 lines

Backport TCP-related timeouts to IMAP voicemail in 1.4
since it should solve bugs people are experiencing. Specifically,
there are times where communication with the IMAP server causes
system calls to block forever. If this should happen when querying
the mailbox so that chan_sip's do_monitor thread can send MWI to
a phone, it means that SIP calls cannot be processed any more.

The timeout options are outlined in doc/imapstorage.txt. Defaults
for the timeouts are sixty seconds.

(closes issue #12987)
Reported by: mthomasslo

........

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

11 years agoFix a bug in SRV lookups where dnsmgr would discard everything but the
Brett Bryant [Tue, 8 Jul 2008 21:00:01 +0000 (21:00 +0000)]
Fix a bug in SRV lookups where dnsmgr would discard everything but the
first SRV result from DNS before processing weights and priorities and
dns_parse_answer wouldn't report that there were no records in DNS
unless a failure occured. Also fixed a bug where dnsmgr_refresh would
report that a entry was being changed when ast_gethostbyname had failed.

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

11 years agoMerged revisions 129149 via svnmerge from
Tilghman Lesher [Tue, 8 Jul 2008 20:30:29 +0000 (20:30 +0000)]
Merged revisions 129149 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129149 | tilghman | 2008-07-08 15:27:47 -0500 (Tue, 08 Jul 2008) | 8 lines

Cause SIP to return a 480 instead of a 404 when a sip peer exists, but is not
registered.
(closes issue #12885)
 Reported by: ibc
 Patches:
       20080701__bug12885__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: ibc

........

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

11 years agoReduce length of time that 'asterisk -rx' waits.
Tilghman Lesher [Tue, 8 Jul 2008 20:17:08 +0000 (20:17 +0000)]
Reduce length of time that 'asterisk -rx' waits.
(closes issue #13001)
 Reported by: eliel
 Patches:
       20080708__bug13001.diff.txt uploaded by Corydon76 (license 14)
       20080708__bug13001.diff.txt.fixed uploaded by eliel (license 64)
 Tested by: Corydon76, eliel

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

11 years agoMerged revisions 129047 via svnmerge from
Tilghman Lesher [Tue, 8 Jul 2008 16:49:01 +0000 (16:49 +0000)]
Merged revisions 129047 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129047 | tilghman | 2008-07-08 11:45:23 -0500 (Tue, 08 Jul 2008) | 7 lines

Timestamp decoding for video mini-frames is bogus, because the timestamp only
includes 15 bits, unlike voice frames, which contain a 16-bit timestamp.
(closes issue #13013)
 Reported by: jpgrayson
 Patches:
       chan_iax2_unwrap_ts.patch uploaded by jpgrayson (license 492)

........

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