]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
17 years agoFix a race condition where the generator can go away
Russell Bryant [Mon, 10 Mar 2008 16:58:57 +0000 (16:58 +0000)] 
Fix a race condition where the generator can go away
(closes issue #12175, reported by edantie, patched by me)

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

17 years agoMove where unanswered CDRs are dropped to the CDR core, not everything uses app_dial.
Joshua Colp [Mon, 10 Mar 2008 14:33:02 +0000 (14:33 +0000)] 
Move where unanswered CDRs are dropped to the CDR core, not everything uses app_dial.
(closes issue #11516)
Reported by: ys
Patches:
      branch_1.4_cdr.diff uploaded by ys (license 281)
Tested by: anest, jcapp, dartvader

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

17 years agodon't generate D-Channel "up" and "down" messages unless the channel state is actuall...
Kevin P. Fleming [Sat, 8 Mar 2008 15:59:42 +0000 (15:59 +0000)] 
don't generate D-Channel "up" and "down" messages unless the channel state is actually changing; also, generate the "up" message when an implicit "up" occurs due to reception of a normal event when we thought the channel was "down"

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

17 years agoOnly start the SLA thread if SLA has actually been configured.
Russell Bryant [Fri, 7 Mar 2008 22:51:23 +0000 (22:51 +0000)] 
Only start the SLA thread if SLA has actually been configured.

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

17 years agoFix hardcoded grep in editline, were GNU grep is required.
Jason Parker [Fri, 7 Mar 2008 22:14:45 +0000 (22:14 +0000)] 
Fix hardcoded grep in editline, were GNU grep is required.

(closes issue #12124)
Reported by: dmartin

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

17 years agoIgnore source update control frame.
Joshua Colp [Fri, 7 Mar 2008 19:32:00 +0000 (19:32 +0000)] 
Ignore source update control frame.
(closes issue #12168)
Reported by: plack

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

17 years agoChange a warning message to a debug message. This is happening quite frequently,
Russell Bryant [Fri, 7 Mar 2008 17:16:58 +0000 (17:16 +0000)] 
Change a warning message to a debug message.  This is happening quite frequently,
and it is not worth spamming users with these messages unless we are pretty confident
that it should never happen.  As it stands today, it _will_ and _does_ happen and
until that gets cleaned up a reasonable amount on the development side, let's not
spam the logs of everyone else.

(closes issue #12154)

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

17 years agoWarn the user when a temporary greeting exists
Tilghman Lesher [Fri, 7 Mar 2008 16:22:11 +0000 (16:22 +0000)] 
Warn the user when a temporary greeting exists
(Closes issue #11409)

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

17 years agoProperly initialize rtp->schedid
Tilghman Lesher [Fri, 7 Mar 2008 15:20:52 +0000 (15:20 +0000)] 
Properly initialize rtp->schedid
(Closes issue #12154)

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

17 years agoSafely use the strncat() function.
Tilghman Lesher [Fri, 7 Mar 2008 06:36:33 +0000 (06:36 +0000)] 
Safely use the strncat() function.
(closes issue #11958)
 Reported by: norman
 Patches:
       20080209__bug11958.diff.txt uploaded by Corydon76 (license 14)

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

17 years agoQuell an annoying message that is likely to print every single time that
Mark Michelson [Thu, 6 Mar 2008 22:10:07 +0000 (22:10 +0000)] 
Quell an annoying message that is likely to print every single time that
ast_pbx_outgoing_app is called. The reason is that __ast_request_and_dial
allocates the cdr for the channel, so it should be expected that the channel
will have a cdr on it.

Thanks to joetester on IRC for pointing this out

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

17 years agoUpgrade to the next release of sounds
Tilghman Lesher [Thu, 6 Mar 2008 04:40:06 +0000 (04:40 +0000)] 
Upgrade to the next release of sounds

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

17 years agoFix a potential deadlock and a few different potential crashes.
Russell Bryant [Wed, 5 Mar 2008 22:37:09 +0000 (22:37 +0000)] 
Fix a potential deadlock and a few different potential crashes.
(closes issue #12145, reported by thiagarcia, patched by me)

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

17 years agoAdd a control frame to indicate the source of media has changed. Depending on the...
Joshua Colp [Wed, 5 Mar 2008 22:32:10 +0000 (22:32 +0000)] 
Add a control frame to indicate the source of media has changed. Depending on the underlying technology it may need to change some things.
(closes issue #12148)
Reported by: jcomellas

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

17 years agodocument var_metric so no bugreports will come in when it's actually a configuration...
Michiel van Baak [Wed, 5 Mar 2008 21:12:36 +0000 (21:12 +0000)] 
document var_metric so no bugreports will come in when it's actually a configuration issue.
(issue #12151)
Reported and patched by: caio1982
1.4 patch by me

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

17 years agowhen a PRI call must be moved to a different B channel at the request of the other...
Kevin P. Fleming [Wed, 5 Mar 2008 15:32:35 +0000 (15:32 +0000)] 
when a PRI call must be moved to a different B channel at the request of the other endpoint, ensure that any DSP active on the original channel is moved to the new one

(closes issue #11917)
Reported by: mavetju
Tested by: mavetju

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

17 years agoCorrectly initialize retransid in SIP, and ensure that the warning when failing to...
Tilghman Lesher [Wed, 5 Mar 2008 15:17:16 +0000 (15:17 +0000)] 
Correctly initialize retransid in SIP, and ensure that the warning when failing to delete a schedule entry can actually hit the log.
(closes issue #12140)
 Reported by: slavon
 Patches:
       sch2.patch uploaded by slavon (license 288)
(Patch slightly modified by me)

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

17 years agoFix a bug that I just noticed in the RTP code. The calculation for setting the
Russell Bryant [Wed, 5 Mar 2008 01:52:18 +0000 (01:52 +0000)] 
Fix a bug that I just noticed in the RTP code.  The calculation for setting the
len field in an ast_frame of audio was wrong when G.722 is in use.  The len field
represents the number of ms of audio that the frame contains.  It would have
set the value to be twice what it should be.

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

17 years agoIn addition to setting the marker bit let's change our ssrc so they know for sure...
Joshua Colp [Tue, 4 Mar 2008 18:10:34 +0000 (18:10 +0000)] 
In addition to setting the marker bit let's change our ssrc so they know for sure it is a different source.

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

17 years agoWhen a new source of audio comes in (such as music on hold) make sure the marker...
Joshua Colp [Tue, 4 Mar 2008 18:05:28 +0000 (18:05 +0000)] 
When a new source of audio comes in (such as music on hold) make sure the marker bit gets set.
(closes issue #10355)
Reported by: wdecarne
Patches:
      10355.diff uploaded by file (license 11)
(closes issue #11491)
Reported by: kanderson

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

17 years agoBackport a minor bug fix from trunk that I found while doing random code
Russell Bryant [Tue, 4 Mar 2008 04:31:29 +0000 (04:31 +0000)] 
Backport a minor bug fix from trunk that I found while doing random code
cleanup.  Properly break out of the loop when a context isn't found when
verify that includes are valid.

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

17 years agoFix type for astNumChannels.
Jason Parker [Mon, 3 Mar 2008 18:06:52 +0000 (18:06 +0000)] 
Fix type for astNumChannels.

(closes issue #12114)
Reported by: jeffg
Patches:
      12114.patch uploaded by jeffg (license 192)

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

17 years agoIn the case of an ast_channel allocation failure, take the local_pvt out of the
Russell Bryant [Mon, 3 Mar 2008 17:16:53 +0000 (17:16 +0000)] 
In the case of an ast_channel allocation failure, take the local_pvt out of the
pvt list before destroying it.

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

17 years agoFix a potential memory leak of the local_pvt struct when ast_channel allocation
Russell Bryant [Mon, 3 Mar 2008 17:05:16 +0000 (17:05 +0000)] 
Fix a potential memory leak of the local_pvt struct when ast_channel allocation
fails.  Also, in passing, centralize the code necessary to destroy a local_pvt.

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

17 years agoUpdate the copyright information for autoservice. Most of the code in this file
Russell Bryant [Mon, 3 Mar 2008 16:01:50 +0000 (16:01 +0000)] 
Update the copyright information for autoservice.  Most of the code in this file
now is stuff that I have written recently ...

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

17 years agoMerge in some changes from team/russell/autoservice-nochans-1.4
Russell Bryant [Mon, 3 Mar 2008 15:50:43 +0000 (15:50 +0000)] 
Merge in some changes from team/russell/autoservice-nochans-1.4

These changes fix up some dubious code that I came across while auditing what
happens in the autoservice thread when there are no channels currently in
autoservice.

1) Change it so that autoservice thread doesn't keep looping around calling
   ast_waitfor_n() on 0 channels twice a second.  Instead, use a thread condition
   so that the thread properly goes to sleep and does not wake up until a
   channel is put into autoservice.

   This actually fixes an interesting bug, as well.  If the autoservice thread
   is already running (almost always is the case), then when the thread goes
   from having 0 channels to have 1 channel to autoservice, that channel would
   have to wait for up to 1/2 of a second to have the first frame read from it.

2) Fix up the code in ast_waitfor_nandfds() for when it gets called with no
   channels and no fds to poll() on, such as was the case with the previous code
   for the autoservice thread.  In this case, the code would call alloca(0), and
   pass the result as the first argument to poll().  In this case, the 2nd
   argument to poll() specified that there were no fds, so this invalid pointer
   shouldn't actually get dereferenced, but, this code makes it explicit and
   ensures the pointers are NULL unless we have valid data to put there.

(related to issue #12116)

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

17 years agoIt is possible for no audio to pass between the current digit and next digit so expan...
Joshua Colp [Mon, 3 Mar 2008 15:28:59 +0000 (15:28 +0000)] 
It is possible for no audio to pass between the current digit and next digit so expand logic that clears emulation to AST_FRAME_NULL.
(closes issue #11911)
Reported by: edgreenberg
Patches:
      v1-11911.patch uploaded by dimas (license 88)
Tested by: tbsky

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

17 years agoAdd a comment to describe some logic.
Joshua Colp [Mon, 3 Mar 2008 15:15:39 +0000 (15:15 +0000)] 
Add a comment to describe some logic.
(closes issue #12120)
Reported by: flefoll
Patches:
      chan_sip.c.br14.patch-just-a-comment uploaded by flefoll (license 244)

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

17 years agoFix a major bug in autoservice. There was a race condition in the handling of
Russell Bryant [Fri, 29 Feb 2008 23:34:32 +0000 (23:34 +0000)] 
Fix a major bug in autoservice.  There was a race condition in the handling of
the list of channels in autoservice.  The problem was that it was possible for
a channel to get removed from autoservice and destroyed, while the autoservice
thread was still messing with the channel.  This led to memory corruption, and
caused crashes.  This explains multiple backtraces I have seen that have
references to autoservice, but do to the nature of the issue (memory corruption),
could cause crashes in a number of areas.

(fixes the crash in BE-386)
(closes issue #11694)
(closes issue #11940)

The following issues could be related.  If you are the reporter of one of these,
please update to include this fix and try again.

(potentially fixes issue #11189)
(potentially fixes issue #12107)
(potentially fixes issue #11573)
(potentially fixes issue #12008)
(potentially fixes issue #11189)
(potentially fixes issue #11993)
(potentially fixes issue #11791)

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

17 years agoFix a potential memory leak
Philippe Sultan [Fri, 29 Feb 2008 14:47:10 +0000 (14:47 +0000)] 
Fix a potential memory leak

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

17 years agoIf the message file does not exist, just return harmlessly, instead of crashing.
Tilghman Lesher [Fri, 29 Feb 2008 14:34:34 +0000 (14:34 +0000)] 
If the message file does not exist, just return harmlessly, instead of crashing.
(Closes issue #12108)

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

17 years agoBump up the size of the uniqueid variable.
Joshua Colp [Fri, 29 Feb 2008 13:48:13 +0000 (13:48 +0000)] 
Bump up the size of the uniqueid variable.
(closes issue #12107)
Reported by: asgaroth

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

17 years agoAutomatically create new buddy upon reception of a presence stanza of
Philippe Sultan [Fri, 29 Feb 2008 13:05:15 +0000 (13:05 +0000)] 
Automatically create new buddy upon reception of a presence stanza of
type subscribed.

(closes issue #12066)
Reported by: ffadaie
Patches:
      branch-1.4-12066-1.diff uploaded by phsultan (license 73)
      trunk-12066-1.diff uploaded by phsultan (license 73)
Tested by: ffadaie, phsultan

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

17 years agoFix a bug in the lock tracking code that was discovered by mmichelson. The issue
Russell Bryant [Thu, 28 Feb 2008 22:23:05 +0000 (22:23 +0000)] 
Fix a bug in the lock tracking code that was discovered by mmichelson.  The issue
is that if the lock history array was full, then the functions to mark a lock as
acquired or not would adjust the stats for whatever lock is at the end of the array,
which may not be itself.  So, do a sanity check to make sure that we're updating
lock info for the proper lock.

(This explains the bizarre stats on lock #63 in BE-396, thanks Mark!)

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

17 years agoUpdate init script for LSB compat
Tilghman Lesher [Thu, 28 Feb 2008 21:56:54 +0000 (21:56 +0000)] 
Update init script for LSB compat
(closes issue #9843)
 Reported by: ibc
 Patches:
       rc.debian.asterisk.patch uploaded by ibc (license 211)
 Tested by: paravoid

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

17 years agoWhen using autofill, members who are in use should be counted towards the
Mark Michelson [Thu, 28 Feb 2008 20:11:57 +0000 (20:11 +0000)] 
When using autofill, members who are in use should be counted towards the
number of available members to call if ringinuse is set to yes.

Thanks to jmls who brought this issue up on IRC

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

17 years agoMake pbx_exec pass an empty string into applications, if we get NULL.
Jason Parker [Thu, 28 Feb 2008 19:20:10 +0000 (19:20 +0000)] 
Make pbx_exec pass an empty string into applications, if we get NULL.
This protects against possible segfaults in applications that may try
 to use data before checking length (ast_strdupa'ing it, for example)

(closes issue #12100)
Reported by: foxfire
Patches:
      12100-nullappargs.diff uploaded by qwell (license 4)

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

17 years agoAccording to a video at www.cisco.com, the 7921G supports 6 line appearances.
Jason Parker [Thu, 28 Feb 2008 04:31:21 +0000 (04:31 +0000)] 
According to a video at www.cisco.com, the 7921G supports 6 line appearances.

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

17 years agoCompatibility fix for PPC64
Tilghman Lesher [Thu, 28 Feb 2008 00:05:06 +0000 (00:05 +0000)] 
Compatibility fix for PPC64
(closes issue #12081)
 Reported by: jcollie
 Patches:
       asterisk-1.4.18-funcdesc.patch uploaded by jcollie (license 412)
 Tested by: jcollie, Corydon76

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

17 years agoTwo fixes:
Mark Michelson [Wed, 27 Feb 2008 21:49:20 +0000 (21:49 +0000)] 
Two fixes:

1. Make the list of ast_dial_channels a lockable list. This is because in some cases,
   the ast_dial may exist in multiple threads due to asynchronous execution of its application, and
   I found some cases where race conditions could exist.

2. Check in ast_dial_join to be sure that the channel still exists before attempting to lock it, since
   it could have gotten hung up but the is_running_app flag on the ast_dial_channel may not have been
   cleared yet.

(closes issue #12038)
Reported by: jvandal
Patches:
      12038v2.patch uploaded by putnopvut (license 60)
Tested by: jvandal

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

17 years agoDon't loop around infinitely trying to spy on our own channel, and don't forget to...
Joshua Colp [Wed, 27 Feb 2008 20:56:23 +0000 (20:56 +0000)] 
Don't loop around infinitely trying to spy on our own channel, and don't forget to free/detach the datastore upon hangup of the spy.

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

17 years agoBump a couple of more buffers up by 2 so that annoying warnings aren't generated
Mark Michelson [Wed, 27 Feb 2008 20:36:26 +0000 (20:36 +0000)] 
Bump a couple of more buffers up by 2 so that annoying warnings aren't generated
like crazy on every fileexists_core call.

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

17 years agoEnsure the session ID can't be 0.
Tilghman Lesher [Wed, 27 Feb 2008 18:15:10 +0000 (18:15 +0000)] 
Ensure the session ID can't be 0.

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

17 years agoBump up the buffer by 2.
Joshua Colp [Wed, 27 Feb 2008 17:41:40 +0000 (17:41 +0000)] 
Bump up the buffer by 2.

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

17 years agoFix a problem in ChanSpy where it could get stuck in an infinite loop without
Russell Bryant [Wed, 27 Feb 2008 17:33:04 +0000 (17:33 +0000)] 
Fix a problem in ChanSpy where it could get stuck in an infinite loop without
being able to detect that the calling channel hung up.
(closes issue #12076, reported by junky, patched by me)

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

17 years agoInherit language from the transfering channel on a blind transfer.
Jason Parker [Wed, 27 Feb 2008 17:26:55 +0000 (17:26 +0000)] 
Inherit language from the transfering channel on a blind transfer.

(closes issue #11682)
Reported by: caio1982
Patches:
      local_atxfer_lang3-1.4.diff uploaded by caio1982 (license 22)
Tested by: caio1982, victoryure

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

17 years agoUse the lock (which already existed, it just wasn't used) on the updaters list to...
Joshua Colp [Wed, 27 Feb 2008 17:07:33 +0000 (17:07 +0000)] 
Use the lock (which already existed, it just wasn't used) on the updaters list to protect the contents instead of the overall module list lock.
(closes issue #12080)
Reported by: ChaseVenters

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

17 years agofallback to standard English prompts properly when using new prompt directory layout
Kevin P. Fleming [Wed, 27 Feb 2008 16:53:06 +0000 (16:53 +0000)] 
fallback to standard English prompts properly when using new prompt directory layout

(closes issue #11831)
Reported by: IgorG
Patches:
      fallbacken.v1.diff uploaded by IgorG (license 20) (modified by me to improve code and conform rest of function to coding guidelines)

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

17 years agoWhen we receive a known alarm, make sure that the unknown alarm flag is not still
Russell Bryant [Wed, 27 Feb 2008 16:45:00 +0000 (16:45 +0000)] 
When we receive a known alarm, make sure that the unknown alarm flag is not still
set to make sure that when we come back out of alarm, it gets reported in the log
and manager interface (after discussion with tzafrir on the -dev list)

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

17 years agoOnly stop the MWI monitor thread if it was actually started.
Joshua Colp [Wed, 27 Feb 2008 15:52:02 +0000 (15:52 +0000)] 
Only stop the MWI monitor thread if it was actually started.
(closes issue #12086)
Reported by: francesco_r

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

17 years agoAvoid some recursion in the cleanup code for the chanspy datastore
Russell Bryant [Wed, 27 Feb 2008 01:15:02 +0000 (01:15 +0000)] 
Avoid some recursion in the cleanup code for the chanspy datastore
(closes issue #12076, reported by junky, patched by me)

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

17 years agoZaptel 1.4 now exposes FXO battery state as an alarm. However, Asterisk 1.4
Russell Bryant [Wed, 27 Feb 2008 00:54:29 +0000 (00:54 +0000)] 
Zaptel 1.4 now exposes FXO battery state as an alarm.  However, Asterisk 1.4
does not know what to do with these alarms.  Only Asterisk 1.6 cares about it.
So, if we get an unknown alarm in chan_zap, don't generate confusing log messages
about it.

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

17 years agoAdd badshell to .PHONY target (thanks Kevin)
Jason Parker [Tue, 26 Feb 2008 18:26:12 +0000 (18:26 +0000)] 
Add badshell to .PHONY target (thanks Kevin)

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

17 years agoSince all shells aren't as awesome as bash, we have to fail if somebody tries to...
Jason Parker [Tue, 26 Feb 2008 18:09:13 +0000 (18:09 +0000)] 
Since all shells aren't as awesome as bash, we have to fail if somebody tries to use a literal "~" in DESTDIR.

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

17 years agoRevert previous abspath change.
Jason Parker [Tue, 26 Feb 2008 16:35:06 +0000 (16:35 +0000)] 
Revert previous abspath change.
...abspath is new in GNU make 3.81.  I feel so...defeated.

Must find new fix!

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

17 years agoFix a very bizarre issue we were seeing with our buildbot when using a DESTDIR that
Jason Parker [Tue, 26 Feb 2008 16:08:44 +0000 (16:08 +0000)] 
Fix a very bizarre issue we were seeing with our buildbot when using a DESTDIR that
 wasn't an absolute path (such as DESTDIR=~/asterisk-1.4).

Apparently what was happening, was that some of the targets were being expanded to
 the full path, so $@ ended up being /root/asterisk-1.4/[...]/ rather than ~/asterisk-1.4/[...]/

It appears that this may be a new "feature" in GNU make.
(*cough* http://en.wikipedia.org/wiki/Principle_of_least_surprise *cough*)

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

17 years agoMerge changes from team/russell/smdi-1.4
Russell Bryant [Tue, 26 Feb 2008 00:25:29 +0000 (00:25 +0000)] 
Merge changes from team/russell/smdi-1.4

This commit brings in a significant set of changes to the SMDI support in Asterisk.
There were a number of bugs in the current implementation, most notably being that
it was very likely on busy systems to pop off the wrong message from the SMDI message
queue.  So, this set of changes fixes the issues discovered as well as introducing
some new ways to use the SMDI support which are required to avoid the bugs with
grabbing the wrong message off of the queue.

This code introduces a new interface to SMDI, with two dialplan functions.  First,
you get an SMDI message in the dialplan using SMDI_MSG_RETRIEVE() and then you access
details in the message using the SMDI_MSG() function.  A side benefit of this is that
it now supports more than just chan_zap.

For example, with this implementation, you can have some FXO lines being terminated
on a SIP gateway, but the SMDI link in Asterisk.

Another issue with the current implementation is that it is quite common that the
station ID that comes in on the SMDI link is not necessarily the same as the Asterisk
voicemail box.  There are now additional directives in the smdi.conf configuration
file which let you map SMDI station IDs to Asterisk voicemail boxes.

Yet another issue with the current SMDI support was related to MWI reporting over
the SMDI link.  The current code could only report a MWI change when the change
was made by someone calling into voicemail.  If the change was made by some other
entity (such as with IMAP storage, or with a web interface of some kind), then the
MWI change would never be sent.  The SMDI module can now poll for MWI changes if
configured to do so.

This work was inspired by and primarily done for the University of Pennsylvania.

(also related to issue #9260)

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

17 years agoIPTOS_MINCOST is not defined on Solaris.
Jason Parker [Tue, 26 Feb 2008 00:03:30 +0000 (00:03 +0000)] 
IPTOS_MINCOST is not defined on Solaris.

(closes issue #12050)
Reported by: asgaroth
Patches:
      12050.patch uploaded by putnopvut (license 60)

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

17 years agoThis patch fixes some pretty significant problems with how app_chanspy handles
Russell Bryant [Mon, 25 Feb 2008 23:42:42 +0000 (23:42 +0000)] 
This patch fixes some pretty significant problems with how app_chanspy handles
pointers to channels that are being spied upon.  It was very likely that a
crash would occur if the channel being spied upon hung up.  This was because
the current ast_channel handling _requires_ that the object is locked or else
it could disappear at any time (except in the owning channel thread).  So, this
patch uses some channel datastore magic on the spied upon channel to be able to
detect if and when the channel goes away.
(closes issue #11877)
(patch written by me, but thanks to kpfleming for the idea, and to file for review)

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

17 years agoImprove the lock tracking code a bit so that a bunch of old locks that threads
Russell Bryant [Mon, 25 Feb 2008 23:19:05 +0000 (23:19 +0000)] 
Improve the lock tracking code a bit so that a bunch of old locks that threads
failed to lock don't sit around in the history.  When a lock is first locked,
this checks to see if the last lock in the list was one that was failed to be
locked.  If it is, then that was a lock that we're no longer sitting in a trylock
loop trying to lock, so just remove it.
(inspired by issue #11712)

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

17 years agoMake it so a users.conf user creates both a SIP peer and a SIP user. The user will...
Joshua Colp [Mon, 25 Feb 2008 21:37:20 +0000 (21:37 +0000)] 
Make it so a users.conf user creates both a SIP peer and a SIP user. The user will be used for inbound authentication for the device, and peer will be used for placing calls to the device.
(closes issue #9044)
Reported by: queuetue
Patches:
      sip-gui-friend.diff uploaded by qwell (license 4)

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

17 years agoIf the destination folder is full, don't delete a message when exiting.
Tilghman Lesher [Mon, 25 Feb 2008 21:31:47 +0000 (21:31 +0000)] 
If the destination folder is full, don't delete a message when exiting.
(closes issue #12065)
 Reported by: selsky
 Patch by: (myself)

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

17 years agoAllow the use of #include and #exec in situations where the max include depth was...
Jason Parker [Mon, 25 Feb 2008 20:49:42 +0000 (20:49 +0000)] 
Allow the use of #include and #exec in situations where the max include depth was only 1.
Specifically, this fixes using #include and #exec in extconfig.conf.

This was basically caused because the config file itself raises the include level to 1.

I opted not to raise the include limit, because recursion here could cause very bizarre behavior.

Pointed out, and tested by jmls

(closes issue #12064)

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

17 years agoEnsure that the channel doesn't disappear in agent_logoff(). If it does, it
Russell Bryant [Mon, 25 Feb 2008 18:38:10 +0000 (18:38 +0000)] 
Ensure that the channel doesn't disappear in agent_logoff().  If it does, it
could cause a crash.
(fixes the crash reported in BE-396)

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

17 years agoIf a resubscription comes in for a dialog we no longer know about tell the remote...
Joshua Colp [Mon, 25 Feb 2008 16:16:13 +0000 (16:16 +0000)] 
If a resubscription comes in for a dialog we no longer know about tell the remote side that the dialog does not exist so they subscribe again using a new dialog.
(closes issue #10727)
Reported by: s0l4rb03
Patches:
      10727-2.diff uploaded by file (license 11)

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

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