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
Steve Murphy
e7c040283e
Via complaints aired in asterisk-users, I submit these changes, which allow cdr updates to see macro context/exten, whether hung up or not
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 13:00:39 +00:00
Jason Parker
b035606357
Fix some potential memory leaks in cdr_pgsql.
...
Issue 10020, patch by my, with credit to prashant_jois for pointing out the problem.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 23:32:39 +00:00
Jason Parker
b7447818de
Fix a stupid mistake in my last cdr_pgsql race condition fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 22:55:21 +00:00
Jason Parker
6fd76e7bc3
Fix a race condition in cdr_pgsql that can occur when reloading the module.
...
Issue 10022, patch by me, with credit to prashant_jois for finding the bug.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 22:31:35 +00:00
Joshua Colp
f1c32710a8
Merged revisions 70551 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r70551 | file | 2007-06-20 18:20:16 -0400 (Wed, 20 Jun 2007) | 2 lines
Don't overwrite the configured username setting upon a REGISTER. (issue #8565 reported by jsmith)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 22:22:20 +00:00
Jason Parker
60bf4f35c6
Make sure we clear the previously dialed number if it did not exist.
...
Issue 9958.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 20:53:16 +00:00
Tilghman Lesher
badad4a542
Merged revisions 70444 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r70444 | tilghman | 2007-06-20 14:25:54 -0500 (Wed, 20 Jun 2007) | 2 lines
Issue 9997 - Timelimit times out the wrong channel
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 19:29:23 +00:00
Russell Bryant
85f7646a2a
Merged revisions 70396 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r70396 | russell | 2007-06-20 13:45:38 -0500 (Wed, 20 Jun 2007) | 5 lines
Fix a problem where an established call would not be properly disconnected
when a PRI disconnect is received depending on which cause code was received.
(issue #9588 , original patch by softins, updated patch from jtexter3, and some
additional feedback from mhardeman)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 18:46:49 +00:00
Joshua Colp
00a80bcb7d
Put the speex packetization values back in but disable it when setting up the smoother.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 17:52:57 +00:00
Joshua Colp
9c76e929c9
Don't do packetization/smoother stuff with speex, it doesn't work.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 00:24:36 +00:00
Russell Bryant
bfa63cf854
don't delete the backtrace in ast_grab_core
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 00:03:22 +00:00