asterisk/asterisk.git
14 years agoRound 2 of IMAP_STORAGE app_voicemail.c fixes:
Mark Michelson [Wed, 23 Apr 2008 00:58:49 +0000 (00:58 +0000)]
Round 2 of IMAP_STORAGE app_voicemail.c fixes:

This fixes a bug that was thought to be fixed already.

app_voicemail, if using IMAP_STORAGE, has a problem because
the IMAP header files include syslog.h, which define LOG_WARNING
and LOG_DEBUG to be different than what Asterisk uses for those
same macros. This was "fixed" in the past by including all the
IMAP header files prior to including asterisk.h. This fix worked...
unless you were to try to compile with MALLOC_DEBUG. MALLOC_DEBUG
prepends the inclusion of astmm.h to every file, which means that no
matter what order the includes are in in app_voicemail, the unexpected
values for LOG_WARNING and LOG_DEBUG will be in place.

The action taken for this fix was to define AST_LOG_* macros in addition
to the LOG_* macros already defined. These new macros are used in app_voicemail.c,
logger.h, and astobj.h right now, and their use will be encouraged in the future.

In consideration of those who have written third-party modules which use
the LOG_* macros, these will NOT be removed from the source, however future use
of these macros is discouraged.

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

14 years agoRound 1 of IMAP_STORAGE-related app_voicemail changes
Mark Michelson [Wed, 23 Apr 2008 00:40:30 +0000 (00:40 +0000)]
Round 1 of IMAP_STORAGE-related app_voicemail changes

This makes IMAP_STORAGE include the proper headers if you
have specified the "system" option for --with-imap when running
the configure script and your IMAP-related headers exist in
/usr/include/c-client.

This change is due to a hasty merge of a 1.4 change I made.

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

14 years agoMerged revisions 114571 via svnmerge from
Tilghman Lesher [Tue, 22 Apr 2008 23:58:19 +0000 (23:58 +0000)]
Merged revisions 114571 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114571 | tilghman | 2008-04-22 18:51:44 -0500 (Tue, 22 Apr 2008) | 2 lines

Treat a 502 just like a 503, when it comes to processing a response code

........

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

14 years agoMerged revisions 114558 via svnmerge from
Russell Bryant [Tue, 22 Apr 2008 22:17:31 +0000 (22:17 +0000)]
Merged revisions 114558 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114558 | russell | 2008-04-22 17:15:36 -0500 (Tue, 22 Apr 2008) | 5 lines

