Tilghman Lesher
f11ea0549d
Discussion of these CLI changes resulted in more consistency (Bug 8236)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 16:51:55 +00:00
Russell Bryant
5654be2803
fix tab completion for "core debug channel" and "core no debug channel"
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 16:28:15 +00:00
Russell Bryant
795ba043e2
Fix "core show channel". Also, fix tab completion for both "core show channel"
...
and "core show channels".
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 16:24:02 +00:00
Russell Bryant
6609cebaf2
Fix "core debug channel <whatever>". I guess someone needs to go through and
...
audit every CLI command that changed number of arguments ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 16:18:33 +00:00
Russell Bryant
9009cfcf79
revert the previous change, which actually modified the deprecated command,
...
"show profile". Now, actually apply the change to "core show profile".
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 16:14:23 +00:00
Russell Bryant
38be3e38e2
Fix argument parsing for the "core show profile" CLI command
...
(fixed by rizzo in his branch, team/rizzo/astobj2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 16:04:38 +00:00
Russell Bryant
0b927d2208
Fix another CLI command, "core show uptime" ...
...
(issue #8323 , reported by johnlange, fixed by myself)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 15:49:39 +00:00
Russell Bryant
15ba13f1ec
fix "core show version" to reflect the new number of arguments for this
...
CLI command (issue #8316 , kshumard)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 06:31:37 +00:00
Steve Murphy
729ce4d791
This update fixes 7531
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-08 23:14:18 +00:00
Kevin P. Fleming
ea53cfcea3
the battle over CLI command formats has broken stuff...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-08 21:46:20 +00:00
Steve Murphy
517978fd5f
These mods are to solve the problem in bug 7506. It's a lot of rework to solve a fairly small problem... such is life.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-07 23:46:41 +00:00
Russell Bryant
c8ee894823
Fix another bug in "core set debug" ...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 18:10:22 +00:00
Russell Bryant
789234df2d
Really fix the "core set debug" and "core set verbose" CLI commands.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 17:59:39 +00:00
Russell Bryant
da6cf383d4
fix the "atleast" option to the "core set verbose" and "core set debug"
...
CLI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 17:38:24 +00:00
Tilghman Lesher
56a1e60c54
More changes making the CLI more consistent with "category verb arguments" (continuation of issue 8236)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 23:49:13 +00:00
Tilghman Lesher
e05a2752e8
Reverse change of "show" to "list" and make several other commands more consistent with "category verb arguments"
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 23:00:20 +00:00
Russell Bryant
105fa492b4
Add the missing call to free described in issue #8268 . Also, add a bunch of
...
missing calls to free in callerid_feed_jp().
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 14:02:37 +00:00
Russell Bryant
e626d78269
fix saying one hundred and two hundred in hebrew (issue #7810 , eldadran)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-01 23:01:48 +00:00
Joshua Colp
673e9f53a8
Force poll() emulation for Darwin to always be on. It's too broken to consider being used. This resolves the console issue OSX users have been seeing. I would have liked to autoconf this but I haven't been able to come up with a test case that works. Que sera.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-01 18:39:47 +00:00
Steve Murphy
a0078bbbc0
Cleanups suggested by Russell.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-01 17:48:48 +00:00
Jason Parker
b12229c1ff
Fix "core show translation" output. Issue #8243 , patch by Damin.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 22:02:15 +00:00
Kevin P. Fleming
f532d2f198
add an API so that translators can activate/deactivate themselves when needed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 21:47:48 +00:00
Kevin P. Fleming
160a0448c2
revert changes that were the wrong way to address this... proper fix coming
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 21:36:17 +00:00
Kevin P. Fleming
f725940328
let's set the seen flag early enough to actually make a difference...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 21:25:20 +00:00
Kevin P. Fleming
59186bb2d2
don't re-do setup operations for translators that can dynamically register themselves
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 21:23:06 +00:00
Olle Johansson
d318976f4d
Issue #8089 - Fix the ENUM support (picking one record by number). Thanks otmar!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 10:56:20 +00:00
Russell Bryant
e998b2b609
Merged revisions 46560 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r46560 | russell | 2006-10-31 01:18:36 -0500 (Tue, 31 Oct 2006) | 3 lines
When handling the case where the hostname is just an IPV4 numeric address,
be sure to set the address type. (issue #8247 , alexr)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 06:19:56 +00:00
Russell Bryant
68720145e3
Add a small tweak to the code that checks to see whether destination formats
...
are translatable based on the source format. If we have already determined
that there is no translation path in one direction, don't bother checking the
other direction.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-31 05:55:07 +00:00
Kevin P. Fleming
d8817c0d3c
when unregistering a translator, don't rebuild the translation matrix unless needed
...
when filtering formats out of an offer, ensure we check for translation ability in both directions
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 22:19:55 +00:00
Olle Johansson
86c973f71f
Issue #8246 - Doxygen fixes from kshumard.
...
An extra big thankyou is given to everyone that contributes to doxygen!
THANK YOU!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 16:27:34 +00:00
Olle Johansson
e93e64a005
Bind RTCP to the same IP as RTP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 16:09:05 +00:00
Russell Bryant
d7f9b5f912
We should always be using _exit() after a fork() or vfork() instead of exit().
...
This is because exit() does some extra cleanup which in some implementations
of vfork(), for example, can actually modify the state of the parent process,
causing very weird bugs or crashes. (issue #7971 , Nick Gavrikov)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-27 17:39:31 +00:00
Russell Bryant
3cb7bcd6d7
- If the source has no audio or no video portion, do not call powerof() to
...
get the format index.
- Don't run through the audio and video loops if there is no audio or video
portion of the source
If 0 is passed to powerof, it will return -1. This value of -1 was then being
used as an array index in these loops, which caused a crash on some systems.
Other than this issue, this code works as we expected it to. If a format is
not in the source, and we have to translation path to it, it is not offered in
the list of acceptable destination formats.
(fixes issue #8231 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-26 16:31:05 +00:00
Mark Spencer
72146fab32
Fix config comment code preservation code (thanks murf!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-26 01:37:40 +00:00
Kevin P. Fleming
ce4b0afb73
apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 14:32:08 +00:00
Tilghman Lesher
ab677899a7
WaitExten truncates decimals of times to wait, instead of accepting them (Bug 8208)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 04:58:44 +00:00
Kevin P. Fleming
6c17f1e07e
add passthrough and file format support for G.722 16KHz audio (issue #5084 , original patch by andrew, updated by mithraen)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 00:26:17 +00:00
Kevin P. Fleming
05eb71c699
code zone experiment: don't offer formats in the outbound INVITE that aren't either passthrough or translatable
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 00:10:54 +00:00
Kevin P. Fleming
c5f096e220
if multiple translators are registered for the same source/dest combination, ensure that the lowest-cost one is always inserted earlier in the list
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 23:45:19 +00:00
Luigi Rizzo
e6451274d2
merge 45152 don't leak descriptors in http.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 08:34:23 +00:00
Kevin P. Fleming
471c0eebdc
ensure that the translation matrix is properly lock-protected every place it is used
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 03:53:32 +00:00
Kevin P. Fleming
d2b10d5f4f
add an API call to allow channel drivers to determine which media formats are compatible (passthrough or transcode) with the format an existing channel is already using
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 03:45:42 +00:00
Tilghman Lesher
de9c3aaa8d
Pass through a frame if we don't know what it is, rather than trying to pass a
...
NULL, which will segfault a channel driver (Bug 8149)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 03:01:00 +00:00
Joshua Colp
bd40b393ec
Don't use promotion on Darwin because it doesn't seem to work quite right in all cases, this should solve the unresolved symbol issue people have been seeing.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-21 18:48:58 +00:00
Joshua Colp
54790d5ceb
Don't modify things if we are using vfork as this is very bad and may cause unexpected behavior (issue #7970 reported by Nick Gavrikov)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-18 21:03:34 +00:00
Luigi Rizzo
4280d28549
merge from trunk: move ast_variables_destroy() to a better
...
place in handle_uri() to avoid leaking memory on non existing files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-18 04:09:50 +00:00
Joshua Colp
64a875951a
Don't segfault if you're using a channel driver that doesn't turn RTCP on
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-18 03:02:08 +00:00
Russell Bryant
0a78fea2ac
Don't attempt to access private data members of the pthread_mutex_t object,
...
because this does not work on all linux systems. Instead, just access
the reentrancy field in the ast_mutex_info struct when DEBUG_THREADS is
enabled. If DEBUG_CHANNEL_LOCKS is enabled, the developer probably has
DEBUG_THREADS on as well.
(issue #8139 , me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-18 02:41:36 +00:00
Kevin P. Fleming
227d415709
optimize the 'quick response' code a bit more... no more malloc() or memset() for each response
...
expand stringfields API a bit to allow reusing the stringfield pool on a structure when needed, and remove some unnecessary code when the structure was being freed
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-17 22:24:10 +00:00
Kevin P. Fleming
60a11a7568
------------------------------------------------------------------------
...
r45119 | kpfleming | 2006-10-13 17:57:42 -0500 (Fri, 13 Oct 2006) | 2 lines
don't drop the entire permit/deny list when an attempt is made to add an invalid entry (BE-92)
------------------------------------------------------------------------
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 23:02:48 +00:00