Russell Bryant
83744c244a
Suppress a bunch of debug output unless option_debug is on
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 19:48:02 +00:00
Mark Michelson
0a49a913ed
Fix for bug number 9786, wherein voicemails saved to IMAP storage using extensions other than gsm were
...
unable to be played over the phone. (Issue 9786, reporter: xmarksthespot, Patched by xmarksthe spot with revisions by me,
reviewed by Russell Bryant).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 18:32:50 +00:00
Jason Parker
4a7ae2ebde
Correctly update date/time on devices throughout the life of the device, instead of just at registration.
...
Issue 9152, yet another patch by DEA.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 18:18:24 +00:00
Steve Murphy
b698ff265b
Added code to automatically add a default case to switches that don't have one. In some cases, rather than fall thru, it results in a goto with -1 result, which terminates the extension; a sort of dialplan seqfault, sort of. This was required to fix bug reported in 9881
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 18:17:28 +00:00
Russell Bryant
9dd7be2f58
Handle a failure in malloc() in ast_safe_string_alloc()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 17:07:30 +00:00
Russell Bryant
6d6cd29a87
Fix a problem that showed itself by causing Zap channel names to be completely
...
bogus on my machine. ast_safe_string_alloc() was broken. It called
vsnprintf() on a va_args list twice without re-initializing it. After the first
usage, va_end() and va_start() must be called again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 16:56:36 +00:00
Christian Richter
619cdb016a
Merged revisions 67307 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67307 | crichter | 2007-06-05 17:42:03 +0200 (Di, 05 Jun 2007) | 1 line
briding is a bool, fixed copy and paste issue.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 16:14:07 +00:00
Christian Richter
b0dd31cb52
Merged revisions 67306 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67306 | crichter | 2007-06-05 17:39:43 +0200 (Di, 05 Jun 2007) | 1 line
simplified the EVENT_SETUP handling in the cb_events function a lot. Commented the different possibilities a bit and made functions of shared code. When the dialed extension does not exist in the extensions.conf we'll jump into the 'i' extension if this does exist, else we disconnect the call with the cause:1 = No Route to Destination.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 16:11:57 +00:00
Russell Bryant
d5fd0cff73
When shutting down "gracefully", go through and run the unload() callbacks for
...
all of the modules. "stop now" is considered a non-graceful shutdown and will
not go through this process.
(issue #9804 , reported by chrisost, patch by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 15:51:53 +00:00
Joshua Colp
24922406f4
Only muck with the thread structure if an idle one was found/created.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 15:22:30 +00:00
Kevin P. Fleming
5a5d549b1d
ensure that a burst of full frames (AST_FRAME_DTMF being the prime example) will not be processed out of order... this is a brute force fix, but seems to be the safest fix for now (thanks to the Digium PQ department for finding this bug)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 14:35:52 +00:00
Christian Richter
9f749257ef
Merged revisions 67209 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67209 | crichter | 2007-06-05 12:05:45 +0200 (Di, 05 Jun 2007) | 1 line
added possibility to deactivate bridging per port
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 10:25:32 +00:00
Tilghman Lesher
cb8813a250
Merged revisions 67161 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67161 | tilghman | 2007-06-04 18:41:49 -0500 (Mon, 04 Jun 2007) | 2 lines
According to MATH, 0+1181000386 = 1181000448. Oops.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 23:43:01 +00:00
Russell Bryant
3b5bd316ed
Fix up a bunch of places where the iax2 pvt structure can disappear and the
...
code did not account for it and crashes.
(issues #9642 , #9569 , #9666 , probably others ... based on the work by
stevedavies and mihai, with additional changes from me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 23:31:40 +00:00
Jason Parker
0b7607ad55
Fix for skinny keepalives.
...
If there is no traffic from the phone for (keep_alive * 1100) ms (arbitrarily
adding 10% for network issues, etc), unregister the device.
Issue 8394, patch by DEA.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 23:26:28 +00:00
Jason Parker
6b150d7b9c
Fixes for dtmf/dialing with mgcp (similar to the recent fix for chan_skinny)
...
Issue 9855, patch by DEA.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 22:36:57 +00:00
Russell Bryant
885d846739
Add comments for two functions that get called with the appropriate call locked,
...
but perform operations that could result in the pvt structure getting destroyed
before returning again, causing numerous seg faults all over the module.
(inspired by issues #9642 , #9569 , and #9666 , and the work done by stevedavies
and mihai)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 22:28:55 +00:00
Steve Murphy
7609f70e20
This typo has been here since 1.4 forked. It has been the source of heartburn to many a dialplan/CDR programmer.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 21:59:34 +00:00
Russell Bryant
9074935852
Add a missing \n. (pointed out by jcmoore on IRC)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 21:47:36 +00:00
Joshua Colp
01456184f9
Better handle SIP devices that say they have SDP content... but really don't. (issue #9398 reported by mthomasslo)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 19:31:09 +00:00
Joshua Colp
1317920054
Initialize cidname variable to nothing since it may be used without having been touched. (issue #9661 reported by dimas)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 17:59:14 +00:00
Joshua Colp
26038a4b77
Returning a value that indicates the parking of a call was a success when it really wasn't (because the parking slot selected was in use) is the wrong thing to do. (issue #9723 reported by mdu113)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 17:41:59 +00:00
Tilghman Lesher
85779f9c3a
Merged revisions 67060 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67060 | tilghman | 2007-06-04 12:10:30 -0500 (Mon, 04 Jun 2007) | 2 lines
Add revision Id tags (by request of tzafrir)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 17:11:43 +00:00
Russell Bryant
28d8f9ee6e
Change the configure script to build a test program against libcurl to make
...
sure the results from curl-config can be used to compile successfully. This is
intended to help prevent a situation where you are cross compiling, and the
configure script finds the curl library installed on the host.
(issue #9865 , reported and patched by zandbelt)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 16:02:31 +00:00
Tilghman Lesher
c314f35ac2
Issue 9739 - Malformed jid causes a crash
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 15:50:16 +00:00
Russell Bryant
0b7719e9a1
Resolve a deadlock in chan_iax2. When handling an implicit ACK to a frame that
...
was marked as the final transmission for a call, don't call iax2_destroy() for
that call while the global frame queue is still locked. There is a very nice
explanation of the deadlock in the report.
(issue #9663 , thorough report and patch from stevedavies, additional positive
test reports from mihai and joff_oconnell)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 15:47:40 +00:00
Russell Bryant
35e7f6e86e
Fix some compiler warnings in C++ modules.
...
(issue #9866 , reported by osk, patch by Corydon76)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 15:28:33 +00:00
Tilghman Lesher
70b882702c
On some drivers, deallocating the statement handle isn't enough. We also have to clear the cursor (nice, Oracle)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01 21:45:44 +00:00
Mark Michelson
a90cf2d802
Removing extraneous debugging lines from revision 66897. Sorry :)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01 21:31:49 +00:00
Mark Michelson
c71ead7c52
Submitting a fix for voicemail with IMAP storage. Attachments with format specified as gsm were duplicated (i.e. two attachments) were left.
...
Thank you very much to xmarksthespot for submitting the patch that fixed this. (Issues 9787 and 8873, Reported by xmarksthespot and jerjer, patched by xmarksthespot)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01 21:09:30 +00:00
Russell Bryant
0ecb2ecf42
Changes to the way DTMF is handled in the core broke dialing in chan_skinny.
...
This patch makes chan_skinny usable again. I did not end up testing this,
but there are multiple positive test reports listed in the bug report.
(issue #9596 , reported by pj, testing by pj and mvanbaak, and the fix was
written by DEA)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01 19:41:30 +00:00
Russell Bryant
3db95c55d0
List app_meetme as a module that app_page depends on.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01 19:35:13 +00:00
Tilghman Lesher
3ea9ee2f07
Issue 9850 - update preferred command line syntax
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31 23:03:28 +00:00
Russell Bryant
19a2be29f3
Change a couple of header files to not use "new", which is a reserved keyword
...
in C++. (issue #9830 , reported by osk)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31 18:41:58 +00:00
Tilghman Lesher
17329054c8
Merged revisions 66744 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66744 | tilghman | 2007-05-31 10:58:45 -0500 (Thu, 31 May 2007) | 2 lines
Issue 9818 - Fix for issue 8329 breaks pbx_realtime. Issue 8329 will remain unfixed for pbx_realtime, but only because we lack core API to do it.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31 17:15:09 +00:00
Joshua Colp
c7112015ba
Merged revisions 66764 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66764 | file | 2007-05-31 12:12:39 -0400 (Thu, 31 May 2007) | 2 lines
It is now possible for this path of execution to have the frame pointer be NULL, therefore we need to check for it before trying to access it. (issue #9836 reported by barthpbx)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31 16:14:48 +00:00
Mark Michelson
48b438a0c3
Fixed seg-faults when recording greetings in voicemail with IMAP enabled. (Issue No. 9735, reported by xmarksthespot, patched by me)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-30 23:26:39 +00:00
Joshua Colp
612f61a9b2
Silly me for having out of date source! Oh well... I'm still leaving my comment.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-30 17:28:12 +00:00
Joshua Colp
3d8d697e34
When calling some peer/host that may not exist/reply back... don't keep the dialog in memory for all of eternity.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-30 17:21:06 +00:00
Joshua Colp
7905fca326
Change how channel names are generated a bit. (issue #9825 reported by eldadran)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-30 16:06:37 +00:00
Tilghman Lesher
e21412d53d
Merged revisions 66537 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66537 | tilghman | 2007-05-29 16:49:35 -0500 (Tue, 29 May 2007) | 2 lines
If the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return 0, not 1.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 21:56:07 +00:00
Olle Johansson
332eabcc07
Properly handle 408 request timeout - according to the RFC, the dialog dies if a request in a dialog gets this response.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 19:32:57 +00:00
Olle Johansson
8d06f379fe
Don't issue hangup on hangup on hangup on hangup (for jcmoore)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 19:02:04 +00:00
Joshua Colp
13afc81f91
Handle cases where a frame may have no data. (issue #9519 reported by dmb)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 16:44:34 +00:00
Olle Johansson
9f15005143
Don't reset hangupcause if we already have one
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 16:07:44 +00:00
Olle Johansson
ff9e2751c6
Tracking down hanging channels, killing them one by one. Issue #9235 and related
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 16:02:50 +00:00
Joshua Colp
732418a95a
Update datastores documentation. (issue #9801 reported by mnicholson)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 15:43:16 +00:00
Olle Johansson
bab6473879
Merged revisions 66349 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66349 | oej | 2007-05-29 09:53:14 +0200 (Tue, 29 May 2007) | 2 lines
Issue #9802 - Change inuse counter on CANCEL
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-29 09:41:40 +00:00
Joshua Colp
3a5a649415
Make the usedistinctiveringdetection option work again. (issue #9823 reported by premeau)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-28 23:16:56 +00:00
Jason Parker
a8ab3e5738
I don't know what this was trying to do, but it's clearly incorrect.
...
Issues 9808 and 9809.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-27 04:12:37 +00:00