When we receive a full frame that is supposed to contain our call number,
ensure that it has the correct one.
(closes issue #10078)
(AST-2008-006)

........

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

14 years ago(closes issue #12469)
Steve Murphy [Tue, 22 Apr 2008 21:57:57 +0000 (21:57 +0000)]
(closes issue #12469)
Reported by: triccyx

I had a bit a problem reproducing this in my setup (trying not to disturb my other stuff)
but finally, I got it. The problem appears to be that the extension is being added in
replace mode, which kinda assumes that the pattern trie has been formed, when in fact,
in this case, it was not. The checks being done are not nec. when the tree is not yet
formed, as changes like this will be summarized when the trie is formed in the future.

I tested the fix, and the crash no longer happens. Feel free to open the bug again if
this fix doesn't cure the problem.

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

14 years agoBlocked revisions 114550 via svnmerge
Russell Bryant [Tue, 22 Apr 2008 21:15:41 +0000 (21:15 +0000)]
Blocked revisions 114550 via svnmerge

........
r114550 | russell | 2008-04-22 16:14:55 -0500 (Tue, 22 Apr 2008) | 4 lines

I thought I was going to be able to leave 1.4 alone, but that was not the case.
I ran into some problems with G.722 in 1.4, so I have merged in all of the fixes
in this area that I have made in trunk/1.6.0, and things are happy again.

........

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

14 years agore-add a fix that got lost with a recent change
Russell Bryant [Tue, 22 Apr 2008 20:25:56 +0000 (20:25 +0000)]
re-add a fix that got lost with a recent change

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

14 years agoBlocked revisions 114545 via svnmerge
Russell Bryant [Tue, 22 Apr 2008 19:45:12 +0000 (19:45 +0000)]
Blocked revisions 114545 via svnmerge

........
r114545 | russell | 2008-04-22 14:45:00 -0500 (Tue, 22 Apr 2008) | 2 lines

Trivial change to read the number of samples from a frame before calling ast_write()

........

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

14 years agoBlocked revisions 114542 via svnmerge
Russell Bryant [Tue, 22 Apr 2008 18:30:47 +0000 (18:30 +0000)]
Blocked revisions 114542 via svnmerge

........
r114542 | russell | 2008-04-22 13:29:56 -0500 (Tue, 22 Apr 2008) | 3 lines

After a parked call times out, allow the call back to the parker to time out.
(closes issue #10890)

........

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

14 years agoAllow setqueuevar=yes (et al) to work, after changes to pbx_builtin_setvar()
Jason Parker [Tue, 22 Apr 2008 18:14:09 +0000 (18:14 +0000)]
Allow setqueuevar=yes (et al) to work, after changes to pbx_builtin_setvar()

(closes issue #12490)
Reported by: bcnit
Patches:
      12490-queuevars-3.diff uploaded by qwell (license 4)
Tested by: qwell

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

14 years agoMerged revisions 114537 via svnmerge from
Russell Bryant [Tue, 22 Apr 2008 18:04:39 +0000 (18:04 +0000)]
Merged revisions 114537 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114537 | russell | 2008-04-22 13:03:33 -0500 (Tue, 22 Apr 2008) | 9 lines

If the dial string passed to the call channel callback does not indicate an
extension, then consider the extension on the channel before falling back
to the default.

(closes issue #12479)
Reported by: darren1713
Patches:
      exten_dial_fix_chan_iax2.c.patch uploaded by darren1713 (license 116)

........

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

14 years agoAdd a c() option for the Jack() application and JACK_HOOK() funciton for supplying
Russell Bryant [Tue, 22 Apr 2008 16:47:00 +0000 (16:47 +0000)]
Add a c() option for the Jack() application and JACK_HOOK() funciton for supplying
a custom client name.  Using the channel name is still the default.  This was done
at the request of Jared Smith.

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

14 years agoAdd support for authenticating on a NOTIFY request. This is useful for phones that...
Joshua Colp [Tue, 22 Apr 2008 15:54:06 +0000 (15:54 +0000)]
Add support for authenticating on a NOTIFY request. This is useful for phones that require it when sending them a special packet to get them to do something (such as reload their configuration).
(closes issue #9896)
Reported by: IgorG
Patches:
      sipnotify-113980-v14.patch uploaded by IgorG (license 20)

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

14 years agoCorrect action_ping() and action_events() with regards to Manager 1.1
Russell Bryant [Tue, 22 Apr 2008 15:46:01 +0000 (15:46 +0000)]
Correct action_ping() and action_events() with regards to Manager 1.1
documentation.  Also, fix a bug in xml_translate().

(closes issue #11649)
Reported by: ys
Patches:
      trunk_manager.c.diff uploaded by ys (license 281)

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

14 years agoBlocked revisions 114522 via svnmerge
Russell Bryant [Tue, 22 Apr 2008 15:20:53 +0000 (15:20 +0000)]
Blocked revisions 114522 via svnmerge

........
r114522 | russell | 2008-04-22 10:20:37 -0500 (Tue, 22 Apr 2008) | 13 lines

Merge changes from team/russell/issue_9520

These changes make sure that the reference count for sip_peer objects properly
reflects the fact that the peer is sitting in the scheduler for a scheduled
callback for qualifying peers or for expiring registrations.  Without this, it
was possible for these callbacks to happen at the same time that the peer was
being destroyed.  This was especially likely to happen with realtime peers, and
for people making use of the realtime prune CLI command.

(closes issue #9520)
Reported by: kryptolus
Committed patch by me

........

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

14 years agoHopefully, this will resolve the issues that russellb had with this log_show_lock().
Steve Murphy [Tue, 22 Apr 2008 14:38:46 +0000 (14:38 +0000)]
Hopefully, this will resolve the issues that russellb had with this log_show_lock().
I gathered the code that filled the string, and put it in a different func which
I cryptically call "append_lock_information()".
Now, both log_show_lock(), and handle_show_locks() both call this code to do
the work. Tested, seems to work fine.
Also, log_show_lock was modified to use the ast_str stuff, along with checking
for successful ast_str creation, and freeing the ast_str obj when finished.
A break was inserted to terminate the search for the lock; we should never
see it twice.

An example usage in chan_sip.c was created as a comment, for instructional
purposes.

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

14 years ago(closes issue #6113)
Jeff Peeler [Mon, 21 Apr 2008 23:42:45 +0000 (23:42 +0000)]
(closes issue #6113)
Reported by: oej
Tested by: jpeeler

This patch implements multiple parking lots for parked calls. The default parkinglot is used by default, however setting the channel variable PARKINGLOT in the dialplan will allow use of any other configured parkinglot. See configs/features.conf.sample for more details on setting up another non-default parkinglot. Also, one can (currently) set the default parkinglot to use in the driver configuration file via the parkinglot option.

Patch initially written by oej, brought up to date and finalized by mvanbaak, and then stabilized and converted to astobj2 by me.

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

14 years agoChange the time zone offset from a hard code to use res_phoneprov variables
Doug Bailey [Mon, 21 Apr 2008 22:50:33 +0000 (22:50 +0000)]
Change the time zone offset from a hard code to use res_phoneprov variables

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

14 years ago(closes issue #12467)
Steve Murphy [Mon, 21 Apr 2008 21:13:02 +0000 (21:13 +0000)]
(closes issue #12467)
Reported by: atis
Tested by: murf

This upgrade adds the ~~ (concatenation) string operator to expr2.
While not needed in normal runtime pbx operation, it is needed when
raw exprs are being syntax checked. This plays into future syntax-
unification plans. By permission of atis, this addition in trunk
and the reason of why things are as they are will suffice to close
this bug.

I also added a short note about the previous addition of "sip show sched"
to the CLI in CHANGES, which I discovered I forgot in a previous commit.

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

14 years agoAdd support for generic name transmission (#12484) on SS7 in chan_zap
Matthew Fredrickson [Mon, 21 Apr 2008 18:44:35 +0000 (18:44 +0000)]
Add support for generic name transmission (#12484) on SS7 in chan_zap

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

14 years agoThis removes an invalid warning message for an incorrectly entered pin, but more...
Jeff Peeler [Mon, 21 Apr 2008 15:34:37 +0000 (15:34 +0000)]
This removes an invalid warning message for an incorrectly entered pin, but more importantly removes an inapplicable check. If the first argument passed to app_authenticate does not contain a '/', the argument should be treated as the sole fixed "password" to match against and that is all. (Previous behavior was attempting to open a file based on the pin.)

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

14 years agoAdd a simple janitor project
Russell Bryant [Mon, 21 Apr 2008 15:01:04 +0000 (15:01 +0000)]
Add a simple janitor project

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

14 years agoMerged revisions 114322 via svnmerge from
Joshua Colp [Mon, 21 Apr 2008 14:40:33 +0000 (14:40 +0000)]
Merged revisions 114322 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114322 | file | 2008-04-21 11:39:32 -0300 (Mon, 21 Apr 2008) | 4 lines

Only drop audio if we receive it without a progress indication. We allow other frames through such as DTMF because they may be needed to complete the call.
(closes issue #12440)
Reported by: aragon

........

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

14 years agoOnly print out the error message if ldap_modify_ext_s actually returns an error,...
Joshua Colp [Mon, 21 Apr 2008 14:34:06 +0000 (14:34 +0000)]
Only print out the error message if ldap_modify_ext_s actually returns an error, and not success.
(closes issue #12438)
Reported by: gservat
Patches:
      res_config_ldap.c-patch-code uploaded by gservat (license 466)

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

14 years agoMinor logging cleanups
Sean Bright [Sun, 20 Apr 2008 14:52:07 +0000 (14:52 +0000)]
Minor logging cleanups

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

14 years agoSS7:Added - Generic Name / Access Transport / Redirecting Number handling. #12425
Matthew Fredrickson [Sat, 19 Apr 2008 16:58:24 +0000 (16:58 +0000)]
SS7:Added - Generic Name / Access Transport / Redirecting Number handling. #12425

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

14 years agoBlocked revisions 114299 via svnmerge
Tilghman Lesher [Sat, 19 Apr 2008 13:58:56 +0000 (13:58 +0000)]
Blocked revisions 114299 via svnmerge

........
r114299 | tilghman | 2008-04-19 08:57:17 -0500 (Sat, 19 Apr 2008) | 2 lines

Ensure that help text terminates with a newline

........

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

14 years agoBlocked revisions 114297 via svnmerge
Tilghman Lesher [Sat, 19 Apr 2008 13:53:38 +0000 (13:53 +0000)]
Blocked revisions 114297 via svnmerge

........
r114297 | tilghman | 2008-04-19 08:49:50 -0500 (Sat, 19 Apr 2008) | 4 lines

MOH usage information needs a terminating newline, or else
"asterisk -rx 'help moh reload'" will hang.  Reported via
-dev list, fixed by me.

........

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

14 years agoIgnore refcounter
Sean Bright [Sat, 19 Apr 2008 00:15:31 +0000 (00:15 +0000)]
Ignore refcounter

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

14 years agoMerged revisions 114284 via svnmerge from
Russell Bryant [Fri, 18 Apr 2008 21:51:05 +0000 (21:51 +0000)]
Merged revisions 114284 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114284 | russell | 2008-04-18 16:48:06 -0500 (Fri, 18 Apr 2008) | 2 lines

Don't destroy a manager session if poll() returns an error of EAGAIN.

........

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

14 years agoMerged revisions 114278 via svnmerge from
Russell Bryant [Fri, 18 Apr 2008 20:01:47 +0000 (20:01 +0000)]
Merged revisions 114278 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114278 | russell | 2008-04-18 15:01:09 -0500 (Fri, 18 Apr 2008) | 2 lines

ensure directories are created before we try to install stuff into them

........

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

14 years agoMerged revisions 114275 via svnmerge from
Russell Bryant [Fri, 18 Apr 2008 19:59:17 +0000 (19:59 +0000)]
Merged revisions 114275 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114275 | russell | 2008-04-18 14:58:55 -0500 (Fri, 18 Apr 2008) | 2 lines

SUBDIRS_INSTALL is already listed as a subtarget for bininstall

........

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

14 years agoMake sure ADSI is marked as unavailable on Unistim channels so voicemail does not...
Joshua Colp [Fri, 18 Apr 2008 19:35:33 +0000 (19:35 +0000)]
Make sure ADSI is marked as unavailable on Unistim channels so voicemail does not try to do some ADSI jazz.
(closes issue #12460)
Reported by: PerryB

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

14 years agoAdd MEETME_INFO dialplan function that allows querying various properties of a Meetme...
Joshua Colp [Fri, 18 Apr 2008 18:15:11 +0000 (18:15 +0000)]
Add MEETME_INFO dialplan function that allows querying various properties of a Meetme conference.
(closes issue #11691)
Reported by: junky
Patches:
      meetme_info.patch uploaded by jpeeler (license 325)

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

14 years agoMerged revisions 114257 via svnmerge from
Mark Michelson [Fri, 18 Apr 2008 18:03:06 +0000 (18:03 +0000)]
Merged revisions 114257 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114257 | mmichelson | 2008-04-18 12:44:29 -0500 (Fri, 18 Apr 2008) | 6 lines

Clearing up error messages so they make a bit more sense. Also removing a redundant error
message.

Issue AST-15

........

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

14 years agoIf the parsing of the config file fails make sure we unlock ldap_lock.
Joshua Colp [Fri, 18 Apr 2008 16:11:27 +0000 (16:11 +0000)]
If the parsing of the config file fails make sure we unlock ldap_lock.
(closes issue #12477)
Reported by: IgorG

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

14 years agoAdd g__object_unref to clean up gmime message object
Doug Bailey [Fri, 18 Apr 2008 16:05:29 +0000 (16:05 +0000)]
Add g__object_unref to clean up gmime message object

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

14 years agoBlocked revisions 114248 via svnmerge
Russell Bryant [Fri, 18 Apr 2008 15:25:50 +0000 (15:25 +0000)]
Blocked revisions 114248 via svnmerge

........
r114248 | russell | 2008-04-18 10:24:09 -0500 (Fri, 18 Apr 2008) | 5 lines

Ensure that we don't ast_strdupa(NULL)
(closes issue #12476)
Reported by: davidw
Patch by me

........

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

14 years agoMerged revisions 114245 via svnmerge from
Sean Bright [Fri, 18 Apr 2008 13:38:07 +0000 (13:38 +0000)]
Merged revisions 114245 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114245 | seanbright | 2008-04-18 09:33:32 -0400 (Fri, 18 Apr 2008) | 1 line

Only complete the SIP channel name once for 'sip show channel <channel>'
........

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

14 years agoMerged revisions 114242 via svnmerge from
Tilghman Lesher [Fri, 18 Apr 2008 06:53:47 +0000 (06:53 +0000)]
Merged revisions 114242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114242 | tilghman | 2008-04-18 01:49:16 -0500 (Fri, 18 Apr 2008) | 3 lines

For consistency sake, ensure that the values that ${CALLINGPRES} returns are valid as an
input to SetCallingPres.  (Closes issue #12472)

........

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

14 years agoMerged revisions 114230 via svnmerge from
Russell Bryant [Thu, 17 Apr 2008 22:24:00 +0000 (22:24 +0000)]
Merged revisions 114230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114230 | russell | 2008-04-17 17:15:43 -0500 (Thu, 17 Apr 2008) | 6 lines

Remove redundant safety net.  The check for the autoservice channel list state
accomplishes the same goal in a better way.

(issue #12470)
Reported By: atis

........

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

14 years agoMake this file compile. The variable str is never set anywhere. Furthermore,
Russell Bryant [Thu, 17 Apr 2008 22:21:32 +0000 (22:21 +0000)]
Make this file compile.  The variable str is never set anywhere.  Furthermore,
it duplicates a lot of code.  I will leave it to murf to clean up.

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

14 years agoadded info describing DNS manager
Jeff Peeler [Thu, 17 Apr 2008 21:09:37 +0000 (21:09 +0000)]
added info describing DNS manager

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

14 years agoMerged revisions 114226 via svnmerge from
Mark Michelson [Thu, 17 Apr 2008 21:04:40 +0000 (21:04 +0000)]
Merged revisions 114226 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114226 | mmichelson | 2008-04-17 16:03:29 -0500 (Thu, 17 Apr 2008) | 9 lines

Declaration of the peer channel in this scope was making it so the peer variable defined
in the outer scope was never set properly, therefore making iterating through the channel
list always restart from the beginning. This bug would have affected anyone who called
chanspy without specifying a first argument.

(closes issue #12461)
Reported by: stever28

........

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

14 years agoBlocked revisions 114211 via svnmerge
Mark Michelson [Thu, 17 Apr 2008 16:51:09 +0000 (16:51 +0000)]
Blocked revisions 114211 via svnmerge

........
r114211 | mmichelson | 2008-04-17 11:50:46 -0500 (Thu, 17 Apr 2008) | 4 lines

Add prototype for ast_dsp_frame_freed. I'm not sure how this was
compiling before...

........

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

14 years agoMerged revisions 114207 via svnmerge from
Mark Michelson [Thu, 17 Apr 2008 16:40:12 +0000 (16:40 +0000)]
Merged revisions 114207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114207 | mmichelson | 2008-04-17 11:28:03 -0500 (Thu, 17 Apr 2008) | 12 lines

It was possible for a reference to a frame which was part of a freed DSP to still be
referenced, leading to memory corruption and eventual crashes. This code change ensures
that the dsp is freed when we are finished with the frame. This change is very similar
to a change Russell made with translators back a month or so ago.

(closes issue #11999)
Reported by: destiny6628
Patches:
      11999.patch uploaded by putnopvut (license 60)
Tested by: destiny6628, victoryure

........

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

14 years agoMerged revisions 114204 via svnmerge from
Russell Bryant [Thu, 17 Apr 2008 16:25:29 +0000 (16:25 +0000)]
Merged revisions 114204 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114204 | russell | 2008-04-17 11:23:45 -0500 (Thu, 17 Apr 2008) | 3 lines

Fix the bininstall target to install from subdirs, as well.
(closes issue AST-8, patch from bmd at switchvox)

........

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

14 years agofileio.h does not exist; io.h does, though.
Tilghman Lesher [Thu, 17 Apr 2008 15:12:52 +0000 (15:12 +0000)]
fileio.h does not exist; io.h does, though.

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

14 years agoThanks to snuff for finding these omissions
Steve Murphy [Thu, 17 Apr 2008 14:45:16 +0000 (14:45 +0000)]
Thanks to snuff for finding these omissions

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

14 years agoMerged revisions 114198 via svnmerge from
Philippe Sultan [Thu, 17 Apr 2008 13:46:17 +0000 (13:46 +0000)]
Merged revisions 114198 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114198 | phsultan | 2008-04-17 15:42:23 +0200 (Thu, 17 Apr 2008) | 2 lines

Use keepalives effectively in order diagnose bug #12432.

........

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

14 years agoMerged revisions 114195 via svnmerge from
Tilghman Lesher [Thu, 17 Apr 2008 12:59:04 +0000 (12:59 +0000)]
Merged revisions 114195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114195 | tilghman | 2008-04-17 07:56:38 -0500 (Thu, 17 Apr 2008) | 8 lines

Add special case for when the agi cannot be executed, to comply with the documentation that
we return failure in that case.
(closes issue #12462)
 Reported by: fmueller
 Patches:
       20080416__bug12462.diff.txt uploaded by Corydon76 (license 14)
 Tested by: fmueller

........

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

14 years agoUpdate the CHANGES file with yesterday's ChanSpy change. Sorry Kevin, just saw your...
Sean Bright [Thu, 17 Apr 2008 12:25:23 +0000 (12:25 +0000)]
Update the CHANGES file with yesterday's ChanSpy change.  Sorry Kevin, just saw your e-mail.

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

14 years agoMerged revisions 114191 via svnmerge from
Sean Bright [Thu, 17 Apr 2008 10:55:05 +0000 (10:55 +0000)]
Merged revisions 114191 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114191 | seanbright | 2008-04-17 06:51:20 -0400 (Thu, 17 Apr 2008) | 1 line

Make sure we have enough room for the recording's filename.
........

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

14 years agoThis is the scariest commit I've done in a long time. This is the astobj2-ification...
Steve Murphy [Wed, 16 Apr 2008 23:53:27 +0000 (23:53 +0000)]
This is the scariest commit I've done in a long time. This is the astobj2-ification of chan_sip. I've tested a number of scenarios like crazy. It used to have 4x the call setup/teardown performance of trunk, but now it's roughly at parity. I will attempt to find the bottlenecks and get it back to the 4x mark. The changes made were somewhat invasive, but the value to the community of these upgrades outweighs waiting further for more testing. Every change being made to chan_sip was lousing this code up when we tried to merge. Peers, Users, Dialogs, are all now astobj2 objects, indexed via hashtables. Refcounting is used to track objects and free them at the bitter end of their lives. Please file issues on bugs.digium.com, and PLEASE, please, please be patient. One natural advantage to all the hash-table work is that loading large sip.conf files full of thousands of peers now goes much faster. One more please: PLEASE help thrash this code and test it.

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

14 years agoStandardized routines for forking processes (keeps all the specialized code in one...
Tilghman Lesher [Wed, 16 Apr 2008 22:57:54 +0000 (22:57 +0000)]
Standardized routines for forking processes (keeps all the specialized code in one place).

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

14 years agoA small enhancement-- I added the routine log_show_lock to utils.c, which if the...
Steve Murphy [Wed, 16 Apr 2008 20:54:41 +0000 (20:54 +0000)]
A small enhancement-- I added the routine log_show_lock to utils.c, which if the mentioned lock has been acquired, this routine will log to the console the normal info about that lock you'd see from the CLI when you do a 'core show locks'. It's solely for debug-- if the lock is NOT acquired, there is no output. I use it to show 'unexpected' locks, to see where/why a lock is pre-locked. This command is to be called from points of interest, like just before a trylock, and helps to spot fleeting, highly temporal locks that normally are not locked...

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

14 years agoMerged revisions 114184 via svnmerge from
Kevin P. Fleming [Wed, 16 Apr 2008 20:47:30 +0000 (20:47 +0000)]
Merged revisions 114184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114184 | kpfleming | 2008-04-16 15:46:38 -0500 (Wed, 16 Apr 2008) | 6 lines

use the ZT_SET_DIALPARAMS ioctl properly by initializing the structure to all zeroes in case it contains fields that we don't write values into (which it does as of Zaptel 1.4.10)

(closes issue #12456)
Reported by: fnordian

........

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

14 years agoIntroducing a small optimization to event_unsubscribe; events now use a Doubly-Linked...
Steve Murphy [Wed, 16 Apr 2008 20:28:08 +0000 (20:28 +0000)]
Introducing a small optimization to event_unsubscribe; events now use a Doubly-Linked list for events, gives fast deletions, for the sake of channel driver mwi events. From team/murf/bug11210.

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

14 years agoIntroducing a small upgrade to the ast_sched_xxx facility, to keep it from eating...
Steve Murphy [Wed, 16 Apr 2008 20:09:39 +0000 (20:09 +0000)]
Introducing a small upgrade to the ast_sched_xxx  facility, to keep it from eating up lots of cpu cycles. See CHANGES. From the team/murf/bug11210 branch.

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

14 years agoBlocked revisions 114180 via svnmerge
Tilghman Lesher [Wed, 16 Apr 2008 20:00:27 +0000 (20:00 +0000)]
Blocked revisions 114180 via svnmerge

........
r114180 | tilghman | 2008-04-16 14:59:37 -0500 (Wed, 16 Apr 2008) | 3 lines

Backport revisions for latest vpb drivers to 1.4
(Closes issue #12457)

........

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

14 years agoIntroducing various astobj2 enhancements, chief being a refcount tracing feature...
Steve Murphy [Wed, 16 Apr 2008 17:45:28 +0000 (17:45 +0000)]
Introducing various astobj2 enhancements, chief being a refcount tracing feature, and various documentation updates in astobj2.h, and the addition of standalone utility, refcounter, that will filter the trace output for unbalanced, unfreed objects. This comes from the team/murf/bug11210 branch.

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

14 years agoBlocked revisions 114173 via svnmerge
Jason Parker [Wed, 16 Apr 2008 17:31:02 +0000 (17:31 +0000)]
Blocked revisions 114173 via svnmerge

........
r114173 | qwell | 2008-04-16 12:30:09 -0500 (Wed, 16 Apr 2008) | 7 lines

Fix "fallthrough" behavior here, so config options in a previously configured user don't override settings in general.

(closes issue #12458)
Reported by: tzafrir
Patches:
      chanzap_users_sections.diff uploaded by tzafrir (license 46)

........

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

14 years agoIntroducing doubly linked lists to trunk from branch team/murf/bug11210.
Steve Murphy [Wed, 16 Apr 2008 17:14:18 +0000 (17:14 +0000)]
Introducing doubly linked lists to trunk from branch team/murf/bug11210.

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

14 years agoBlocked revisions 114167 via svnmerge
Joshua Colp [Wed, 16 Apr 2008 14:11:18 +0000 (14:11 +0000)]
Blocked revisions 114167 via svnmerge

........
r114167 | file | 2008-04-16 11:10:46 -0300 (Wed, 16 Apr 2008) | 6 lines

Include the proper headers for using mkdir on FreeBSD.
(closes issue #12430)
Reported by: ys
Patches:
      app_meetme.c.diff uploaded by ys (license 281)

........

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

14 years agoAdd the ability to disable channel technology name playback when speaking the current...
Sean Bright [Wed, 16 Apr 2008 12:23:13 +0000 (12:23 +0000)]
Add the ability to disable channel technology name playback when speaking the current channel name

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

14 years agoOops, buffer wasn't long enough for query
Tilghman Lesher [Tue, 15 Apr 2008 20:51:08 +0000 (20:51 +0000)]
Oops, buffer wasn't long enough for query

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

14 years agoMerged revisions 114148 via svnmerge from
Olle Johansson [Tue, 15 Apr 2008 20:39:29 +0000 (20:39 +0000)]
Merged revisions 114148 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114148 | oej | 2008-04-15 22:26:05 +0200 (Tis, 15 Apr 2008) | 2 lines

Handle subscribe queues in all situations... Thanks to festr_ on irc for telling me about this bug.

........

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

14 years agoAdding chanvar to SIPPEER from 1.4 branch
Olle Johansson [Tue, 15 Apr 2008 20:31:08 +0000 (20:31 +0000)]
Adding chanvar to SIPPEER from 1.4 branch

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

14 years agoIf somebody enters a digit during ast_stream_and_wait, the return value is the digit...
Jason Parker [Tue, 15 Apr 2008 20:27:04 +0000 (20:27 +0000)]
If somebody enters a digit during ast_stream_and_wait, the return value is the digit, which we need to use later.

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

14 years agoThese changes:
Steve Murphy [Tue, 15 Apr 2008 19:59:50 +0000 (19:59 +0000)]
These changes:

   a. fix a self-found problem with SPAWN-ing an extension,
      where matches were not being found
   b. correct some wording in a comment
   c. Add some debug for future debugging.

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

14 years agoI'm not sure why, but "this" bothers me. Ba dum dum.
Sean Bright [Tue, 15 Apr 2008 17:54:38 +0000 (17:54 +0000)]
I'm not sure why, but "this" bothers me.  Ba dum dum.

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

14 years agoShorten the mac address pattern, since some phones use different identifiers (such...
Jason Parker [Tue, 15 Apr 2008 17:21:58 +0000 (17:21 +0000)]
Shorten the mac address pattern, since some phones use different identifiers (such as the i2050 softphone).

(closes issue #12398)
Reported by: c_hans
Patches:
      chan_unistim_svn.diff uploaded by c (license 460)
Tested by: c_hans

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

14 years agoMerged revisions 114138 via svnmerge from
Jason Parker [Tue, 15 Apr 2008 17:17:37 +0000 (17:17 +0000)]
Merged revisions 114138 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114138 | qwell | 2008-04-15 12:17:18 -0500 (Tue, 15 Apr 2008) | 7 lines

Update Digium autosupport script, for more useful information.

(closes issue #12452)
Reported by: angler
Patches:
      autosupport.diff uploaded by angler (license 106)

........

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

14 years agoMerged revisions 114133 via svnmerge from
Jason Parker [Tue, 15 Apr 2008 16:18:38 +0000 (16:18 +0000)]
Merged revisions 114133 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114133 | qwell | 2008-04-15 11:18:08 -0500 (Tue, 15 Apr 2008) | 8 lines

Allow autofill to work in the general section of queues.conf.
Additionally, don't try to (re)set options when they have empty values in realtime (all unset columns would have an empty value).

(closes issue #12445)
Reported by: atis
Patches:
      12445-autofill.diff uploaded by qwell (license 4)

........

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

14 years agoConvert several DEBUG logs into ast_debug.
Jason Parker [Tue, 15 Apr 2008 15:20:47 +0000 (15:20 +0000)]
Convert several DEBUG logs into ast_debug.

(closes issue #12444)
Reported by: IgorG
Patches:
      channel_c_debug.diff uploaded by IgorG (license 20)

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

14 years agoNeed a new buffer for each loop
Terry Wilson [Mon, 14 Apr 2008 19:58:52 +0000 (19:58 +0000)]
Need a new buffer for each loop

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

14 years agoDon't unref user twice on failure. Also, when adding sorted list of users, it is...
Terry Wilson [Mon, 14 Apr 2008 19:12:27 +0000 (19:12 +0000)]
Don't unref user twice on failure.  Also, when adding sorted list of users, it is best to check the entry already in the list for a "next" entry instead of the newly created entry...

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

14 years agoMerged revisions 114120 via svnmerge from
Jason Parker [Mon, 14 Apr 2008 18:34:17 +0000 (18:34 +0000)]
Merged revisions 114120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114120 | qwell | 2008-04-14 13:31:57 -0500 (Mon, 14 Apr 2008) | 7 lines

The call_token on the pvt can occasionally be NULL, causing a crash.

If it is NULL, we can skip this channel, since it can't the one we're looking for.

(closes issue #9299)
Reported by: vazir

........

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

14 years agoMerged revisions 114117 via svnmerge from
Mark Michelson [Mon, 14 Apr 2008 17:42:20 +0000 (17:42 +0000)]
Merged revisions 114117 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114117 | mmichelson | 2008-04-14 12:41:03 -0500 (Mon, 14 Apr 2008) | 11 lines

Increase the retry count when attempting to show channels. This apparently
cleared an issue someone was seeing when attempting to show channels when
the load was high.

(closes issue #11667)
Reported by: falves11
Patches:
      11677.txt uploaded by russell (license 2)
Tested by: falves11

........

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

14 years agoMake tab-completion work for all cases
Tilghman Lesher [Mon, 14 Apr 2008 16:32:59 +0000 (16:32 +0000)]
Make tab-completion work for all cases

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

14 years agoMerged revisions 114112 via svnmerge from
Mark Michelson [Mon, 14 Apr 2008 16:25:09 +0000 (16:25 +0000)]
Merged revisions 114112 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114112 | mmichelson | 2008-04-14 11:24:22 -0500 (Mon, 14 Apr 2008) | 9 lines

If the datastore has been moved to another channel due to a masquerade, then
freeing the datastore here causes an eventual double free when the new channel
hangs up. We should only free the datastore if we were able to successfully remove
it from the channel we are referencing (i.e. the datastore was not moved).

(closes issue #12359)
Reported by: pguido

........

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

14 years agoDuring hangup it is possible for p->chan or p->owner to be NULL, so just return what...
Joshua Colp [Mon, 14 Apr 2008 15:36:02 +0000 (15:36 +0000)]
During hangup it is possible for p->chan or p->owner to be NULL, so just return what the channel is bridged to instead of what they are *really* bridged to. Thanks Matt Nicholson!

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

14 years agoMerged revisions 114106 via svnmerge from
Mark Michelson [Mon, 14 Apr 2008 15:01:36 +0000 (15:01 +0000)]
Merged revisions 114106 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114106 | mmichelson | 2008-04-14 09:58:02 -0500 (Mon, 14 Apr 2008) | 5 lines

Save a local copy of the generate callback prior to unlocking the channel in
case the generate callback goes NULL on us after the channel is unlocked. Thanks
to Russell for pointing this need out to me.

........

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

14 years agoMerged revisions 114103 via svnmerge from
Joshua Colp [Mon, 14 Apr 2008 14:53:33 +0000 (14:53 +0000)]
Merged revisions 114103 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114103 | file | 2008-04-14 11:52:46 -0300 (Mon, 14 Apr 2008) | 4 lines

It is possible for the remote side to say they want T38 but not give any capabilities.
(closes issue #12414)
Reported by: MVF

........

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

14 years agoMerged revisions 114100 via svnmerge from
Joshua Colp [Mon, 14 Apr 2008 13:53:33 +0000 (13:53 +0000)]
Merged revisions 114100 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114100 | file | 2008-04-14 10:52:49 -0300 (Mon, 14 Apr 2008) | 4 lines

Don't change the SSRC when a new source comes into play, this might happen quite often and depending on the remote side... they might not like this.
(closes issue #12353)
Reported by: dimas

........

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

14 years agoAdd tab command-line completion
Tilghman Lesher [Mon, 14 Apr 2008 02:55:41 +0000 (02:55 +0000)]
Add tab command-line completion
(Closes issue #12428)

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

14 years agoUse ast_mkdir instead of mkdir
Tilghman Lesher [Sun, 13 Apr 2008 14:35:43 +0000 (14:35 +0000)]
Use ast_mkdir instead of mkdir
(Closes issue #12430)

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

14 years agoMake sure linkset is locked exiting ss7_start_call
Matthew Fredrickson [Sat, 12 Apr 2008 16:21:29 +0000 (16:21 +0000)]
Make sure linkset is locked exiting ss7_start_call

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

14 years agoMake sure we start incoming calls on SS7 with echo cancellation enabled. Also make...
Matthew Fredrickson [Sat, 12 Apr 2008 16:13:25 +0000 (16:13 +0000)]
Make sure we start incoming calls on SS7 with echo cancellation enabled.  Also make sure when completing a COT we call ss7_start_call with the proper locks held.  Lastly, make sure if we fail to get a channel from zt_new that we don't assume it's there.

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

14 years agoIf any field is not null, but has no default, then it must be set or the insert will...
Tilghman Lesher [Fri, 11 Apr 2008 23:26:56 +0000 (23:26 +0000)]
If any field is not null, but has no default, then it must be set or the insert will fail.
(Closes issue #12285)

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

14 years agoMake the sample config match the contributed LDAP schema
Tilghman Lesher [Fri, 11 Apr 2008 23:21:54 +0000 (23:21 +0000)]
Make the sample config match the contributed LDAP schema
(Closes issue #12421)

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

14 years agoUse the correct function for free'ing objects, and maybe we won't crash.
Tilghman Lesher [Fri, 11 Apr 2008 23:12:16 +0000 (23:12 +0000)]
Use the correct function for free'ing objects, and maybe we won't crash.
(closes issue #12163)
 Reported by: gservat
 Patches:
       20080411__bug12163.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gservat

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

14 years agoMerged revisions 114083 via svnmerge from
Terry Wilson [Fri, 11 Apr 2008 22:48:52 +0000 (22:48 +0000)]
Merged revisions 114083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114083 | twilson | 2008-04-11 17:32:51 -0500 (Fri, 11 Apr 2008) | 7 lines

Several places in the code called find_callno() (which releases the lock on the pvt structure) and then immediately locked the call and did things with it. Unfortunately, the call can disappear between the find_callno and the lock, causing Bad Stuff(tm) to happen.

Added find_callno_locked() function to return the callno withtout unlocking for instances that it is needed.

(issue #12400)
Reported by: ztel

........

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

14 years agoMake sure that ${LINE} is set even if linenumber is not set in users.conf
Terry Wilson [Fri, 11 Apr 2008 22:23:34 +0000 (22:23 +0000)]
Make sure that ${LINE} is set even if linenumber is not set in users.conf

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

14 years agoChange the number of line keys per registration from 2 to 1
Doug Bailey [Fri, 11 Apr 2008 22:09:04 +0000 (22:09 +0000)]
Change the number of line keys per registration from 2 to 1

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

14 years agoBlocked revisions 114072 via svnmerge
Jason Parker [Fri, 11 Apr 2008 21:39:44 +0000 (21:39 +0000)]
Blocked revisions 114072 via svnmerge

Already fixed here.

........
r114072 | qwell | 2008-04-11 16:35:16 -0500 (Fri, 11 Apr 2008) | 4 lines

It's possible that a channel can have an async goto on the successful execution of an application as well.

Closes issue #12172.

........

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

14 years agoFix the fact that global_variables 1) weren't being updated on reload (thanks for...
Terry Wilson [Fri, 11 Apr 2008 21:04:46 +0000 (21:04 +0000)]
Fix the fact that global_variables 1) weren't being updated on reload (thanks for the report, Doug), and 2) weren't actually being appended to the list of profile variables because build_profile was called before the list was populated. Also needed to free the contents returned by load_file().

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

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

........
r114063 | mmichelson | 2008-04-11 10:44:28 -0500 (Fri, 11 Apr 2008) | 11 lines

Fix a race condition that may happen between a sip hangup
and a "core show channel" command. This patch adds locking
to prevent the resulting crash.

(closes issue #12155)
Reported by: tsearle
Patches:
      show_channels_crash2.patch uploaded by tsearle (license 373)
Tested by: tsearle

........

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

14 years agoErrors are all greater than 0
Tilghman Lesher [Fri, 11 Apr 2008 14:54:22 +0000 (14:54 +0000)]
Errors are all greater than 0
(closes issue #12422)
 Reported by: nito
 Patches:
       res_config_ldap_result_check_patch.diff uploaded by nito (license 340)

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

14 years agoMerged revisions 114051 via svnmerge from
Mark Michelson [Thu, 10 Apr 2008 22:02:32 +0000 (22:02 +0000)]
Merged revisions 114051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114051 | mmichelson | 2008-04-10 15:59:49 -0500 (Thu, 10 Apr 2008) | 3 lines

Fix 1.4 build when LOW_MEMORY is enabled.

........

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