Kevin P. Fleming
75ca02dbaa
backport some mutex initialization and linked list handling fixes from trunk
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23 17:15:23 +00:00
BJ Weschke
f1c97e7df8
Fix a potential leak and correct (hopefully) a segfault under certain conditions. #6784 (vovan and perry testing)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23 15:58:24 +00:00
Joshua Colp
919e8741b4
Increase the silence threshold to 128 to "fix" it, so I'm told. (issue #6595 reported by davetroy fixed by casper)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22 21:27:12 +00:00
Joshua Colp
7018a80e91
Use the correct language when playing the transfer sound (issue #7109 reported by casper)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22 20:15:04 +00:00
Joshua Colp
f0e022bbad
Preserve presentation bit when going through chan_local (issue #7002 reported by acunningham)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22 16:33:03 +00:00
Tilghman Lesher
6691ebf59f
Bug 7194 - spelling fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22 14:59:59 +00:00
Tilghman Lesher
d5a7d2e170
Bug 7196 - month range did not work
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22 14:34:34 +00:00
BJ Weschke
1795ff12cd
When an application that is executed via applicationmap and exits non-zero, make sure that we pass through the correct return value from the application to make sure a segfault doesn't occur by a bridge trying to continue when it should not. Also, when executing applications via applicationmap, make sure that the application is executed against the channel whose DTMF caused it to be fired off in the first place. (part 1/2 of #7090 - this is the only fix that will be applied to both 1.2 and /trunk) acunningham and blitzrage on testing...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-21 15:16:59 +00:00
Russell Bryant
ee808b6187
fix the possibility of writing one byte past the end of a buffer.
...
(issue #7189 , Mithraen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-20 19:50:41 +00:00
Kevin P. Fleming
e0989958cc
don't allow queue member devices to ring longer than the total queue timeout (issue #6423 , reported and patched by bcnit)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-20 02:35:53 +00:00
Russell Bryant
9123735599
fix a case where code made assumptions about how memory for variables is
...
allocatted on the stack - this patch is slightly different than the one
that went in for the trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-20 02:31:30 +00:00
Kevin P. Fleming
4eef3ef785
don't try to predict where the compiler will place things on the stack... put them in the right place explicitly (issues #7029 and #7100 , maybe others)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-20 00:55:31 +00:00
Kevin P. Fleming
0c4cc3b0ce
use the specified 'subscribecontext' for a peer rather than the context found via the target domain (domain contexts are for calls, not for subscriptions) (issue #7122 , reported by raarts)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 19:39:55 +00:00
Russell Bryant
a0c5fed6e8
fix the build of smsq with -Werror. I learned something new about format
...
strings from this patch! (issue #7141 , Mithraen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 19:18:41 +00:00
Russell Bryant
8506e078c5
This explicit poll is only needed on mac. In fact, it breaks some systems
...
such as some versions of Fedora, causing 'asterisk -rx' to never exit. This
has been tested on systems showing the asterisk -rx problem, as well as other
unaffected versions of linux, mac osx 10.4, and FreeBSD 6.
(issue #7071 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 19:01:17 +00:00
Joshua Colp
dda49ce86b
Make the minidle option actually exist as documented (issue #7159 reported by imran)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 17:04:02 +00:00
Joshua Colp
63c91a899e
When forwarding messages use the context that the active voicemail user was found in. (issue #7010 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 16:03:33 +00:00
Joshua Colp
892d98aca0
Backport of fix for issue #6654 that was fixed in trunk but not here
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 15:52:09 +00:00
Joshua Colp
14285e5b2b
Treat paused queue members as unreachable (issue #7127 reported by peterh)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 15:38:59 +00:00
Kevin P. Fleming
89da276678
fix up a few more places to find the SDP properly (fallout from fix for #7124 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 20:43:42 +00:00
Kevin P. Fleming
53a0b36973
handle incoming multipart/mixed message bodies in SIP and find the SDP, if presnet (issue #7124 reported and patched by eborgstrom, but very different fix)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 20:24:07 +00:00
Kevin P. Fleming
bfbf66aec6
use unsigned counters for handling answer/IE lengths while processing DNS results (issue #7174 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 19:35:55 +00:00
Kevin P. Fleming
2ef43a770b
support 'inactive' tag for SDP media streams (simple fix, proper fix will appear in 1.4 release) (issue #7130 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 19:16:40 +00:00
Tilghman Lesher
25d2c99737
Bug 7167 - HasNewVoicemail and VMCOUNT() didn't work when USE_ODBC_STORAGE was defined
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 17:27:59 +00:00
Joshua Colp
3c8d8caca1
Return -1 on error in ODBC messagecount and 0 on success (issue #7133 reported by cfieldmtm)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 16:31:16 +00:00
Joshua Colp
a6d8b31956
Fix endless looping message by checking value of res before doing retries stuff. (issue #7140 reported by tanischen)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 14:27:21 +00:00
Olle Johansson
9911943d3d
Video in meetme? Hmmm. Removed until we do have some code for it.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 12:13:46 +00:00
Joshua Colp
3361be7b6e
Fix codec priority stuff during authentication (issue #6194 reported by jkoopmann)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 22:34:08 +00:00
Olle Johansson
8b96daf53e
Issue #7176 - Crash in expire_register
...
(We need to find out what's causing peer to be undefined, so this
is just a bandaid, not a real fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 19:27:15 +00:00
Joshua Colp
968d069242
Priority jumping not working on VoiceMail app with new syntax (issue #7164 reported and fixed by alvaro_palma_aste)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 17:07:52 +00:00
Joshua Colp
bc3570ac0f
OSPNext does not handle success/failure correctly (issue #7147 reported and fixed by eborgstrom)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 15:17:04 +00:00
Olle Johansson
d5d56f98c3
chan_sip did not use the TRANSFER_CONTEXT for transfers, like res_features. Now fixed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 09:21:45 +00:00
Tilghman Lesher
728e1d9a31
Bug 7125 - Fix race condition between resequencing and leaving a message
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 02:19:50 +00:00
Joshua Colp
961bcfe98c
Inherit channel variables during call forwards when going through chan_local (issue #7095 reported by raarts)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16 23:31:56 +00:00
Kevin P. Fleming
e6254eeb34
don't leak frames when deferring DTMF or dropping duplicate ANSWER frames (issue #7041 , slightly different fix, reported/patched by clausf)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16 20:05:17 +00:00
Tilghman Lesher
ee46d2d92e
Bug 7134 - File descriptor leak with ODBC storage of voicemail
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-13 04:08:29 +00:00
Tilghman Lesher
dd260ec707
Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11 23:02:57 +00:00
Kevin P. Fleming
bb0812be95
backport fix from trunk for bug #6934 , ensuring that RTP mark bit is changed when SSRC changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11 09:05:22 +00:00
Kevin P. Fleming
78986fe938
ensure that we send a response to REGISTER requests that are successfully authenticated but contain invalid Contact URIs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11 08:52:46 +00:00
BJ Weschke
adbfc9d3c7
Add the appropriate jumping behavior that is the standard for 1.2.X to SIPGetHeader that is now deprecated in /trunk. #7111 (blitzrage!!!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-09 14:18:45 +00:00
BJ Weschke
b2e48e3c22
Correct memory leak in find_user_realtime #7118 (fnordian)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-09 13:28:39 +00:00
Olle Johansson
6b93396fb9
Issue 7103 - mikma
...
- The header is named "Require"
- Don't reply to ACK
(Not using patch against trunk)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08 15:09:55 +00:00
BJ Weschke
6af35712ef
Don't show agents as available when they are in wrap-up time. #6726 (ZX81)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08 14:12:20 +00:00
BJ Weschke
249760b951
Make QueueStatusComplete event thread safe by wrapping it inside the queue lock clause already there. #7013 (bziherl reporting)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08 13:35:17 +00:00
BJ Weschke
d46fa7e825
Oops. :(
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08 13:15:30 +00:00
BJ Weschke
41210a37d6
Don't recheck valid_exit() after getting the result from say_position (which already checks it). Should prevent another loop if the caller hits digits during the position announcement. #6776 (tgj reporting)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08 13:11:32 +00:00
Joshua Colp
72fe69919c
Incorrect log statement when playing transfer sounds (issue #7008 reported and fixed by nathan)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08 11:16:10 +00:00
BJ Weschke
b3d0a54a6b
Fix playback behavior to exit correctly when we receive a hangup during playback of the invalid pin message. #7091 (AntD reporting)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-07 13:38:11 +00:00
BJ Weschke
053f005508
Reset the value of ast_mainpid if we fork so future remote unix connections display the correct PID. #7098 (tzafrir reporting)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-07 12:48:09 +00:00
Russell Bryant
a7987a4d36
re-add a couple of lines that I shouldn't have removed in the previous commit.
...
I think I should be going to bed now ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-06 02:32:23 +00:00