asterisk/asterisk.git
11 years agoMerging of changes from 1.4 revision 103713.
Mark Michelson [Fri, 15 Feb 2008 15:11:23 +0000 (15:11 +0000)]
Merging of changes from 1.4 revision 103713.

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

11 years agoBlocked revisions 103713 via svnmerge
Mark Michelson [Fri, 15 Feb 2008 15:08:59 +0000 (15:08 +0000)]
Blocked revisions 103713 via svnmerge

........
r103713 | mmichelson | 2008-02-15 09:05:49 -0600 (Fri, 15 Feb 2008) | 8 lines

Fix a bit of wrong logic in the configure script that caused problems when trying to configure
without IMAP. Patch suggestion from phsultan, but I modified it slightly.

(closes issue #12003)
Reported by: pj
Tested by: putnopvut

........

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

11 years agoSame changes as made to 1.4 in revision 103710
Mark Michelson [Fri, 15 Feb 2008 00:59:21 +0000 (00:59 +0000)]
Same changes as made to 1.4 in revision 103710

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

11 years agoBlocked revisions 103709 via svnmerge
Mark Michelson [Fri, 15 Feb 2008 00:53:08 +0000 (00:53 +0000)]
Blocked revisions 103709 via svnmerge

........
r103709 | mmichelson | 2008-02-14 18:50:49 -0600 (Thu, 14 Feb 2008) | 6 lines

I apparently misunderstood one of the requirements of this configure change.
Now, if a source directory is specified with the --with-imap option, and a valid
source installation is not detected there, then configure will fail and will not
check for a package installation.

........

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

11 years agoTrunk version of 1.4's imap documentation updates
Mark Michelson [Thu, 14 Feb 2008 23:51:49 +0000 (23:51 +0000)]
Trunk version of 1.4's imap documentation updates

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

11 years agoBlocked revisions 103703 via svnmerge
Mark Michelson [Thu, 14 Feb 2008 23:49:54 +0000 (23:49 +0000)]
Blocked revisions 103703 via svnmerge

........
r103703 | mmichelson | 2008-02-14 17:49:24 -0600 (Thu, 14 Feb 2008) | 3 lines

Make a small clarification in the documentation

........

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

11 years agoBlocked revisions 103701 via svnmerge
Mark Michelson [Thu, 14 Feb 2008 23:48:12 +0000 (23:48 +0000)]
Blocked revisions 103701 via svnmerge

........
r103701 | mmichelson | 2008-02-14 17:44:17 -0600 (Thu, 14 Feb 2008) | 3 lines

Update documentation regarding configuration of IMAP

........

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

11 years agoSee commit message for svn revision 103698. This behavior is the same as what is...
Mark Michelson [Thu, 14 Feb 2008 23:39:47 +0000 (23:39 +0000)]
See commit message for svn revision 103698. This behavior is the same as what is described
there. The difference is that trunk already had the --with-imap=system option, but it only
checked the include path for headers in the imap directory and not also the c-client directory.

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

11 years agoBlocked revisions 103698 via svnmerge
Mark Michelson [Thu, 14 Feb 2008 23:35:21 +0000 (23:35 +0000)]
Blocked revisions 103698 via svnmerge

........
r103698 | mmichelson | 2008-02-14 17:30:17 -0600 (Thu, 14 Feb 2008) | 13 lines

Change to the configure logic regarding IMAP. Prior to this commit, if you wished to configure
Asterisk with IMAP support, you would use the --with-imap configure switch in one of the following
two ways:
--with-imap=/some/directory would look in the directory specified for a UW IMAP source installation
--with-imap would assume that you had imap-2004g installed in .. relative to the Asterisk source

With this set of changes the two above options still work the same, but there are two new behaviors, too.
--with-imap=system will assume that you have -libc-client.so where you store your shared objects and will
            attempt to find c-client headers in your include path either in the imap or c-client directory.
If either of the two original methods of specifying the imap option should fail, then the check for --with-imap
=system will be performed in addition. It is only after this "system" check that failure can happen.

........

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

11 years agoModify ldap autoconf function, so that an incorrect ldap library is not found on...
Jason Parker [Thu, 14 Feb 2008 21:21:53 +0000 (21:21 +0000)]
Modify ldap autoconf function, so that an incorrect ldap library is not found on Solaris (it is incompatible).
Also removes second check for awk, which causes Solaris to find an incompatible version of awk.

(closes issue #11829)
Reported by: snuffy
Patches:
      bug-11829.diff uploaded by snuffy (license 35)

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

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

........
r103690 | mmichelson | 2008-02-14 15:03:02 -0600 (Thu, 14 Feb 2008) | 3 lines

Fix build for non-IMAP builds

........

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

11 years agoMerged revisions 103688 via svnmerge from
Mark Michelson [Thu, 14 Feb 2008 20:58:30 +0000 (20:58 +0000)]
Merged revisions 103688 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103688 | mmichelson | 2008-02-14 14:55:48 -0600 (Thu, 14 Feb 2008) | 9 lines

Fix the new message count if delete=yes when using IMAP storage.

(closes issue #11406)
Reported by: jaroth
Patches:
      deleteflag_v2.patch uploaded by jaroth (license 50)
  Tested by: jaroth

........

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

11 years agoChange the queue holdtime announcement to happen at any interval (not just greater...
Mark Michelson [Thu, 14 Feb 2008 20:46:00 +0000 (20:46 +0000)]
Change the queue holdtime announcement to happen at any interval (not just greater than two minutes). Remove
the saying of less-than for holdtime announcements since it can lead to awkward holdtime announcements. Using
'1' as a queue-round-seconds value is no longer valid.

(closes issue #9736)
Reported by: caio1982
Patches:
      queue_announce5.diff uploaded by caio1982 (license 22)
  Tested by: caio1982, putnopvut

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

11 years agoMerged revisions 103683 via svnmerge from
Jason Parker [Thu, 14 Feb 2008 19:52:21 +0000 (19:52 +0000)]
Merged revisions 103683 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103683 | qwell | 2008-02-14 13:51:10 -0600 (Thu, 14 Feb 2008) | 5 lines

Document the 'l' option to the CDR() function.
(Thanks voipgate for pointing out the option, and Leif for providing text for it.)

Closes issue #11695.

........

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

11 years agoa few syntax changes and safer code
Jeff Peeler [Thu, 14 Feb 2008 19:47:39 +0000 (19:47 +0000)]
a few syntax changes and safer code

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

11 years agoAdd periodic jitter stats to CLI and manager.
Jason Parker [Thu, 14 Feb 2008 18:39:51 +0000 (18:39 +0000)]
Add periodic jitter stats to CLI and manager.

(closes issue #8188)
Reported by: stevedavies
Patches:
      jblogging-trunk.patch uploaded by stevedavies
      jblogging-trunk_wmgrevent.patch uploaded by johann8384
      updated_jbloggin-trunk_mgrevent.patch uploaded by johann8384 (license 190)
      (with additional changes by me)
Tested by: stevedavies, johann8384

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

11 years agoFormatting fixes
Olle Johansson [Thu, 14 Feb 2008 10:19:09 +0000 (10:19 +0000)]
Formatting fixes

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

11 years ago(closes issue #11825)
Jeff Peeler [Wed, 13 Feb 2008 21:04:31 +0000 (21:04 +0000)]
(closes issue #11825)
Reported by: ctooley
Patches:
      additional_eivr_commands.patch uploaded by ctooley (license 136)
Tested by: ctooley

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

11 years ago1. Deprecate SetMusicOnHold and WaitMusicOnHold.
Mark Michelson [Wed, 13 Feb 2008 15:47:25 +0000 (15:47 +0000)]
1. Deprecate SetMusicOnHold and WaitMusicOnHold.
2. Add a duration parameter to MusicOnHold

(closes issue #11904)
Reported by: dimas
Patches:
      v2-moh.patch uploaded by dimas (license 88)
  Tested by: dimas

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

11 years agoBlocked revisions 103607 via svnmerge
Tilghman Lesher [Wed, 13 Feb 2008 06:35:28 +0000 (06:35 +0000)]
Blocked revisions 103607 via svnmerge

........
r103607 | tilghman | 2008-02-13 00:25:03 -0600 (Wed, 13 Feb 2008) | 7 lines

We aren't talking to ourselves; we're talking to someone else.
(closes issue #11771)
 Reported by: msetim
 Patches:
       ami_agent_talkingto-1.4.diff uploaded by caio1982 (license 22)
 Tested by: caio1982, msetim

........

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

11 years agoFix a small logic error in ast_event_iterator_next. The previous logic allowed for...
Mark Michelson [Wed, 13 Feb 2008 00:55:09 +0000 (00:55 +0000)]
Fix a small logic error in ast_event_iterator_next. The previous logic allowed for the iterator
to indicate there was more data than there really was, causing the iterator read beyond the end
of the event structure. This led to invalid memory reads and potential crashes.

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

11 years agoBlocked revisions 103556 via svnmerge
Tilghman Lesher [Wed, 13 Feb 2008 00:31:38 +0000 (00:31 +0000)]
Blocked revisions 103556 via svnmerge

........
r103556 | tilghman | 2008-02-12 18:26:57 -0600 (Tue, 12 Feb 2008) | 7 lines

Refuse to load app_voicemail if res_adsi is not loaded (which is a symbol dependency)
(closes issue #11760)
 Reported by: non-poster
 Patches:
       20080114__bug11760.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76, non-poster, jamesgolovich

........

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

11 years agoBlocked revisions 103503 via svnmerge
Jason Parker [Tue, 12 Feb 2008 22:26:30 +0000 (22:26 +0000)]
Blocked revisions 103503 via svnmerge

........
r103503 | qwell | 2008-02-12 16:22:54 -0600 (Tue, 12 Feb 2008) | 1 line

Remove condition that was impossible.
........

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

11 years agoEven more sane permissions. This should be handled via a umask, like in many other...
Jason Parker [Tue, 12 Feb 2008 20:27:01 +0000 (20:27 +0000)]
Even more sane permissions.  This should be handled via a umask, like in many other places.

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

11 years agoUse slight more sane permissions
Jason Parker [Tue, 12 Feb 2008 20:02:32 +0000 (20:02 +0000)]
Use slight more sane permissions

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

11 years agoRemove development version notice.
Russell Bryant [Tue, 12 Feb 2008 15:39:44 +0000 (15:39 +0000)]
Remove development version notice.

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

11 years agoFix build on *BSD. These permissions constants are not available there.
Russell Bryant [Tue, 12 Feb 2008 15:16:39 +0000 (15:16 +0000)]
Fix build on *BSD.  These permissions constants are not available there.

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

11 years agoMerged revisions 103385 via svnmerge from
Joshua Colp [Tue, 12 Feb 2008 15:13:06 +0000 (15:13 +0000)]
Merged revisions 103385 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103385 | file | 2008-02-12 11:09:24 -0400 (Tue, 12 Feb 2008) | 4 lines

Even if no CallerID name or number has been provided by the remote party still use the configured sip.conf ones.
(closes issue #11977)
Reported by: pj

........

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

11 years agoUse an ast_flags structure in aji_client and aji_buddy rather than an
Philippe Sultan [Tue, 12 Feb 2008 14:08:58 +0000 (14:08 +0000)]
Use an ast_flags structure in aji_client and aji_buddy rather than an
integer. Modify calls to various ast_*_flag macros accordingly.

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

11 years agoRequested changes from Pari, reviewed by Russell.
Jeff Peeler [Tue, 12 Feb 2008 00:24:36 +0000 (00:24 +0000)]
Requested changes from Pari, reviewed by Russell.
Added ability to retrieve list of categories in a config file.
Added ability to retrieve the content of a particular category.
Added ability to empty a context.
Created new action to create a new file.
Updated delete action to allow deletion by line number with respect to category.
Added new action insert to add new variable to category at specified line.
Updated action newcat to allow new category to be inserted in file above another existing category.

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

11 years agoMerged revisions 103324 via svnmerge from
Joshua Colp [Mon, 11 Feb 2008 22:10:55 +0000 (22:10 +0000)]
Merged revisions 103324 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103324 | file | 2008-02-11 18:09:07 -0400 (Mon, 11 Feb 2008) | 4 lines

If entering a conference with the 'w' option ensure that we can't listen or speak until the marked user appears.
(closes issue #11835)
Reported by: alanmcmillan

........

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

11 years agoRemove ast_module_user usage from res_agi. This is taken care of in the core.
Joshua Colp [Mon, 11 Feb 2008 18:29:18 +0000 (18:29 +0000)]
Remove ast_module_user usage from res_agi. This is taken care of in the core.

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

11 years agoJust some minor coding style cleanup...
Joshua Colp [Mon, 11 Feb 2008 18:27:47 +0000 (18:27 +0000)]
Just some minor coding style cleanup...

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

11 years agoFix Manager Redirect while in an AGI.
Joshua Colp [Mon, 11 Feb 2008 17:25:04 +0000 (17:25 +0000)]
Fix Manager Redirect while in an AGI.
(closes issue #10661)
Reported by: junky

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

11 years agoMerged revisions 103315 via svnmerge from
Kevin P. Fleming [Mon, 11 Feb 2008 17:09:04 +0000 (17:09 +0000)]
Merged revisions 103315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103315 | kpfleming | 2008-02-11 11:05:22 -0600 (Mon, 11 Feb 2008) | 2 lines

improve 2BCT documentation a bit (thanks Jared)

........

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

11 years agoAdd support for allowing a native bridge to happen when the L option is enabled....
Joshua Colp [Mon, 11 Feb 2008 16:17:15 +0000 (16:17 +0000)]
Add support for allowing a native bridge to happen when the L option is enabled. The RTP bridging could already handle this, it just needed to be enabled in the main bridging code.
(issue #10647)
Reported by: samdell3

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

11 years agoChange chan_skinny to use debug messages as appropriate.
Joshua Colp [Mon, 11 Feb 2008 14:43:04 +0000 (14:43 +0000)]
Change chan_skinny to use debug messages as appropriate.
(closes issue #11967)
Reported by: mvanbaak
Patches:
      2008021000-skinnydebug.diff.txt uploaded by mvanbaak (license 7)

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

11 years agoDon't wipe out transport and fd in chan_sip on reload (issue #11930)
James Golovich [Mon, 11 Feb 2008 06:05:59 +0000 (06:05 +0000)]
Don't wipe out transport and fd in chan_sip on reload (issue #11930)

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

11 years agoFix improper indentation. Thanks again to snuffy for pointing it out.
Mark Michelson [Mon, 11 Feb 2008 03:03:58 +0000 (03:03 +0000)]
Fix improper indentation. Thanks again to snuffy for pointing it out.

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

11 years agoAdd a couple of comments to clarify the unreffing of queues.
Mark Michelson [Mon, 11 Feb 2008 02:59:14 +0000 (02:59 +0000)]
Add a couple of comments to clarify the unreffing of queues.
Thanks to snuffy for the idea.

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

11 years agoFix a problem regarding network vs. host byte order
Mark Michelson [Mon, 11 Feb 2008 02:47:25 +0000 (02:47 +0000)]
Fix a problem regarding network vs. host byte order
in the event API.

ast_event_iterator_get_ie_type should return the ie type in
host byte order. Furthermore, ast_event_get_ie_raw should already
have its ie type argument in host byte order since it could be called
externally (and it in fact is called in this way by ast_event_get_cached).

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

11 years agowhitespace fixes only.
Michiel van Baak [Sat, 9 Feb 2008 11:27:10 +0000 (11:27 +0000)]
whitespace fixes only.

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

11 years agoMerged revisions 103197 via svnmerge from
Tilghman Lesher [Sat, 9 Feb 2008 06:33:10 +0000 (06:33 +0000)]
Merged revisions 103197 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103197 | tilghman | 2008-02-09 00:23:49 -0600 (Sat, 09 Feb 2008) | 4 lines

Commit fix for being unable to send voicemail from VoiceMailMain
 Reported by: William F Acker (via the -users mailing list)
 Patch by: Corydon76 (license 14)

........

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

11 years agoMerge changes from team/mvanbaak/cli-command-audit
Russell Bryant [Fri, 8 Feb 2008 21:26:32 +0000 (21:26 +0000)]
Merge changes from team/mvanbaak/cli-command-audit
(closes issue #8925)

About a year ago, as Leif Madsen and Jim van Meggelen were going over the CLI
commands in Asterisk 1.4 for the next version of their book, they documented
a lot of inconsistencies.  This set of changes addresses all of these issues
and has been reviewed by Leif.

While this does introduce even more changes to the CLI command structure, it
makes everything consistent, which is the most important thing.

Thanks to all that helped with this one!

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

11 years agoForgot that AST_LIST_REMOVE_CURRENT takes different arguments in trunk than 1.4.
Mark Michelson [Fri, 8 Feb 2008 18:58:25 +0000 (18:58 +0000)]
Forgot that AST_LIST_REMOVE_CURRENT takes different arguments in trunk than 1.4.

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

11 years agoMerged revisions 103120 via svnmerge from
Mark Michelson [Fri, 8 Feb 2008 18:54:53 +0000 (18:54 +0000)]
Merged revisions 103120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103120 | mmichelson | 2008-02-08 12:48:17 -0600 (Fri, 08 Feb 2008) | 10 lines

Prevent a potential three-thread deadlock. Also added a comment block
to explicitly state the locking order necessary inside app_queue.

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

........

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

11 years agoMerged revisions 103070 via svnmerge from
Mark Michelson [Fri, 8 Feb 2008 18:02:48 +0000 (18:02 +0000)]
Merged revisions 103070 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103070 | mmichelson | 2008-02-08 12:00:38 -0600 (Fri, 08 Feb 2008) | 6 lines

Yield the thread and return -1 if the ioctl fails for Zaptel timing device.

(closes issue #11891)
Reported by: tzafrir

........

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

11 years agoAt the request of ManxPower, include the UPGRADE.txt from 1.2 and 1.4, as well.
Russell Bryant [Fri, 8 Feb 2008 16:49:19 +0000 (16:49 +0000)]
At the request of ManxPower, include the UPGRADE.txt from 1.2 and 1.4, as well.
This way, if people need to go back and review what was deprecated in previous
major releases, it is readily available to them.  Thanks for the suggestion!

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

11 years agoFix a network byte order issue and ensure when creating an outgoing dialog that the...
Joshua Colp [Fri, 8 Feb 2008 15:31:00 +0000 (15:31 +0000)]
Fix a network byte order issue and ensure when creating an outgoing dialog that the socket always contains information such as type and port.
(closes issue #11916)
Reported by: mnnojd

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

11 years agoMerged revisions 102968 via svnmerge from
Joshua Colp [Fri, 8 Feb 2008 15:09:47 +0000 (15:09 +0000)]
Merged revisions 102968 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102968 | file | 2008-02-08 11:08:20 -0400 (Fri, 08 Feb 2008) | 4 lines

Make sure the presence of dbsecret is factored into user scoring.
(closes issue #11952)
Reported by: bbhoss

........

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

11 years agoThis is a combination new feature/bug fix for app_chanspy.
Mark Michelson [Thu, 7 Feb 2008 21:37:00 +0000 (21:37 +0000)]
This is a combination new feature/bug fix for app_chanspy.

New feature: Add the 'e' option, which takes as an argument a list of
interfaces separated by colons. This way, you will only be able to spy
on this limited list of interfaces.

Bug fix: change some pointer checks to ast_strlen_zero so that spying
would work properly even if no channel was specified as the first argument
to chanspy.

(closes issue #10072)
Reported by: xmarksthespot
Patches:
      bugfix+newfeature10072patchtotrunkrev102726.diff uploaded by xmarksthespot (license 16)
  Tested by: xmarksthespot, mvanbaak

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

11 years agowhitespace fixes only
Michiel van Baak [Thu, 7 Feb 2008 21:08:46 +0000 (21:08 +0000)]
whitespace fixes only

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

11 years agoThere she goes! First commit from me to trunk \o/
Michiel van Baak [Thu, 7 Feb 2008 20:42:59 +0000 (20:42 +0000)]
There she goes! First commit from me to trunk \o/

Make app_alarmreceiver honor code guidelines and fix whitespace errors.
No functional changes.

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

11 years agoMerged revisions 102858 via svnmerge from
Jason Parker [Thu, 7 Feb 2008 20:02:17 +0000 (20:02 +0000)]
Merged revisions 102858 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102858 | qwell | 2008-02-07 13:53:55 -0600 (Thu, 07 Feb 2008) | 7 lines

Specify which digit string was matched in debug message.

(closes issue #11949)
Reported by: dimas
Patches:
      v1-feature-debug.patch uploaded by dimas (license 88)

........

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

11 years agoMerged revisions 102807 via svnmerge from
Kevin P. Fleming [Thu, 7 Feb 2008 16:47:52 +0000 (16:47 +0000)]
Merged revisions 102807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102807 | kpfleming | 2008-02-07 10:41:55 -0600 (Thu, 07 Feb 2008) | 2 lines

document usage of 'transfer' configuration option for ISDN PRI switch-side transfers

........

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

11 years agoAdd the channel's unique id to the AgentCalled manager event to make it more consistent
Mark Michelson [Wed, 6 Feb 2008 20:12:43 +0000 (20:12 +0000)]
Add the channel's unique id to the AgentCalled manager event to make it more consistent
with other manager events.

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

11 years agoMerged revisions 102725 via svnmerge from
Joshua Colp [Wed, 6 Feb 2008 18:01:15 +0000 (18:01 +0000)]
Merged revisions 102725 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102725 | file | 2008-02-06 13:59:23 -0400 (Wed, 06 Feb 2008) | 2 lines

Only consider a T.38-only INVITE compatible if we have both a joint capability between us and them and if they provided T.38.

........

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

11 years agoAdd REALTIME_STORE and REALTIME_DESTROY dialplan functions provided by sergee.
Terry Wilson [Wed, 6 Feb 2008 16:23:22 +0000 (16:23 +0000)]
Add REALTIME_STORE and REALTIME_DESTROY dialplan functions provided by sergee.
I just added the ability to set multiple fields at once after discussions with
Tilghman and Russell.  Currently limited to 30 fields.

(closes issue #11887)
Reported by: sergee
Patches:
      rt-func-store-destroy-multivalue.diff uploaded by otherwiseguy (license 396)
Tested by: sergee, otherwiseguy

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

11 years agoBlocked revisions 102653 via svnmerge
Joshua Colp [Wed, 6 Feb 2008 15:46:53 +0000 (15:46 +0000)]
Blocked revisions 102653 via svnmerge

........
r102653 | file | 2008-02-06 11:43:38 -0400 (Wed, 06 Feb 2008) | 4 lines

Add missing header file and ASTERISK_FILE_VERSION usage.
(closes issue #11936)
Reported by: snuffy

........

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

11 years agoMerged revisions 102651 via svnmerge from
Russell Bryant [Wed, 6 Feb 2008 15:20:31 +0000 (15:20 +0000)]
Merged revisions 102651 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102651 | russell | 2008-02-06 09:19:41 -0600 (Wed, 06 Feb 2008) | 3 lines

Clarify setting DYNAMIC_FEATURES so that it gets inherited by outbound channels.
(due to a discussion between me and a user via email)

........

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

11 years agoMerged revisions 102576 via svnmerge from
Tilghman Lesher [Wed, 6 Feb 2008 03:05:00 +0000 (03:05 +0000)]
Merged revisions 102576 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102576 | tilghman | 2008-02-05 18:26:02 -0600 (Tue, 05 Feb 2008) | 4 lines

Move around some defines to unbreak ODBC storage.
(closes issue #11932)
 Reported by: snuffy

........

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

11 years agoRemove an extra debug message I left in
Mark Michelson [Wed, 6 Feb 2008 00:08:58 +0000 (00:08 +0000)]
Remove an extra debug message I left in

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

11 years agoGet rid of any remaining ast_verbose calls in the code in favor of
Mark Michelson [Tue, 5 Feb 2008 23:00:15 +0000 (23:00 +0000)]
Get rid of any remaining ast_verbose calls in the code in favor of
ast_verb

(closes issue #11934)
Reported by: mvanbaak
Patches:
      20080205_astverb-2.diff.txt uploaded by mvanbaak (license 7)

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

11 years agoChange verbose messages to use the ast_verb macro.
Mark Michelson [Tue, 5 Feb 2008 20:54:53 +0000 (20:54 +0000)]
Change verbose messages to use the ast_verb macro.

(closes issue #11931)
Reported by: snuffy
Patches:
      bug-11931.diff uploaded by snuffy (license 35)

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

11 years agoChange where priority of a goto is adjusted.
Jason Parker [Tue, 5 Feb 2008 20:51:50 +0000 (20:51 +0000)]
Change where priority of a goto is adjusted.
Partially reverts 102272.

Closes issue #11929
(credit to file for fix suggestion - we still <3 you)

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

11 years agoMerged revisions 102453 via svnmerge from
Mark Michelson [Tue, 5 Feb 2008 20:03:54 +0000 (20:03 +0000)]
Merged revisions 102453 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102453 | mmichelson | 2008-02-05 14:02:44 -0600 (Tue, 05 Feb 2008) | 8 lines

Clear the DTMF buffer on hangup.

(closes issue #11919)
Reported by: eferro
Patches:
      mgcp_dtmfclean_on_hangup.diff uploaded by eferro (license 337)
  Tested by: eferro

........

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

11 years agoYeah yeah, I broke building on trunk. Shoot me.
Joshua Colp [Tue, 5 Feb 2008 19:58:19 +0000 (19:58 +0000)]
Yeah yeah, I broke building on trunk. Shoot me.

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

11 years agoMerged revisions 102450 via svnmerge from
Joshua Colp [Tue, 5 Feb 2008 19:54:05 +0000 (19:54 +0000)]
Merged revisions 102450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102450 | file | 2008-02-05 15:52:30 -0400 (Tue, 05 Feb 2008) | 3 lines

If a REGISTER attempt comes in that is a retransmission of a previous REGISTER do not create a new nonce value.
(issue #BE-381)

........

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

11 years agoMerged revisions 102378 via svnmerge from
Joshua Colp [Tue, 5 Feb 2008 15:10:36 +0000 (15:10 +0000)]
Merged revisions 102378 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102378 | file | 2008-02-05 11:09:29 -0400 (Tue, 05 Feb 2008) | 4 lines

Perform dialing asynchronously when using the originate CLI command so the CLI does not appear to block.
(closes issue #11927)
Reported by: bbhoss

........

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

11 years agoMerged revisions 102323 via svnmerge from
Tilghman Lesher [Mon, 4 Feb 2008 21:15:18 +0000 (21:15 +0000)]
Merged revisions 102323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102323 | tilghman | 2008-02-04 15:06:09 -0600 (Mon, 04 Feb 2008) | 7 lines

Cross-platform fix:  OS X now deprecates the use of the daemon(3) API.
(closes issue #11908)
 Reported by: oej
 Patches:
       20080204__bug11908.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76

........

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

11 years agoAdd line numbers to warning/error messages (and pretty up some existing ones).
Jason Parker [Mon, 4 Feb 2008 18:39:30 +0000 (18:39 +0000)]
Add line numbers to warning/error messages (and pretty up some existing ones).

(closes issue #11894)
Reported by: jmls
Patches:
      chan_zap.patch uploaded by jmls (license 141)

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

11 years agoUpdate handling of asyncgoto so it properly works on channels that are currently...
Joshua Colp [Mon, 4 Feb 2008 15:16:05 +0000 (15:16 +0000)]
Update handling of asyncgoto so it properly works on channels that are currently executing a PBX.
(closes issue #11914)
Reported by: arnd
(closes issue #11753)
Reported by: johan

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

11 years agoChange examples to use G here also.
Jason Parker [Mon, 4 Feb 2008 14:37:11 +0000 (14:37 +0000)]
Change examples to use G here also.

Closes issue #11875

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

11 years agoMerged revisions 102214 via svnmerge from
Tilghman Lesher [Mon, 4 Feb 2008 05:32:00 +0000 (05:32 +0000)]
Merged revisions 102214 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102214 | tilghman | 2008-02-03 23:10:02 -0600 (Sun, 03 Feb 2008) | 6 lines

Missing braces.
(closes issue #11912)
 Reported by: dimas
 Patches:
       sprintf.patch uploaded by dimas (license 88)

........

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

11 years agoCoreSettings and CoreStatus are missing the terminating "\r\n". Also, some
Tilghman Lesher [Sun, 3 Feb 2008 17:40:48 +0000 (17:40 +0000)]
CoreSettings and CoreStatus are missing the terminating "\r\n".  Also, some
miscellaneous spacing and initialization issues.
(closes issue #11909)
 Reported by: srt
 Patches:
       patch-11909-2.diff uploaded by srt (license 378)
 Tested by: srt

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

11 years agoMerged revisions 102142 via svnmerge from
Olle Johansson [Sun, 3 Feb 2008 16:46:39 +0000 (16:46 +0000)]
Merged revisions 102142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102142 | oej | 2008-02-03 17:38:12 +0100 (Sön, 03 Feb 2008) | 8 lines

Use the same CSEQ on CANCEL as on INVITE (according to RFC 3261)

(closes issue #9492)
Reported by: kryptolus
Patches:
      bug9492.txt uploaded by oej (license 306)
Tested by: oej

........

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

11 years agoMerged revisions 102090 via svnmerge from
Olle Johansson [Sun, 3 Feb 2008 10:47:05 +0000 (10:47 +0000)]
Merged revisions 102090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102090 | oej | 2008-02-03 11:37:32 +0100 (Sön, 03 Feb 2008) | 8 lines

Handle ACK and CANCEL in an invite transaction - even if we get INFO transactions during the actual call setup.

(closes issue #10567)
Reported by: jacksch
Tested by: oej
Patch by: oej inspired by suggestions from neutrino88 in the bug tracker

........

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

11 years agoChange the version number in the configure script from 1.4 to 1.6
Russell Bryant [Sun, 3 Feb 2008 06:43:57 +0000 (06:43 +0000)]
Change the version number in the configure script from 1.4 to 1.6

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

11 years agoThe documentation page has to be in its own comment block to work, apparently.
Russell Bryant [Sat, 2 Feb 2008 06:10:20 +0000 (06:10 +0000)]
The documentation page has to be in its own comment block to work, apparently.
Fix it up!

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

11 years agoMerged revisions 101989 via svnmerge from
Russell Bryant [Fri, 1 Feb 2008 23:08:28 +0000 (23:08 +0000)]
Merged revisions 101989 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101989 | russell | 2008-02-01 17:06:32 -0600 (Fri, 01 Feb 2008) | 5 lines

Change the SDP_SAMPLE_RATE macro.  It turns out that even though G.722 is 16 kHz,
it is supposed to specified as 8 kHz in the RTP, and RTP timestamps are supposed
to be calculated based on 8 kHz.  (Apparently this is due to a bug in a spec, but
people follow it anyway, because it's the spec ...)

........

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

11 years agoMerged revisions 101942 via svnmerge from
Tilghman Lesher [Fri, 1 Feb 2008 22:12:55 +0000 (22:12 +0000)]
Merged revisions 101942 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101942 | tilghman | 2008-02-01 15:54:28 -0600 (Fri, 01 Feb 2008) | 8 lines

Fix the VM_DUR variable for forwarded voicemail, and fixed several other bugs
while I'm in the area.
(closes issue #11615)
 Reported by: jamessan
 Patches:
       20071226__bug11615__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76, jamessan

........

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

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

........
r101894 | tilghman | 2008-02-01 13:36:12 -0600 (Fri, 01 Feb 2008) | 2 lines

Change detection of getifaddrs to use AST_C_COMPILE_CHECK, backported from trunk (as suggested by kpfleming)

........

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

11 years agoFix multi, when using the LIKE query.
Tilghman Lesher [Fri, 1 Feb 2008 18:45:31 +0000 (18:45 +0000)]
Fix multi, when using the LIKE query.
(closes issue #11889)
 Reported by: jmls
 Patches:
       res_config_curl.patch uploaded by jmls (license 141)
 Tested by: jmls

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

11 years agoComparison, not set :) Thanks mvanbaak.
Jason Parker [Fri, 1 Feb 2008 18:24:52 +0000 (18:24 +0000)]
Comparison, not set :)  Thanks mvanbaak.

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

11 years agoClarify the pooling functionality by changing the config file keyword
Tilghman Lesher [Fri, 1 Feb 2008 18:08:44 +0000 (18:08 +0000)]
Clarify the pooling functionality by changing the config file keyword

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

11 years agoMove an feof() call to before the fgets().
Jason Parker [Fri, 1 Feb 2008 17:44:32 +0000 (17:44 +0000)]
Move an feof() call to before the fgets().
This would have exited the loop early if you had an authentication file with no newline at the end.

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

11 years agoBlocked revisions 101820 via svnmerge
Russell Bryant [Fri, 1 Feb 2008 17:28:06 +0000 (17:28 +0000)]
Blocked revisions 101820 via svnmerge

........
r101820 | russell | 2008-02-01 11:27:02 -0600 (Fri, 01 Feb 2008) | 1 line

off by one error
........

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

11 years agoMerged revisions 101818 via svnmerge from
Russell Bryant [Fri, 1 Feb 2008 17:26:31 +0000 (17:26 +0000)]
Merged revisions 101818 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101818 | russell | 2008-02-01 11:23:47 -0600 (Fri, 01 Feb 2008) | 4 lines

Don't overwrite the last character of a line if it's not a newline.  This would
happen if the last line in the file doesn't have a newline.
(pointed out by Qwell)

........

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

11 years agoMerged revisions 101772 via svnmerge from
Tilghman Lesher [Fri, 1 Feb 2008 16:01:22 +0000 (16:01 +0000)]
Merged revisions 101772 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101772 | tilghman | 2008-02-01 09:55:58 -0600 (Fri, 01 Feb 2008) | 2 lines

Compatibility fix for OpenWRT (reported by Brian Capouch via the mailing list)

........

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

11 years agosimplify some code, tweak formatting, and reduce indentation
Russell Bryant [Fri, 1 Feb 2008 06:27:41 +0000 (06:27 +0000)]
simplify some code, tweak formatting, and reduce indentation

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

11 years agoreduce a level of indentation
Russell Bryant [Fri, 1 Feb 2008 06:20:24 +0000 (06:20 +0000)]
reduce a level of indentation

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

11 years agoGet rid of a goto where there was no extra cleanup happening at the exit point
Russell Bryant [Fri, 1 Feb 2008 06:14:29 +0000 (06:14 +0000)]
Get rid of a goto where there was no extra cleanup happening at the exit point

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

11 years agoMerged revisions 101693 via svnmerge from
Russell Bryant [Fri, 1 Feb 2008 00:34:11 +0000 (00:34 +0000)]
Merged revisions 101693 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101693 | russell | 2008-01-31 18:32:49 -0600 (Thu, 31 Jan 2008) | 8 lines

Add some more sanity checking on IAX2 dial strings for the case that no peer
or hostname was provided, which is the one part of the dial string that is
absolutely required.  If it's not there, bail out.

(closes issue #11897)
Reported by sokhapkin
Patch by me

........

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

11 years agoMerged revisions 101649 via svnmerge from
Mark Michelson [Fri, 1 Feb 2008 00:08:17 +0000 (00:08 +0000)]
Merged revisions 101649 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101649 | mmichelson | 2008-01-31 18:06:37 -0600 (Thu, 31 Jan 2008) | 9 lines

From bugtracker: "fix totalAnalysisTime to handle periods of no channel activity"

(closes issue #9256)
Reported by: cmaj
Patches:
      amd-dont-wait-too-long-for-frames-take3.diff.txt uploaded by cmaj (license 111)
Tested by: cmaj, skygreg, ZX81, rjain

........

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

11 years agoMerged revisions 101601 via svnmerge from
Russell Bryant [Thu, 31 Jan 2008 23:14:57 +0000 (23:14 +0000)]
Merged revisions 101601 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101601 | russell | 2008-01-31 17:10:06 -0600 (Thu, 31 Jan 2008) | 12 lines

Fix a couple of places where ast_frfree() was not called on a frame that came
from a translator.  This showed itself by g729 decoders not getting released.
Since the flag inside the translator frame never got unset by freeing the frame
to indicate it was no longer in use, the translators never got destroyed, and
thus the g729 licenses were not released.

(closes issue #11892)
Reported by: xrg
Patches:
      11892.diff uploaded by russell (license 2)
Tested by: xrg, russell

........

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

11 years agoForgot an !
Mark Michelson [Thu, 31 Jan 2008 22:12:50 +0000 (22:12 +0000)]
Forgot an !

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

11 years agoA change I made to accommodate the "linear" strategy in trunk caused queue strategies to
Mark Michelson [Thu, 31 Jan 2008 22:04:52 +0000 (22:04 +0000)]
A change I made to accommodate the "linear" strategy in trunk caused queue strategies to
not be loaded from realtime queues. This commit fixes that.

Thanks to jmls for pointing this problem out to me on IRC.

This also contains some changes to S_OR where it should be used. Thanks to Qwell for pointing
these out.

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

11 years agoFix a simple deadlock that was introduced _right_ before this code got merged
Russell Bryant [Thu, 31 Jan 2008 21:33:33 +0000 (21:33 +0000)]
Fix a simple deadlock that was introduced _right_ before this code got merged
into trunk.

(closes issue #11895, reported by pj, patched by me)

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

11 years agoHandle the case of a NULL state_interface when checking a realtime member.
Mark Michelson [Thu, 31 Jan 2008 21:31:15 +0000 (21:31 +0000)]
Handle the case of a NULL state_interface when checking a realtime member.

Thanks to jmls for finding this issue.

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

11 years agoMerged revisions 101531 via svnmerge from
Mark Michelson [Thu, 31 Jan 2008 21:02:12 +0000 (21:02 +0000)]
Merged revisions 101531 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101531 | mmichelson | 2008-01-31 15:00:24 -0600 (Thu, 31 Jan 2008) | 10 lines

1. Prevent the addition of an extra '/' to the beginning of an absolute pathname.
2. If ast_monitor_change_fname is called and the new filename is the same as the old, then exit early and don't set the
   filename_changed field in the monitor structure. Setting it in this case was causing ast_monitor_stop to erroneously
   delete them.

(closes issue #11741)
Reported by: garlew
Tested by: putnopvut

........

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