Commit Graph

11273 Commits

Author SHA1 Message Date
Brett Bryant
b2cc514f08 Merged revisions 72259 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72259 | bbryant | 2007-06-27 15:43:53 -0500 (Wed, 27 Jun 2007) | 4 lines

Fixes 100% load when controlling terminal disappears.

Issue #9654, #10010

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 20:46:12 +00:00
Joshua Colp
a61fb24363 Merged revisions 72256 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72256 | file | 2007-06-27 16:23:24 -0400 (Wed, 27 Jun 2007) | 2 lines

I may possibly get shot for doing this... but... defer CDR processing until after the channel has been dealt with. This should eliminate all of the issues with channels going funky (SIP/PRI) when you are posting CDRs to a database that is either slow or unavailable and do not want to enable batching.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 20:25:24 +00:00
Kevin P. Fleming
39236d2728 use the proper type for storing group number bits so that if someone specifies 'group=42' it will actually work instead of being silently ignored
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 19:13:21 +00:00
Jason Parker
7fca3cc82c Blocked revisions 72184 via svnmerge
........
r72184 | qwell | 2007-06-27 13:40:15 -0500 (Wed, 27 Jun 2007) | 4 lines

Fix another problem in voicemail with missing symbols.

Issue 10074, patch by kryptolus, extended to include #if 0'd blocks (just in case)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 18:40:39 +00:00
Jason Parker
04524392d3 Fix another problem in voicemail with missing symbols.
Issue 10074, patch by kryptolus, extended to include #if 0'd blocks (just in case)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 18:36:56 +00:00
Joshua Colp
60990f0c73 Make the ast_read_noaudio API call behave better under circumstances where DTMF emulation was happening and a generator was setup. (issue #10065 reported by stevefeinstein)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 17:31:50 +00:00
Jason Parker
7508fce25b Don't modify a variable that we don't want modified. Make a copy of it instead.
Issue 10029, patch by phsultan with slight modifications by me (to remove needless casts).


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 17:10:32 +00:00
Russell Bryant
d528f7791d Only output debug information related to RTCP timestamps when RTCP debug
is turned on (issue #10066, patch by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 16:34:24 +00:00
Christian Richter
2294156c9d Merged revisions 72040-72041 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72040 | crichter | 2007-06-27 09:49:27 +0200 (Mi, 27 Jun 2007) | 1 line

for inbound TE calls, we setup the bchannel when we get the CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore.
........
r72041 | crichter | 2007-06-27 09:54:30 +0200 (Mi, 27 Jun 2007) | 1 line

isdn_lib.c didn't compile
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 07:58:06 +00:00
Joshua Colp
76c9d2be11 Make unloading of pbx_dundi actually work.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 00:58:35 +00:00
Mark Michelson
83fd6c08d2 Removing a pointless line. This variable was already set earlier and between then and this
line, there is no way that the values on the right side of the assignment could have changed.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 23:02:09 +00:00
Jason Parker
8a7cb1ec48 Don't dereference a pointer that may be NULL here.
Issue 10017.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 20:36:09 +00:00
Mark Michelson
79332488f7 A few changes, the ultimate goal of which is to keep better track of the number of messages
that a mailbox currently has. A description of the changes:

1. Changed the "updated" field of the vm_state struct to act more as a binary semaphore than a
   counting semaphore, since its current implementation made the inboxcount function not work properly.
   This change falls in line with a change made by UPenn with their IMAP setup and helps to sync our changes with theirs.
2. Eliminated some redundant calls to get_vm_state_by_mailbox inside leave_voicemail
3. Use the play_folder variable to keep track of the number of old and new messages in a mailbox as the messages are deleted
4. Added an increment to the number of new messages that was not there previously in the leave_voicemail function



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 19:00:05 +00:00
Jason Parker
91df522edb Blocked revisions 71847 via svnmerge
........
r71847 | qwell | 2007-06-26 12:49:14 -0500 (Tue, 26 Jun 2007) | 4 lines

Don't try to install an init script that doesn't exist.

Reported to me on #asterisk on Freenode IRC.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 17:49:58 +00:00
Mark Michelson
555dcbc021 Fixing bug where the authuser was mistakenly pulled from the mailbox string instead
of the IMAP user.
(closes issue 10054, reported and patched by jaroth)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 15:47:31 +00:00
Tilghman Lesher
5da46f710e Merged revisions 71750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71750 | tilghman | 2007-06-26 07:25:58 -0500 (Tue, 26 Jun 2007) | 2 lines

Issue 10062 - Trying to move a message without selecting one first results in memory corruption

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 12:27:47 +00:00
Tilghman Lesher
ad5ad13662 Merged revisions 71656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71656 | tilghman | 2007-06-25 13:12:37 -0500 (Mon, 25 Jun 2007) | 2 lines

Issue 10035 - handle_exec returns a result inconsistent with all of the other AGI commands

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 18:14:59 +00:00
Joshua Colp
bd8be32993 Build a peer as well when hash323 is enabled in users.conf (issue #9599 reported by asagage)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 14:13:45 +00:00
Joshua Colp
e973bf0ba9 Minor tweak for queueing up the unhold frame... this will teach me to do bugs while half asleep. (issue #10046 reported by dimas)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 13:03:03 +00:00
Russell Bryant
ade10553ea Fix a typo in the Asterisk mib. (issue #10048, Matti)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 12:40:06 +00:00
Joshua Colp
a6895cb26d Merged revisions 71414 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71414 | file | 2007-06-24 21:02:49 -0400 (Sun, 24 Jun 2007) | 2 lines

Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 01:10:06 +00:00
Joshua Colp
879bad257f Fix it so 1.4 actually compiles on my box.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 01:07:31 +00:00
Joshua Colp
2886f912d6 Check to make sure the channel pointer is present before queueing up an unhold frame on it. (issue #10046 reported by dimas)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 00:49:21 +00:00
Russell Bryant
06600190e6 Include the menuselect-tree file in tarballs to make builds from tarballs a
little bit faster


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-24 20:16:32 +00:00
Russell Bryant
b52d259c91 Merged revisions 71358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71358 | russell | 2007-06-24 15:04:21 -0500 (Sun, 24 Jun 2007) | 2 lines

Revert the patch from issue 9654 due to an unexpected side effect

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-24 20:06:31 +00:00
Tilghman Lesher
f02d20405b Issue 10044 - chan->cdr is NULL here, so peer->cdr is what we really wanted to use
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-24 17:50:24 +00:00
Tilghman Lesher
2e702c85eb Merged revisions 71288 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71288 | tilghman | 2007-06-24 12:32:21 -0500 (Sun, 24 Jun 2007) | 2 lines

Issue 10043 - There is a legitimate need to be able to set variables to the empty string.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-24 17:39:34 +00:00
Steve Murphy
6f6ffbb5c5 This patch is meant to fix 8433; where clid and src are lost via bridging.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-23 03:29:48 +00:00
Christian Richter
d0bc56b953 Merged revisions 70341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70341 | crichter | 2007-06-20 17:29:09 +0200 (Mi, 20 Jun 2007) | 1 line

fixed a bug that was introduced by copy and paste in the last commit ..bchannels weren't cleaned properly.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 22:44:42 +00:00
Joshua Colp
895849c2cb Blocked revisions 71124 via svnmerge
........
r71124 | file | 2007-06-22 12:02:40 -0400 (Fri, 22 Jun 2007) | 2 lines

Send an unhold indication when going off hold. (issue #10036 reported by speedy)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 16:05:03 +00:00
Christian Richter
795e189aa2 Merged revisions 70672 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70672 | crichter | 2007-06-21 15:11:29 +0200 (Do, 21 Jun 2007) | 1 line

we activate the bchannels in TE mode on incoming calls only when we want to connect the call.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:38:08 +00:00
Christian Richter
e1791cab97 Merged revisions 70342 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70342 | crichter | 2007-06-20 17:42:39 +0200 (Mi, 20 Jun 2007) | 1 line

forgot one place .. 
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:34:31 +00:00
Christian Richter
9b17b11c08 Merged revisions 70311 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70311 | crichter | 2007-06-20 16:47:59 +0200 (Mi, 20 Jun 2007) | 1 line

on receiption of cause:44 we mark the channel as in use and inform the user about the situation, we need to test the RESTART stuff then. Also shuffled the empty_chan_in_stack function after the bchannel cleaning functions, to avoid race conditions.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:32:54 +00:00
Christian Richter
933ebc4141 Merged revisions 69887 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r69887 | crichter | 2007-06-19 15:23:04 +0200 (Di, 19 Jun 2007) | 1 line

when we send out a SETUP, but get no response, we should cleanup everything after reception of a hangup.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:30:08 +00:00
Christian Richter
82fe97efd5 Merged revisions 69053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r69053 | crichter | 2007-06-13 11:55:54 +0200 (Mi, 13 Jun 2007) | 1 line

restart indicator 0x80 is correct, at least that's what libpri does.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:27:53 +00:00
Christian Richter
0847f57595 Merged revisions 68887 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68887 | crichter | 2007-06-12 10:35:22 +0200 (Di, 12 Jun 2007) | 1 line

if the bridged partner is mISDN too we should not send dtmf tones, they are transmitted inband always
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:22:06 +00:00
Christian Richter
84434f5f2f Merged revisions 68874 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68874 | crichter | 2007-06-12 09:48:52 +0200 (Di, 12 Jun 2007) | 1 line

if we have already some digits, we just stop the tones.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:17:04 +00:00
Jason Parker
e107da04b4 Merged revisions 71065 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71065 | qwell | 2007-06-22 09:52:18 -0500 (Fri, 22 Jun 2007) | 4 lines

Fix a few silly usages of ast_playstream() - it only ever returns 0...

Issue 10035

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:00:30 +00:00
Brett Bryant
a835f994ec Merged revisions 71064 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71064 | bbryant | 2007-06-22 09:39:34 -0500 (Fri, 22 Jun 2007) | 10 lines

Fixed infinite loop when controlling terminal was lost
and return value of input function wasn't checked for
errors. This would cause 100% cpu to be taken up.

(closes issue #9654, issue #10010)
Reported by: mnicholson, and eserra

Idea for the patch from mnicholson, patched by me


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 14:53:08 +00:00
Steve Murphy
533dbc02ff My conditions for merging amaflags info was naive; DOCUMENTATION is the default, although null is possible; theft of user-settable fields is not good. Just copy them, leave them alone.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 14:10:24 +00:00
Russell Bryant
5fb99cbf73 Fix a small typo which ... well ... completely broke chan_iax2. oops!
(issue #9937, patch by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 03:14:41 +00:00
Steve Murphy
b13f79ad5b Merged revisions 70948 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70948 | murf | 2007-06-21 16:29:50 -0600 (Thu, 21 Jun 2007) | 1 line

This little fix is in response to bug 10016, but may not cure it. The code is wrong, clearly. In a situation where you set the CDR's amaflags, and then ForkCDR, and then set the new CDR's amaflags to some other value, you will see that all CDRs have had their amaflags changed. This is not good. So I fixed it.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 22:34:41 +00:00
Joshua Colp
c7dc8d1735 Merged revisions 70898 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70898 | file | 2007-06-21 17:37:55 -0400 (Thu, 21 Jun 2007) | 2 lines

Don't explode if the gain option is specified without a value. (issue #9274 reported by mfarver)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 21:40:19 +00:00
Russell Bryant
dbe2d8eeb6 Put the thread reading from the socket back in the idle list if it deferred the
processing of a full frame to another thread


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 21:14:53 +00:00
Russell Bryant
6e7332a507 If a full frame is received while one of the iax2 threads is in the middle
of handling a full frame for the same call, queue it up for processing by that
same thread later instead of dropping it.
(issue #9937, patch by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 21:07:04 +00:00
Steve Murphy
a0e2381888 Merged revisions 70804 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70804 | murf | 2007-06-21 13:13:17 -0600 (Thu, 21 Jun 2007) | 1 line

it was pointed out that the cdr_custom config load could get a lock, and under certain circumstances, would never release it. I also noted that the situation where more than one mapping spec was warned about, but did not ignore further mappings as it had promised. I think I have fixed both situations.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 20:19:36 +00:00
Mark Michelson
ac73d19138 When volgain is used don't leave a temporary file behind.
(Closes Issue 8514, Reported and patched by ulogic, code reviewed by Jason Parker)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 19:49:44 +00:00
Joshua Colp
164b3bca49 Do not Packet2Packet bridge if packetization settings do not allow it. (issue #9117 reported by phsultan)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 15:22:39 +00:00
Russell Bryant
a959ed6f67 Remove a couple of duplicate unlocks
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 15:21:16 +00:00
Joshua Colp
ce4f92604a Fix building with ODBC storage enabled. (issue #10025 reported by denisgalvao)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 13:58:36 +00:00