]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
17 years agoDue to recent changes tag will no longer be NULL if not present so we have to use...
Joshua Colp [Mon, 25 Feb 2008 15:17:18 +0000 (15:17 +0000)] 
Due to recent changes tag will no longer be NULL if not present so we have to use ast_strlen_zero to see if it's actually blank.
(closes issue #12061)
Reported by: flefoll
Patches:
      chan_sip.c.br14.patch_pedantic_no_totag uploaded by flefoll (license 244)

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

17 years agoBackwards debug message.
Tilghman Lesher [Fri, 22 Feb 2008 22:45:14 +0000 (22:45 +0000)] 
Backwards debug message.
(closes issue #12052)
 Reported by: flefoll
 Patches:
       chan_sip.c.br14.patch_found-notfound uploaded by flefoll (license 244)

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

17 years agoAnd as a followup to revision 104026, completely remove event-related
Mark Michelson [Thu, 21 Feb 2008 21:05:42 +0000 (21:05 +0000)] 
And as a followup to revision 104026, completely remove event-related
calls from a section of code where we know there was no event to handle or get.

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

17 years agoRemove an incorrect debug message. It reported that it had received a specific event...
Mark Michelson [Thu, 21 Feb 2008 20:12:38 +0000 (20:12 +0000)] 
Remove an incorrect debug message. It reported that it had received a specific event and tried to report
which event was received. What actually was happening was that it was reporting the number of bytes returned
from a call to read().

Thanks to Jared Smith for bringing the issue up on IRC

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

17 years agoreduce the likelihood that HTTP Manager session ids will consist of primarily '1...
Kevin P. Fleming [Thu, 21 Feb 2008 14:33:51 +0000 (14:33 +0000)] 
reduce the likelihood that HTTP Manager session ids will consist of primarily '1' bits

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

17 years agoClear up confusion when viewing the QUEUE_WAITING_COUNT of a
Mark Michelson [Wed, 20 Feb 2008 22:32:22 +0000 (22:32 +0000)] 
Clear up confusion when viewing the QUEUE_WAITING_COUNT of a
"dead" realtime queue. Since from the user's perspective, the queue
does exist, we shouldn't tell them we couldn't find the queue. Instead
since it is a dead queue, report a 0 waiting count

This issue was brought up on IRC by jmls

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

17 years agoDon't wait for additional digits when overlap dialing is enabled if the setup message...
Joshua Colp [Wed, 20 Feb 2008 22:06:59 +0000 (22:06 +0000)] 
Don't wait for additional digits when overlap dialing is enabled if the setup message contains the sending_complete information element.
(closes issue #11785)
Reported by: klaus3000
Patches:
      sending_complete_overlap_asterisk-1.4.17.patch.txt uploaded by klaus3000 (license 65)

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

17 years agoFix a crash if the channel becomes NULL while attempting to lock it.
Mark Michelson [Wed, 20 Feb 2008 21:40:08 +0000 (21:40 +0000)] 
Fix a crash if the channel becomes NULL while attempting to lock it.

(closes issue #12039)
Reported by: danpwi

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

17 years agoCompat fix for Solaris
Tilghman Lesher [Wed, 20 Feb 2008 17:53:00 +0000 (17:53 +0000)] 
Compat fix for Solaris
(closes issue #12022)
 Reported by: asgaroth
 Patches:
       20080219__bug12022.diff.txt uploaded by Corydon76 (license 14)
 Tested by: asgaroth

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

17 years agoSend CallerID Name in setup message.
Joshua Colp [Tue, 19 Feb 2008 20:28:08 +0000 (20:28 +0000)] 
Send CallerID Name in setup message.
(closes issue #11241)
Reported by: tusar
Patches:
      h323id_as_callerid_name.patch uploaded by tusar (license 344)

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

17 years agoAccount for the fact that the "other" channel can disappear while the local pvt
Russell Bryant [Tue, 19 Feb 2008 20:02:49 +0000 (20:02 +0000)] 
Account for the fact that the "other" channel can disappear while the local pvt
is not locked.

(fixes a problem introduced in rev 100581)
(closes issue #12012)
Reported by: stevedavies
Patch by me

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

17 years agoDon't look for launchd when cross compiling.
Joshua Colp [Tue, 19 Feb 2008 17:31:32 +0000 (17:31 +0000)] 
Don't look for launchd when cross compiling.
(closes issue #12029)
Reported by: ovi

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

17 years agoFix building of chan_sip.
Joshua Colp [Tue, 19 Feb 2008 15:01:42 +0000 (15:01 +0000)] 
Fix building of chan_sip.

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

17 years agoMake sure we send error replies correctly by checking the via header.
Olle Johansson [Tue, 19 Feb 2008 10:27:15 +0000 (10:27 +0000)] 
Make sure we send error replies correctly by checking the via header.

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

17 years agoEnsure that emulated DTMFs do not get interrupted by another begin frame.
Joshua Colp [Mon, 18 Feb 2008 23:56:48 +0000 (23:56 +0000)] 
Ensure that emulated DTMFs do not get interrupted by another begin frame.
(closes issue #11740)
Reported by: gserra
Patches:
      v1-11740.patch uploaded by dimas (license 88)
(closes issue #11955)
Reported by: tsearle
(closes issue #10530)
Reported by: xmarksthespot

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

17 years agoFix previous commit so that we actually disable echocanbridged if echocancel is off.
Jason Parker [Mon, 18 Feb 2008 22:28:56 +0000 (22:28 +0000)] 
Fix previous commit so that we actually disable echocanbridged if echocancel is off.

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

17 years agoCorrect a message when echocancelwhenbridged is on, but echocancel is not.
Jason Parker [Mon, 18 Feb 2008 21:23:32 +0000 (21:23 +0000)] 
Correct a message when echocancelwhenbridged is on, but echocancel is not.

Issue #12019

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

17 years agoThere was an invalid assumption when calculating the duration of a file that the...
Mark Michelson [Mon, 18 Feb 2008 20:52:09 +0000 (20:52 +0000)] 
There was an invalid assumption when calculating the duration of a file that the filestream in question
was created properly. Unfortunately this led to a segfault in the situation where an unknown format was
specified in voicemail.conf and a voicemail was recorded. Now, we first check to be sure that the stream
was written correctly or else assume a zero duration.

(closes issue #12021)
Reported by: jakep
Tested by: putnopvut

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

17 years agoWhen a SIP channel is being auto-destroyed, it's possible for it to still be
Tilghman Lesher [Mon, 18 Feb 2008 17:31:52 +0000 (17:31 +0000)] 
When a SIP channel is being auto-destroyed, it's possible for it to still be
in bridge code.  When that happens, we crash.  Delay the RTP destruction until
the bridge is ended.
(closes issue #11960)
 Reported by: norman
 Patches:
       20080215__bug11960__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: norman

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

17 years agoFix a linked list corruption that under the right circumstances
Mark Michelson [Mon, 18 Feb 2008 16:37:31 +0000 (16:37 +0000)] 
Fix a linked list corruption that under the right circumstances
could lead to a looped list, meaning it will traverse forever.

(closes issue #11818)
Reported by: michael-fig
Patches:
      11818.patch uploaded by putnopvut (license 60)
  Tested by: michael-fig

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

17 years agoBackport fix from issue #9325.
Joshua Colp [Mon, 18 Feb 2008 16:11:51 +0000 (16:11 +0000)] 
Backport fix from issue #9325.
(closes issue #11980)
Reported by: rbrunka

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

17 years agoDon't care if the extension given doesn't exist for subscription based MWI.
Joshua Colp [Mon, 18 Feb 2008 15:33:14 +0000 (15:33 +0000)] 
Don't care if the extension given doesn't exist for subscription based MWI.

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

17 years agoFix a crash in chan_iax2 due to a race condition
Russell Bryant [Fri, 15 Feb 2008 23:31:39 +0000 (23:31 +0000)] 
Fix a crash in chan_iax2 due to a race condition

(closes issue #11780)
Reported by: guillecabeza
Patches:
      bug_iax2_jb_1.4.patch uploaded by guillecabeza (license 380)
      bug_iax2_jb_trunk.patch uploaded by guillecabeza (license 380)

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

17 years agoIn the case that you try to directly reload a module has returned
Russell Bryant [Fri, 15 Feb 2008 19:50:11 +0000 (19:50 +0000)] 
In the case that you try to directly reload a module has returned
AST_MODULE_LOAD_DECLINE, log a message indicating that the module is not fully
initialized and must be initialized using "module load".

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

17 years agoDon't attempt to execute the reload callback for a module that returned
Russell Bryant [Fri, 15 Feb 2008 18:33:29 +0000 (18:33 +0000)] 
Don't attempt to execute the reload callback for a module that returned
AST_MODULE_LOAD_DECLINE.  This fixes a crash that was reported against
chan_console in trunk.

(closes issue #11953, reported by junky, fixed by me)

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

17 years agoFinal round of changes for configure script logic for IMAP
Mark Michelson [Fri, 15 Feb 2008 17:26:37 +0000 (17:26 +0000)] 
Final round of changes for configure script logic for IMAP

Now if a directory is specified, then we will search that directory for
a source installation of the IMAP toolkit. If none is found, then we will
use that directory as the basis for detecting a package installation of
the IMAP c-client. If that check fails, then configure will fail.

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

17 years agoFix a bit of wrong logic in the configure script that caused problems when trying...
Mark Michelson [Fri, 15 Feb 2008 15:05:49 +0000 (15:05 +0000)] 
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/branches/1.4@103713 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoI apparently misunderstood one of the requirements of this configure change.
Mark Michelson [Fri, 15 Feb 2008 00:50:49 +0000 (00:50 +0000)] 
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/branches/1.4@103709 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMake a small clarification in the documentation
Mark Michelson [Thu, 14 Feb 2008 23:49:24 +0000 (23:49 +0000)] 
Make a small clarification in the documentation

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

17 years agoUpdate documentation regarding configuration of IMAP
Mark Michelson [Thu, 14 Feb 2008 23:44:17 +0000 (23:44 +0000)] 
Update documentation regarding configuration of IMAP

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

17 years agoChange to the configure logic regarding IMAP. Prior to this commit, if you wished...
Mark Michelson [Thu, 14 Feb 2008 23:30:17 +0000 (23:30 +0000)] 
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/branches/1.4@103698 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix build for non-IMAP builds
Mark Michelson [Thu, 14 Feb 2008 21:03:02 +0000 (21:03 +0000)] 
Fix build for non-IMAP builds

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

17 years agoFix the new message count if delete=yes when using IMAP storage.
Mark Michelson [Thu, 14 Feb 2008 20:55:48 +0000 (20:55 +0000)] 
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/branches/1.4@103688 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoswap location for this..
Jason Parker [Thu, 14 Feb 2008 19:51:39 +0000 (19:51 +0000)] 
swap location for this..

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

17 years agoDocument the 'l' option to the CDR() function.
Jason Parker [Thu, 14 Feb 2008 19:51:10 +0000 (19:51 +0000)] 
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/branches/1.4@103683 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoWe aren't talking to ourselves; we're talking to someone else.
Tilghman Lesher [Wed, 13 Feb 2008 06:25:03 +0000 (06:25 +0000)] 
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/branches/1.4@103607 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoRefuse to load app_voicemail if res_adsi is not loaded (which is a symbol dependency)
Tilghman Lesher [Wed, 13 Feb 2008 00:26:57 +0000 (00:26 +0000)] 
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/branches/1.4@103556 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agorevert accidental change from last commit. oops
Jason Parker [Tue, 12 Feb 2008 22:24:03 +0000 (22:24 +0000)] 
revert accidental change from last commit.  oops

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

17 years agoRemove condition that was impossible.
Jason Parker [Tue, 12 Feb 2008 22:22:54 +0000 (22:22 +0000)] 
Remove condition that was impossible.

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

17 years agoEven if no CallerID name or number has been provided by the remote party still use...
Joshua Colp [Tue, 12 Feb 2008 15:09:24 +0000 (15:09 +0000)] 
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/branches/1.4@103385 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIf entering a conference with the 'w' option ensure that we can't listen or speak...
Joshua Colp [Mon, 11 Feb 2008 22:09:07 +0000 (22:09 +0000)] 
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/branches/1.4@103324 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoimprove 2BCT documentation a bit (thanks Jared)
Kevin P. Fleming [Mon, 11 Feb 2008 17:05:22 +0000 (17:05 +0000)] 
improve 2BCT documentation a bit (thanks Jared)

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

17 years agoCommit fix for being unable to send voicemail from VoiceMailMain
Tilghman Lesher [Sat, 9 Feb 2008 06:23:49 +0000 (06:23 +0000)] 
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/branches/1.4@103197 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoPrevent a potential three-thread deadlock. Also added a comment block
Mark Michelson [Fri, 8 Feb 2008 18:48:17 +0000 (18:48 +0000)] 
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/branches/1.4@103120 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoYield the thread and return -1 if the ioctl fails for Zaptel timing device.
Mark Michelson [Fri, 8 Feb 2008 18:00:38 +0000 (18:00 +0000)] 
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/branches/1.4@103070 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMake sure the presence of dbsecret is factored into user scoring.
Joshua Colp [Fri, 8 Feb 2008 15:08:20 +0000 (15:08 +0000)] 
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/branches/1.4@102968 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoSpecify which digit string was matched in debug message.
Jason Parker [Thu, 7 Feb 2008 19:53:55 +0000 (19:53 +0000)] 
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/branches/1.4@102858 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agodocument usage of 'transfer' configuration option for ISDN PRI switch-side transfers
Kevin P. Fleming [Thu, 7 Feb 2008 16:41:55 +0000 (16:41 +0000)] 
document usage of 'transfer' configuration option for ISDN PRI switch-side transfers

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

17 years agoOnly consider a T.38-only INVITE compatible if we have both a joint capability betwee...
Joshua Colp [Wed, 6 Feb 2008 17:59:23 +0000 (17:59 +0000)] 
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/branches/1.4@102725 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdd missing header file and ASTERISK_FILE_VERSION usage.
Joshua Colp [Wed, 6 Feb 2008 15:43:38 +0000 (15:43 +0000)] 
Add missing header file and ASTERISK_FILE_VERSION usage.
(closes issue #11936)
Reported by: snuffy

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

17 years agoClarify setting DYNAMIC_FEATURES so that it gets inherited by outbound channels.
Russell Bryant [Wed, 6 Feb 2008 15:19:41 +0000 (15:19 +0000)] 
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/branches/1.4@102651 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoensure that all remaining multi-object modules are built using their proper CFLAGS...
Kevin P. Fleming [Wed, 6 Feb 2008 11:48:48 +0000 (11:48 +0000)] 
ensure that all remaining multi-object modules are built using their proper CFLAGS and include directory paths

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

17 years agoMove around some defines to unbreak ODBC storage.
Tilghman Lesher [Wed, 6 Feb 2008 00:26:02 +0000 (00:26 +0000)] 
Move around some defines to unbreak ODBC storage.
(closes issue #11932)
 Reported by: snuffy

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

17 years agoClear the DTMF buffer on hangup.
Mark Michelson [Tue, 5 Feb 2008 20:02:44 +0000 (20:02 +0000)] 
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/branches/1.4@102453 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIf a REGISTER attempt comes in that is a retransmission of a previous REGISTER do...
Joshua Colp [Tue, 5 Feb 2008 19:52:30 +0000 (19:52 +0000)] 
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/branches/1.4@102450 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoensure that components of chan_misdn.so are built using any special build options...
Kevin P. Fleming [Tue, 5 Feb 2008 17:15:36 +0000 (17:15 +0000)] 
ensure that components of chan_misdn.so are built using any special build options that the configure script generated (reported by Philipp Kempgen on asterisk-dev)

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

17 years agoPerform dialing asynchronously when using the originate CLI command so the CLI does...
Joshua Colp [Tue, 5 Feb 2008 15:09:29 +0000 (15:09 +0000)] 
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/branches/1.4@102378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoCross-platform fix: OS X now deprecates the use of the daemon(3) API.
Tilghman Lesher [Mon, 4 Feb 2008 21:06:09 +0000 (21:06 +0000)] 
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/branches/1.4@102323 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMissing braces.
Tilghman Lesher [Mon, 4 Feb 2008 05:10:02 +0000 (05:10 +0000)] 
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/branches/1.4@102214 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoUse the same CSEQ on CANCEL as on INVITE (according to RFC 3261)
Olle Johansson [Sun, 3 Feb 2008 16:38:12 +0000 (16:38 +0000)] 
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/branches/1.4@102142 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoHandle ACK and CANCEL in an invite transaction - even if we get INFO transactions...
Olle Johansson [Sun, 3 Feb 2008 10:37:32 +0000 (10:37 +0000)] 
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/branches/1.4@102090 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoChange the SDP_SAMPLE_RATE macro. It turns out that even though G.722 is 16 kHz,
Russell Bryant [Fri, 1 Feb 2008 23:06:32 +0000 (23:06 +0000)] 
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/branches/1.4@101989 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix the VM_DUR variable for forwarded voicemail, and fixed several other bugs
Tilghman Lesher [Fri, 1 Feb 2008 21:54:28 +0000 (21:54 +0000)] 
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/branches/1.4@101942 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoChange detection of getifaddrs to use AST_C_COMPILE_CHECK, backported from trunk...
Tilghman Lesher [Fri, 1 Feb 2008 19:36:12 +0000 (19:36 +0000)] 
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/branches/1.4@101894 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoRemove a needless (and incorrect) call to feof() after fgets().
Jason Parker [Fri, 1 Feb 2008 17:41:40 +0000 (17:41 +0000)] 
Remove a needless (and incorrect) call to feof() after 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/branches/1.4@101822 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agooff by one error
Russell Bryant [Fri, 1 Feb 2008 17:27:02 +0000 (17:27 +0000)] 
off by one error

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

17 years agoDon't overwrite the last character of a line if it's not a newline. This would
Russell Bryant [Fri, 1 Feb 2008 17:23:47 +0000 (17:23 +0000)] 
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/branches/1.4@101818 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoCompatibility fix for OpenWRT (reported by Brian Capouch via the mailing list)
Tilghman Lesher [Fri, 1 Feb 2008 15:55:58 +0000 (15:55 +0000)] 
Compatibility fix for OpenWRT (reported by Brian Capouch via the mailing list)

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

17 years agoAdd some more sanity checking on IAX2 dial strings for the case that no peer
Russell Bryant [Fri, 1 Feb 2008 00:32:49 +0000 (00:32 +0000)] 
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/branches/1.4@101693 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFrom bugtracker: "fix totalAnalysisTime to handle periods of no channel activity"
Mark Michelson [Fri, 1 Feb 2008 00:06:37 +0000 (00:06 +0000)] 
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/branches/1.4@101649 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix a couple of places where ast_frfree() was not called on a frame that came
Russell Bryant [Thu, 31 Jan 2008 23:10:06 +0000 (23:10 +0000)] 
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/branches/1.4@101601 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years ago1. Prevent the addition of an extra '/' to the beginning of an absolute pathname.
Mark Michelson [Thu, 31 Jan 2008 21:00:24 +0000 (21:00 +0000)] 
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/branches/1.4@101531 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoSolaris compat fixes for struct in_addr funkiness.
Jason Parker [Thu, 31 Jan 2008 19:52:49 +0000 (19:52 +0000)] 
Solaris compat fixes for struct in_addr funkiness.

Issue #11885, patch by snuffy.

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

17 years agocloses issue #11845; that's the one where there's a 1004 byte cdr leak with every...
Steve Murphy [Thu, 31 Jan 2008 19:30:37 +0000 (19:30 +0000)] 
closes issue #11845; that's the one where there's a 1004 byte cdr leak with every AMI Redirect to a zap channel

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

17 years agoAdd more missing locking of the agents list ...
Russell Bryant [Thu, 31 Jan 2008 19:17:05 +0000 (19:17 +0000)] 
Add more missing locking of the agents list ...

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

17 years agoMove the locking from find_agent() into the agent dialplan function handler to
Russell Bryant [Thu, 31 Jan 2008 19:07:46 +0000 (19:07 +0000)] 
Move the locking from find_agent() into the agent dialplan function handler to
ensure that the agent doesn't disappear while we're looking at it.

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

17 years agoAdd missing locking to the find_agent() function.
Russell Bryant [Thu, 31 Jan 2008 19:04:52 +0000 (19:04 +0000)] 
Add missing locking to the find_agent() function.

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

17 years agoFix an issue where if a frame of higher sample size preceeded a frame of lower sample...
Joshua Colp [Wed, 30 Jan 2008 15:41:04 +0000 (15:41 +0000)] 
Fix an issue where if a frame of higher sample size preceeded a frame of lower sample size and ast_slinfactory_read was called with a sample size of the combined values or higher a crash would happen.
(closes issue #11878)
Reported by: stuarth

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

17 years agoChange default config to use descending channel order of groups, rather than ascending.
Jason Parker [Wed, 30 Jan 2008 15:34:37 +0000 (15:34 +0000)] 
Change default config to use descending channel order of groups, rather than ascending.
Fixes a potential source of confusion in glare-type situations.

Issue 11875, reported by JimVanM.

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

17 years agoFix a logic error with regards to autofill. Prior to this change, it was possible
Mark Michelson [Wed, 30 Jan 2008 15:23:00 +0000 (15:23 +0000)] 
Fix a logic error with regards to autofill. Prior to this change, it was possible
for a caller to go out of turn if autofill were enabled and callers ahead in the queue were attempting
to call a member. This change fixes this.

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

17 years agoStop musiconhold on attended transfer.
Olle Johansson [Wed, 30 Jan 2008 11:20:31 +0000 (11:20 +0000)] 
Stop musiconhold on attended transfer.
(closes issue #11872)
Reported by: gareth
Patches:
      svn-101018.patch uploaded by gareth (license 208)

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

17 years agoupdated build_tools to handle the autotag directory structure changes; changes relate...
Dwayne M. Hubbard [Tue, 29 Jan 2008 23:50:42 +0000 (23:50 +0000)] 
updated build_tools to handle the autotag directory structure changes; changes related to BE-353.  Patch by Russell and reviewed by Me.

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

17 years agoRemove a memory leak from updating realtime queues
Mark Michelson [Tue, 29 Jan 2008 23:02:03 +0000 (23:02 +0000)] 
Remove a memory leak from updating realtime queues

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

17 years agoFixing an erroneous return value returned when attempting to pause or unpause a queue...
Mark Michelson [Tue, 29 Jan 2008 19:39:00 +0000 (19:39 +0000)] 
Fixing an erroneous return value returned when attempting to pause or unpause a queue member
fails.

Fixes BE-366, thanks to John Bigelow for writing the patch.

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

17 years agoDon't forget to record the channel so we know whether it is bridged or not later.
Joshua Colp [Tue, 29 Jan 2008 17:57:05 +0000 (17:57 +0000)] 
Don't forget to record the channel so we know whether it is bridged or not later.
(closes issue #11811)
Reported by: slavon

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

17 years agoFix the last couple of issues related to building from a path that contains spaces.
Russell Bryant [Tue, 29 Jan 2008 17:43:41 +0000 (17:43 +0000)] 
Fix the last couple of issues related to building from a path that contains spaces.

(closes issue #11834)

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

17 years agoInitialize an array to 0s if config option not specified.
Jason Parker [Tue, 29 Jan 2008 17:41:43 +0000 (17:41 +0000)] 
Initialize an array to 0s if config option not specified.

(closes issue #11860)
Patches:
      misdn_get_config.v1.diff uploaded by IgorG (license 20)

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

17 years agoUse GNU make magic instead of shell magic to escape spaces in the working directory.
Russell Bryant [Tue, 29 Jan 2008 17:21:33 +0000 (17:21 +0000)] 
Use GNU make magic instead of shell magic to escape spaces in the working directory.
(related to issue #11834)

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

17 years agoFix building Asterisk when the working path has spaces in it.
Russell Bryant [Tue, 29 Jan 2008 17:06:43 +0000 (17:06 +0000)] 
Fix building Asterisk when the working path has spaces in it.

(closes issue #11834)
Reported by: spendergrass
Patched by: me

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

17 years agoAllow zap groups above 30 to work properly.
Jason Parker [Tue, 29 Jan 2008 16:10:00 +0000 (16:10 +0000)] 
Allow zap groups above 30 to work properly.

(closes issue #11590)
Reported by: tbsky

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

17 years agofixed potential segfault in misdn show channels CLI command
Christian Richter [Tue, 29 Jan 2008 10:36:19 +0000 (10:36 +0000)] 
fixed potential segfault in misdn show channels CLI command

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

17 years ago(closes issue #11736)
Olle Johansson [Tue, 29 Jan 2008 08:26:48 +0000 (08:26 +0000)] 
(closes issue #11736)
Reported by: MVF
Patches:
      bug11736-2.diff uploaded by oej (license 306)
Tested by: oej, MVF, revolution

(russellb: This was the showstopper for the release.)

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

17 years agoWaitExten didn't handle AbsoluteTimeout properly (went to 't' instead of 'T')
Tilghman Lesher [Mon, 28 Jan 2008 21:02:02 +0000 (21:02 +0000)] 
WaitExten didn't handle AbsoluteTimeout properly (went to 't' instead of 'T')

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

17 years agoUndoing the deprecation of chan_vpb. It is alive and well.
Mark Michelson [Mon, 28 Jan 2008 20:55:56 +0000 (20:55 +0000)] 
Undoing the deprecation of chan_vpb. It is alive and well.

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

17 years agoWhen using ODBC_STORAGE, make sure we put greeting files into the database like we...
Jason Parker [Mon, 28 Jan 2008 20:42:43 +0000 (20:42 +0000)] 
When using ODBC_STORAGE, make sure we put greeting files into the database like we do with the others.

Issue #11795
Reported by: dimas
Patches:
      vmgreet.patch uploaded by dimas (license 88)

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

17 years agoFor some reason, the use of this strdupa() is leading to memory corruption on
Russell Bryant [Mon, 28 Jan 2008 18:34:20 +0000 (18:34 +0000)] 
For some reason, the use of this strdupa() is leading to memory corruption on
freebsd sparc64.  This trivial workaround fixes it.

(closes issue #10300, closes issue #11857, reported by mattias04 and Home-of-the-Brave)

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

17 years agoFix a crash in ast_masq_park_call()
Russell Bryant [Mon, 28 Jan 2008 18:26:31 +0000 (18:26 +0000)] 
Fix a crash in ast_masq_park_call()

(issue #11342)
Reported by: DEA
Patches:
      res_features-park.txt uploaded by DEA (license 3)

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

17 years agoCorrect a comment which made little/no sense.
Jason Parker [Mon, 28 Jan 2008 18:23:09 +0000 (18:23 +0000)] 
Correct a comment which made little/no sense.

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

17 years agoMake some deadlock related fixes. These bugs were discovered and reported
Russell Bryant [Mon, 28 Jan 2008 17:15:41 +0000 (17:15 +0000)] 
Make some deadlock related fixes.  These bugs were discovered and reported
internally at Digium by Steve Pitts.
 - Fix up chan_local to ensure that the channel lock is held before the local
   pvt lock.
 - Don't hold the channel lock when executing the timing function, as it can
   cause a deadlock when using chan_local.  This actually changes the code back
   to be how it was before the change for issue #10765.  But, I added some other
   locking that I think will prevent the problem reported there, as well.

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

17 years agoWhen deleting a task from the scheduler, ignoring the return value could
Tilghman Lesher [Sun, 27 Jan 2008 21:59:53 +0000 (21:59 +0000)] 
When deleting a task from the scheduler, ignoring the return value could
possibly cause memory to be accessed after it is freed, which causes all
sorts of random memory corruption.  Instead, if a deletion fails, wait a
bit and try again (noting that another thread could change our taskid
value).
(closes issue #11386)
 Reported by: flujan
 Patches:
       20080124__bug11386.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76, flujan, stuarth`

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