Tilghman Lesher
e9a1a42967
Oops, that builtin define should be all-lowercase.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Mark Michelson
ccb0f924af
chan->emulate_dtmf_duration is an unsigned int, not a signed int, so use %u instead of %d in the format string
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
19ec0f8fe1
set the sequence number in a frame for all frame types
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
c7336cd3ff
Found another place where we should be using the umask (thanks jcmoore)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
24f0e6a947
Eliminate a compiler warning with gcc 4.2 by constifying a char *
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
7f9bf7e970
Use the define that specifies the default length of an artificially created
...
DTMF digit in the ast_senddigit() function. The define is set to 100ms by
default, which is the same thing that this function was using. But, using
the define lets changes take effect in this case, as well as the others where
it was already used.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
c83a0b2a3c
cast arguments to ast_log so that it builds without warnings for me
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
396e723f17
Ensure that the pointer to STUN data does not go to unaccessible memory. (ASA-2007-017)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75439 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
0a1a04137e
(closes issue #10209 )
...
Reported by: juggie
Patches:
10209-trunk-2.patch uploaded by juggie
Tested by: juggie, blitzrage
In ast_pbx_run(), mark a channel as hung up after an application returned -1,
or when it runs out of extensions to execute. This is so that code can detect
that this channel has been hung up for things like making sure DeadAGI is used
on actual dead channels, and is beneficial for other things, like making sure
someone doesn't try to start spying on a channel that is about to go away.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
d0cb9b141d
Merged revisions 75304 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r75304 | kpfleming | 2007-07-16 15:46:58 -0500 (Mon, 16 Jul 2007) | 3 lines
provide proper copyright/license attribution for this structure that was copied from a BSD-licensed header file long, long ago...
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
7152afccd5
Whoops... didn't want this to be returned to 0 each iteration.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
26acd893d3
When waiting for a digit ensure that a begin frame was received with it, not just an end frame. (issue #10084 reported by rushowr)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
7e0ab0fa62
Don't use #if to check if something is defined - use #ifdef instead.
...
Pointed out by kpfleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
d4a7eb584f
Merged revisions 74373 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r74373 | qwell | 2007-07-10 13:37:23 -0500 (Tue, 10 Jul 2007) | 5 lines
Use res_ndestroy on systems that have it. Otherwise, use res_nclose.
This prevents a memleak on NetBSD - and possibly others.
Issue 10133, patch by me, reported and tested by scw
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
49584ec434
Merged revisions 74264 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r74264 | file | 2007-07-10 11:48:00 -0300 (Tue, 10 Jul 2007) | 2 lines
Ensure the group information category exists before trying to do a string comparison with it. (issue #10171 reported by mlegas)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
befa215f7b
Doxygen formatting fixes; fixes errors while 'make progdocs'. (Closes issue #10104 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@73985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
a979d44c9c
Give Agent channel names priority when doing CDR merging. (issue #10011 reported by krtorio)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@73980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
0e80607e17
Merged revisions 73349 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r73349 | file | 2007-07-05 11:19:14 -0300 (Thu, 05 Jul 2007) | 2 lines
Tweak spy locking. (issue #9951 reported by welles)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@73355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
ad36e954a7
Removing expr floating patch from 1.4; too much of a behavior change. If you want this fix, try trunk instead. bug 9508.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@73143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
adc13be87b
support for floating point numbers added to ast_expr2 $\[...\] exprs. Fixes bug 9508, where the expr code fails with fp numbers. The MATH function returns fp numbers by default, so this fix is considered necessary.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
76164559c9
Remove a bogus comment and add proper locking to the handler function for the
...
CLI command to show information on manager actions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
a3716070d1
Added additional DTMF debug messages for when emulation occurs.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
f870ccffff
Use !defined(HAVE_GETHOSTBYNAME_R) to check for absence
...
of the function. This was already done in trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
fe753c0846
Minor change for older GCC versions.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
6ffbaa32f3
Issue 10055 - Change memory allocation to use the heap for a command, since the output has the potential to overflow the stack (as it did here)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
475e73e27d
Add -Wdeclaration-after-statement to AST_DEVMODE flags to catch
...
variable declarations in the middle of a block.
Fix the few instances of the above spotted out by the compiler.
All of this has been already done or is not applicable in trunk,
so the merge of this change will be blocked.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Brett Bryant
7c5fef5e74
Merged revisions 72373 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r72373 | bbryant | 2007-06-27 18:22:13 -0500 (Wed, 27 Jun 2007) | 3 lines
Reinstating patch. This actually fixes the problem, however I was running a development branch without it and mistakenly thought it wasn't fixed.
Fixes issue #10010 , and #9654 : 100% CPU usage caused by an asterisk console losing it's controlling terminal.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Brett Bryant
a241f406da
Merged revisions 72333 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r72333 | bbryant | 2007-06-27 17:58:53 -0500 (Wed, 27 Jun 2007) | 2 lines
Reverted changes for earlier revisions 72259 to 72261. Issue #9654 , #10010
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
Steve Murphy
c05bb13de9
Merged revisions 70053 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r70053 | murf | 2007-06-19 12:07:59 -0600 (Tue, 19 Jun 2007) | 1 line
This fixes 9246, where channel variables are not available in the 'h' exten, on a 'ZOMBIE' channel. The fix is to consolidate the channel variables during a masquerade, and then copy the merged variables back onto the clone, so the zombie has the same vars that the 'original' has.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
8b71bbd6ed
Merged revisions 69992 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r69992 | file | 2007-06-19 13:00:58 -0400 (Tue, 19 Jun 2007) | 2 lines
Handle the CC field in the RTP header. (issue #9384 reported by DoodleHu)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
b6bd3b483e
Merged revisions 69986 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r69986 | file | 2007-06-19 12:21:29 -0400 (Tue, 19 Jun 2007) | 2 lines
Update BRIDGEPEER variable if set to the new channel name when a masquerade happens. (issue #9699 reported by dimas)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
c77b8b9467
Fix for building on PowerPC under Linux.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
2cce26c0ce
Remember the DNS lookup done when dnsmgr is called for the first time so that it does not needlessly spit out changed messages when the host really didn't change.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
dbfc0c7daa
Merged revisions 69469 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r69469 | qwell | 2007-06-14 18:21:45 -0500 (Thu, 14 Jun 2007) | 4 lines
Fix an issue where the line number in an unterminated comment block error message would show the wrong line number.
"Reported" to me on #asterisk (somebody posted an error message, and I happened to catch it)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
ae82d97c6d
use ast_localtime() in every place localtime_r() was being used
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
45ad7fcec8
Fix some problems with saying dates and times for the "tw" langauge
...
(issue #9964 , ljmid)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
8e544d1422
Merged revisions 69127 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r69127 | file | 2007-06-13 14:12:48 -0400 (Wed, 13 Jun 2007) | 2 lines
Return group counting to previous behavior where you could only have one group per category. (issue #9711 reported by irroot)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
3fb6ac7fb7
In ast_channel_make_compatible(), just return if the channels' read and write
...
formats already match up. There are code paths that call this function on a
pair of channels multiple times. This made calls fail that were using g729
in some cases. The reason is that codec_g729a will unregister itself from the
list of available translators will all licenses are in use. So, the first
time the function got called, the right translation path was allocated.
However, the second time it got called, the code would not find a translation
path to/from g729 and make the call fail, even if the channel actually already
had a g729 translation path allocated.
(SPD-32)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
8c01036a9f
Merged revisions 68921 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r68921 | file | 2007-06-12 10:18:57 -0400 (Tue, 12 Jun 2007) | 2 lines
Bring RTP back to Asterisk at the end of a native bridge no matter what.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
080acbfd16
Merged revisions 68682 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r68682 | file | 2007-06-11 10:29:58 -0400 (Mon, 11 Jun 2007) | 2 lines
Improve deadlock handling of the channel list. (issue #8376 reported by one47)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
058f617af9
Merged revisions 68397 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r68397 | file | 2007-06-07 20:15:33 -0400 (Thu, 07 Jun 2007) | 2 lines
Don't call ast_waitstream_full when the control file descriptor and audio file descriptor are not set, simply call ast_waitstream! (issue #8530 reported by rickead2000)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
14bde42bb6
Merged revisions 68368 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r68368 | file | 2007-06-07 19:59:04 -0400 (Thu, 07 Jun 2007) | 2 lines
Do a DNS lookup immediately upon calling the dnsmgr function, don't wait until a refresh happens. (issue #9097 reported by plack)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
08a7d6a06b
Merged revisions 68351 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r68351 | russell | 2007-06-07 18:13:33 -0500 (Thu, 07 Jun 2007) | 3 lines
Fix a problem where saying a character wouldn't properly break out when the caller pressed '#'
(issue #8113 , reported by patbaker82, patch from jamesgolovich (hey, long time no see!) and patbaker82)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
452167fa3c
Include stdarg.h for build issues on Solaris
...
(issue #9381 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
ac65d7f143
Fix logic when doing a name based channel search for a structure when you want to start from a specific point in the channel list. (issue #9324 reported by slavon)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
928e69408e
Properly handle cases where a stream can't be written to. (issue #9757 reported by junky)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
e7dd69eea8
Merged revisions 67715 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67715 | russell | 2007-06-06 11:40:51 -0500 (Wed, 06 Jun 2007) | 5 lines
We have some bug reports showing crashes due to a double free of a channel.
Add a sanity check to ast_channel_free() to make sure we don't go on trying
to free a channel that wasn't found in the channel list.
(issue #8850 , and others...)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
1f6872a45e
Merged revisions 67649 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67649 | file | 2007-06-06 09:28:34 -0400 (Wed, 06 Jun 2007) | 2 lines
Reinvite the RTP back to the Asterisk machine when the timeout happens. (issue #9888 reported by gasparz)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
7fb76769a8
Fix plc_samples warning when registering a translator. (issue #9897 reported by xylome)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
26268d3a9a
Merged revisions 67593 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67593 | file | 2007-06-06 08:18:36 -0400 (Wed, 06 Jun 2007) | 2 lines
Revert channel name splitting fix for Zap. The moral of the story is don't use - in your user/peer names. (issue #9668 reported by stevedavies)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
Tilghman Lesher
8f6ec33fef
Merged revisions 66127 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66127 | tilghman | 2007-05-25 08:46:35 -0500 (Fri, 25 May 2007) | 2 lines
Issue 9791 - Fix pronunciation of seconds in Dutch
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
a4c142d73d
if the string field init fails, clean up the stuff that was allocated already
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
dec3b2e618
Fix slinfactory logic when dealing with frames coming in that may already be in the signed linear format.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
11d6381ec0
Check the result of ast_string_field_init() in ast_channel_alloc()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
a2a73cde51
Make 1.4 build on my machine, too..
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
521b241738
don't use uninitialized variables
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
533144b170
Add the ability to blacklist certain commands from being executed using the Command AMI action. (issue #9240 reported by junky)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
b4ea07a7eb
Fix handling of zero-length frames when a codec is capable of native PLC.
...
Issue 9183, patch by Mihai.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
9f88eccda6
I like it when the RTP stack compiles myself...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
f32662deb4
Fix the calculation of the RTT for RTCP. The previous code would result in
...
oscillating and incorrect data. Additionally, the RTT would sometimes report
negative values due to incorrect calculations.
(issue #9601 , patch from davetroy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
2419b6cfb8
Ugh. The svnmerge didn't catch the shift from cdr.c to main/cdr.c, and neither did I. This is the remainder of the 9717 patch, the fix for the run-away FAIL status for a call
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
656739534c
Merged revisions 64275 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r64275 | file | 2007-05-14 14:34:06 -0400 (Mon, 14 May 2007) | 2 lines
Only perform stripping of - strings from the channel name for Zap channels. Anywhere else we might remove a legitimate part of a device name. (issue #9668 reported by stevedavies)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
aff63fba76
Fix scenario where if a phone that simply called Echo() put itself on hold it could never get off hold.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
8c635fb2c1
As per 9570, worrisome CDR warnings have been removed, that are either not helpful, or not relevant.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
7583e21359
Add hangupcause when we lack codecs for transcoding
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
e0cac0c477
Hide manager password from "manager show user foo".
...
I realize that there are other ways to get this,
but we really don't need to just show it in plain text so easily.
Issue 9273, patch by junky
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
7d478ee342
When MD5 authentication is not possible because there is no challenge present,
...
either because the Challenge action was never issued, or some other reason,
give a proper error message and return an error instead of claiming that the
user wasn't found.
(reported by jsmith on IRC)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
2465ea2cfa
Strip terminal escape sequences from CLI command output that is going to be
...
sent out over the manager interface.
(issue #9659 , reported by pari, fixed by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Doug Bailey
a75d0f5329
Add test for negative offsets in cid data to prevent infinite loops.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
7deba0a857
Use the DTMF frame on the channel when returning a DTMF frame from AST_FRAME_NULL or AST_FRAME_VOICE.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
da55121999
Modify ast_senddigit_begin() to use the same assumptions used elsewhere in the
...
code in that if a channel does not have a send_digit_begin() callback, it only
cares about DTMF END events. (pointed out by Michael Neuhauser on the
asterisk-dev list)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
e9fab07122
Only call ast_senddigit_begin() in ast_senddigit() if the channel has a
...
send_digit_begin() callback. Checking the END_DTMF_ONLY flag was the
wrong thing to do, because that flag indicates that a *bridged* channel
only wants DTMF END events coming from this channel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
99cdfb2542
Merged revisions 63285 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r63285 | file | 2007-05-07 17:39:52 -0400 (Mon, 07 May 2007) | 2 lines
Properly handle what happens during a masquerade in relation to group counting. (issue #9657 reported by ramonpeek)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
53929c4f01
Don't remove configuration from memory just because one section failed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
d48415f678
Stop the video stream when you stop playback of all streams for a call
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
9c638b6507
improve loader a bit, by avoiding trying to initialize embedded modules twice and avoiding trying to load modules from disk when they have been loaded already during the 'preload' pass (reported by blitzrage on IRC, patch by me)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
796acdbbdb
Fix YADB (Yet Another DTMF Bug) ((C) Russell Bryant, 2007, TM, Patent Pending).
...
This set of changes came from a debugging session I had with Dwayne Hubbard.
When he called into his home FXO, ran the Echo application, and pressed a
digit, the digit would be echoed back and would never end. This is fixed,
along with a couple other little improvements.
* When chan_zap is in the middle of playing a digit to a channel, it feeds
back null frames, not voice frames. So, I have modified ast_read to check
the timing on emulated DTMF when it receives null frames, in addition to
where it was doing this on voice frames.
* Make a tweak to setting the duration on emulated DTMF digits. If there was
no duration specified, it set it to be the minimum, instead of the default.
* Instead of timing the emulated digits off of the number of samples in audio
frames that pass through, just use time values. Now there is no code in this
section that assumes 8kHz audio.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago