dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

471 Commits

Author SHA1 Message Date
murf 6e9131d2e7 This solves bug 8342, whereby a crash occurs under certain circumstances while reading a config file with comments-- a call to CB_ADD shouldn't happen if withcomments is zero
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47577 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:15:45 +00:00
file 5159dc5744 Return module show to a working state. (issue #8353 reported by jserve)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47544 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 16:41:45 +00:00
rizzo 20893eb9b2 stop looking for new entries when we know we are done.
there is no functional change, so it is not necessary to
bother merging this to 1.4 now.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47537 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 12:04:05 +00:00
rizzo 7b4d165daf free memory when unregistering an entry.
needs to be merged to 1.4



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47536 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 12:01:25 +00:00
russell 3eb38fa3bf Merged revisions 47492 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47492 | russell | 2006-11-11 10:18:02 -0500 (Sat, 11 Nov 2006) | 2 lines

Tweak the formatting of this new function to better conform to coding guidelines.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47493 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-11 15:22:08 +00:00
mogorman d1557a9c08 safe terminal output is sweet.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47491 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-11 02:12:27 +00:00
file 07598d64cc A trunk that builds is a productive trunk.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47464 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 19:51:15 +00:00
tilghman 597aa05da5 Merged revisions 47436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47436 | tilghman | 2006-11-10 10:51:55 -0600 (Fri, 10 Nov 2006) | 2 lines

Discussion of these CLI changes resulted in more consistency (Bug 8236)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47439 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 17:01:06 +00:00
russell b5963fa342 Add the ability to specify multiple prompts to the Read() dialplan application,
similar to Background() and Playback().
(issue #7897, jsmith, with some modifications)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47408 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 03:59:48 +00:00
file ce05153a12 This should already be called while locked.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47404 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 03:34:13 +00:00
russell 3a8d33312d Merged revisions 47377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47377 | russell | 2006-11-09 11:28:15 -0500 (Thu, 09 Nov 2006) | 2 lines

fix tab completion for "core debug channel" and "core no debug channel"

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47378 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09 16:30:06 +00:00
russell 9b0ed01cdc Merged revisions 47375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47375 | russell | 2006-11-09 11:24:02 -0500 (Thu, 09 Nov 2006) | 3 lines

Fix "core show channel".  Also, fix tab completion for both "core show channel"
and "core show channels".

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47376 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09 16:26:47 +00:00
russell 9e70dc3fcb Merged revisions 47372 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47372 | russell | 2006-11-09 11:18:33 -0500 (Thu, 09 Nov 2006) | 3 lines

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: http://svn.digium.com/svn/asterisk/trunk@47374 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09 16:20:43 +00:00
russell 55b9d0b61c Merged revisions 47366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47366 | russell | 2006-11-09 10:49:39 -0500 (Thu, 09 Nov 2006) | 3 lines

Fix another CLI command, "core show uptime" ...
(issue #8323, reported by johnlange, fixed by myself)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47367 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09 15:51:15 +00:00
russell a37412b28b Merged revisions 47352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47352 | russell | 2006-11-09 01:31:37 -0500 (Thu, 09 Nov 2006) | 3 lines

fix "core show version" to reflect the new number of arguments for this
CLI command (issue #8316, kshumard)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47353 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09 06:35:05 +00:00
murf 9e785e889a This mod via bug 7531
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47349 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-08 23:17:27 +00:00
kpfleming 94ffa07854 restore display of G.722 codec
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47339 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-08 21:59:51 +00:00
file 0493983b13 Display CID matching information when using dialplan show. (issue #8279 reported by caio1982)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47335 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-08 18:26:52 +00:00
rizzo 1407406100 fix "core show profile" parsing.
Needs to go in 1.4 too, but ENOTIME now



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47300 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-07 23:14:04 +00:00
murf 4d6996c27a A fair number of changes for the sake of bug 7506
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47290 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-07 21:47:49 +00:00
rizzo fe2183abb8 explain why ast_carefulwrite is written the way it is,
and also that it doesn't really work as claimed.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47242 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-07 08:34:26 +00:00
file fd703bef54 Add support for manager hooks, so you could fire off manager events over IRC if you were crazy enough. (issue #5161 reported by anthm with mods by moi)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47229 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-06 17:05:04 +00:00
russell 8891d7151b Merged revisions 47196 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47196 | russell | 2006-11-04 13:10:22 -0500 (Sat, 04 Nov 2006) | 2 lines

Fix another bug in "core set debug" ...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47198 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 18:12:31 +00:00
russell c338f06d38 Merged revisions 47195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47195 | russell | 2006-11-04 12:59:39 -0500 (Sat, 04 Nov 2006) | 2 lines

Really fix the "core set debug" and "core set verbose" CLI commands.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47197 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 18:11:18 +00:00
russell 400f858937 Merged revisions 47192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47192 | russell | 2006-11-04 12:38:24 -0500 (Sat, 04 Nov 2006) | 3 lines

fix the "atleast" option to the "core set verbose" and "core set debug"
CLI commands

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47193 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 17:40:42 +00:00
rizzo 3ecef4ec7a remove many unnecessary casts
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47186 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 01:34:59 +00:00
rizzo 81c03c7684 remove a useless cast
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47185 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04 01:32:31 +00:00
rizzo 3094fdaa97 add a new cli/manager.conf option "debug" to enable/disable
debugging code in the manager.
At the moment the debugging code is very lightweight, if the option
is enabled manager messages also carry a sequence number and
the info where they have been generated e.g.

SequenceNumber: 10
File: chan_sip.c
Line: 11927
Func: handle_response_register

It is not worthwhile having this as a compile time option
right now, because the extra work involved at runtime is
just checking one variable.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47132 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-03 18:53:26 +00:00
rizzo 170b60b222 Fix "core show channels" and "core show modules".
Not sure it applies like this to 1.4 because of 
deprecate versions of the same command(s).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47129 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-03 18:13:26 +00:00
tilghman 1a3d9c15e0 Merged revisions 47053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47053 | tilghman | 2006-11-02 17:49:13 -0600 (Thu, 02 Nov 2006) | 2 lines

More changes making the CLI more consistent with "category verb arguments" (continuation of issue 8236)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47054 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02 23:55:59 +00:00
tilghman 278341b071 Merged revisions 47051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47051 | tilghman | 2006-11-02 17:00:20 -0600 (Thu, 02 Nov 2006) | 2 lines

Reverse change of "show" to "list" and make several other commands more consistent with "category verb arguments"

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02 23:16:09 +00:00
file 59ae68a326 Let's make application/function/hint lists read/write lists... just for kicks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47037 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02 21:40:53 +00:00
file 2f107ccc02 Convert translation core linked list over to read/write based one, since it spends most of it's time only reading.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46972 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02 18:01:10 +00:00
russell 0f18ad1144 various whitespace changes to reduce indentation and to better conform to
formatting guidelines


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46886 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02 14:15:12 +00:00
russell ee3dff3442 Change the buffer used in callerid_feed() and callerid_feed_jp() to be
allocated on the stack using alloca() instead of using malloc() since
they are only used locally to these functions.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46885 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02 14:07:48 +00:00
russell b8c1ab53f6 Merged revisions 46857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46857 | russell | 2006-11-01 18:01:48 -0500 (Wed, 01 Nov 2006) | 2 lines

fix saying one hundred and two hundred in hebrew (issue #7810, eldadran)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46863 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-01 23:04:14 +00:00
file cededfcd5c Merged revisions 46780 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46780 | file | 2006-11-01 13:39:47 -0500 (Wed, 01 Nov 2006) | 2 lines

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: http://svn.digium.com/svn/asterisk/trunk@46782 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-01 18:41:49 +00:00
murf 3adc2400e7 This introduces Brazilian Portuguese via 7663
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46773 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-01 18:14:17 +00:00
murf d9def82046 Cleanups suggested by Russell.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46759 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-01 17:46:40 +00:00
kpfleming 05411ca878 Merged revisions 46714 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46714 | kpfleming | 2006-10-31 15:47:48 -0600 (Tue, 31 Oct 2006) | 2 lines

add an API so that translators can activate/deactivate themselves when needed

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46719 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 22:19:08 +00:00
qwell 099d00732e Fix "core show translation" output. Issue #8243, patch by Damin.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46718 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 22:07:18 +00:00
russell d67754f068 Fix the new send text manager command. There is no way this could have worked.
- Check the channel name string length to be zero, not non-zero
- Check the message string length to be zero, not non-zero
- unlock the channel *after* calling sendtext


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 15:22:28 +00:00
oej 0c84a12d69 Issue #80898 - Restoring func_enum (otmar)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46635 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 11:01:06 +00:00
oej dac4a9956e Add manager sendtext action. (Issue 6131, ZX81 - thanks!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46630 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 10:42:22 +00:00
oej 30d943f918 Take two, using find_resource on Kevin's suggestion.
Might need better locking support, giving up if we can't get the lock. Right now,
using existing locking in find_resource


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 08:08:56 +00:00
russell adea8b21bc Merged revisions 46561 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r46561 | russell | 2006-10-31 01:19:56 -0500 (Tue, 31 Oct 2006) | 11 lines

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: http://svn.digium.com/svn/asterisk/trunk@46562 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 06:21:40 +00:00
russell 97b5299651 Merged revisions 46554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46554 | russell | 2006-10-31 00:55:07 -0500 (Tue, 31 Oct 2006) | 5 lines

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: http://svn.digium.com/svn/asterisk/trunk@46556 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 06:10:59 +00:00
kpfleming 72b0ad773c Merged revisions 46526 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46526 | kpfleming | 2006-10-30 16:19:55 -0600 (Mon, 30 Oct 2006) | 3 lines

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: http://svn.digium.com/svn/asterisk/trunk@46529 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 22:27:56 +00:00
oej eb896134ce Adding dialplan function IFMODULE, so you can create dialplans that handle
various PBX installations and checks if a module is loaded before using
it.
	example IFMODULE(chan_sip3.so)

issue #6671 in the bug tracker, finally gone. Thanks to mithraen for keeping
it updated.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46513 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 21:48:41 +00:00
oej f171dba1a0 Issue #3930 - Add manager command for listing dialplan (coded april 2005, in bugtracker since)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 21:18:39 +00:00
oej 219bc91e3a In debug mode, recognize that someone is sending zrtp, even though we
can't do anything with it yet. Ideally a first step would be a 
passthrough mode.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46439 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 16:59:02 +00:00
oej 0b22be3874 Issue 8246 Doxygen updates (kshumard)
THANK YOU!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46434 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 16:33:02 +00:00
oej 18bcb9eda9 Small formatting changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46410 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-29 20:47:01 +00:00
oej a7395ab084 Bind RTCP to the same IP as RTP.
I currently don't see this as a bug that needs to be fixed in 1.4/1.2 too,
but feel free to backport if you see it that way. RTCP now binds to
ALL IP addresses on the host, RTP to a specific address.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46409 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-29 20:21:33 +00:00
russell f2e15e77d0 Merged revisions 46363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46363 | russell | 2006-10-27 12:39:31 -0500 (Fri, 27 Oct 2006) | 5 lines

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: http://svn.digium.com/svn/asterisk/trunk@46364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27 17:42:57 +00:00
russell b1b9710998 fix various spelling mistakes in comments (issue #8237, jmls)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46339 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-26 17:52:15 +00:00
russell c20e957090 Merged revisions 46329 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46329 | russell | 2006-10-26 11:31:05 -0500 (Thu, 26 Oct 2006) | 11 lines

- 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: http://svn.digium.com/svn/asterisk/trunk@46330 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-26 16:35:34 +00:00
rizzo 88fc4c588b fix a problem that i recently introduced when
the manager receives long commands.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46319 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-26 12:47:23 +00:00
markster 6e270f0ae8 Fix comment preservation code (thanks murf!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46288 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-26 01:38:47 +00:00
kpfleming 6d73a5efa0 Merged revisions 46082-46083,46152-46153 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46082 | kpfleming | 2006-10-23 22:45:42 -0500 (Mon, 23 Oct 2006) | 2 lines

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

........
r46083 | kpfleming | 2006-10-23 22:53:32 -0500 (Mon, 23 Oct 2006) | 2 lines

ensure that the translation matrix is properly lock-protected every place it is used

........
r46152 | kpfleming | 2006-10-24 18:45:19 -0500 (Tue, 24 Oct 2006) | 2 lines

if multiple translators are registered for the same source/dest combination, ensure that the lowest-cost one is always inserted earlier in the list

........
r46153 | kpfleming | 2006-10-24 19:10:54 -0500 (Tue, 24 Oct 2006) | 2 lines

code zone experiment: don't offer formats in the outbound INVITE that aren't either passthrough or translatable

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:55:11 +00:00
kpfleming 470f688a28 Merged revisions 46200 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46200 | kpfleming | 2006-10-25 09:32:08 -0500 (Wed, 25 Oct 2006) | 2 lines

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: http://svn.digium.com/svn/asterisk/trunk@46201 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:44:50 +00:00
kpfleming cfed87ed3a Merged revisions 46154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46154 | kpfleming | 2006-10-24 19:26:17 -0500 (Tue, 24 Oct 2006) | 2 lines

add passthrough and file format support for G.722 16KHz audio (issue #5084, original patch by andrew, updated by mithraen)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46155 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 00:32:23 +00:00
rizzo 2e548a50d5 i really think it is safe to commit this version, that
simplifies the manager queue handling as described in
the comment, and will make a lot easier to make further
work on this code.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46120 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-24 17:14:12 +00:00
tilghman 6895e37486 Merged revisions 46078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46078 | tilghman | 2006-10-23 22:01:00 -0500 (Mon, 23 Oct 2006) | 3 lines

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: http://svn.digium.com/svn/asterisk/trunk@46079 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-24 03:09:48 +00:00
rizzo 2c178adeff use autodetected support for gethostbyname_r
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 16:54:54 +00:00
rizzo bf08d70185 Fix a few issues in the previous (disabled) HTTPS code,
and support linux as well (using fopencookie(), which should
be available in glibc).

Update configure.ac to check for funopen (BSD) and fopencookie(glibc),
and while we are at it also for gethostbyname_r
(the generated files need to be updated, or you need
to run bootstrap.sh yourself).

Document the new options in http.conf.sample
(names are only tentative, better ones are welcome).

At this point we can safely enable the option.
Anyone willing to try this on Sun and Apple platforms ?



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45892 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 19:09:25 +00:00
rizzo 52f130cd55 Implement https support.
The changes are not large. Most of the diff comes from putting the
global variables describing an accept session into a structure, so
we can reuse the existing code for running multiple accept threads
on different ports.

Once this is done, and if your system has the funopen() library
function (and ssl, of course), it is just a matter of calling
the appropriate functions to set up the ssl connection on the
existing socket, and everything works on the secure channel now.

At the moment, the code is disabled because i have not implemented yet
the autoconf code to detect the presence of funopen(), and add -lssl
to main/Makefile if ssl libraries are present. And a bit of documentation
on the http.conf arguments, too.


If you want to manually enable https support, that is very simple
(step 0 1 2 will be eventually detected by ./configure, the
rest is something you will have to do anyways).

0. make sure your system has funopen(3). FreeBSD does, linux probably
   does too, not sure about other systems.

1. uncomment the following line in main/http.c
   // #define      DO_SSL  /* comment in/out if you want to support ssl */

2. add -lssl to AST_LIBS in main/Makefile

3. add the following options to http.conf

	sslenable=yes
	sslbindport=4433	; pick one you like
	sslcert=/tmp/foo.pem		; path to your certificate file.

4. generate a suitable certificate e.g. (example from mini_httpd's Makefile:

	openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem

and here you go:

	https://localhost:4433/asterisk/manager

now works.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45869 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 12:02:35 +00:00
rizzo 33d14223de it is useless and possibly wrong to use ast_cli() to send the
reply back to http clients.
Use fprintf/fwrite instead, since we are already using a FILE *
to read the input.

If you wonder why, this is because it makes it trivial to
implement https support (as long as your system has funopen()).

And this is what i am going to put in with the next few commits...



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45858 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 08:28:16 +00:00
file b3ffca3af4 Let's have build.h created a bit earlier so that func_version can use it and not stop the build on a fresh machine that has never had Asterisk installed on it before...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45847 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 04:44:43 +00:00
rizzo 98620b2aef the default port number was erroneously stored in host order,
and reading from the config file used ntohs instead of htons.

this ought to be merged to 1.4 as well.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45836 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-21 20:24:04 +00:00
file 577ae460a7 Merged revisions 45817 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45817 | file | 2006-10-21 14:48:58 -0400 (Sat, 21 Oct 2006) | 2 lines

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: http://svn.digium.com/svn/asterisk/trunk@45820 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-21 18:52:33 +00:00
rizzo 5e167d54c8 minor comment changes, code rearrangement and field renaming
to minimize diffs with future modifications.

The current implementation is problematic for the following reasons:
+ all insertions are O(N) because the event list does not have a tail
  pointer;
+ there is only a single lock protecting both session and users queues.
+ the implementation of the queue itself is not documented.
  I think i have figured it out, more or less, but am unclear on
  whether there is proper locking in place

The rewrite (which i have working locally) uses a tailq so insertions
are O(1), separate locks for the event and session queues, and has
a documented implementation so hopefully we can figure out if/where
bug exist.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45753 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-20 11:24:43 +00:00
oej bc7883b922 Doxygen corrections
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45742 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-20 08:00:13 +00:00
rizzo 9fc4cf6980 more fixes to comments and very minor code rearrangement.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45696 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19 17:26:20 +00:00
rizzo 96167b391b implement proper XML/HTML formatting of multiple messages
(e.g. the result of waitevent).

Also fix some comments.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45690 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19 17:07:08 +00:00
rizzo cc60583cb6 more documentation of data structure and functions.
Of interest:
+ ast_get_manager_by_name_locked() is now without the ast_
  prefix as it is a local function;

+ unuse_eventqent() renamed to unref_event(), and returns
  the pointer to the next entry.

+ marked with XXX a couple of usages of unref_event()
  because i suspect we are addressing the wrong entry.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45648 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19 07:43:43 +00:00
russell 21cbb8bb68 Extend the thread storage API such that a custom initialization function can
be called for each thread specific object after they are allocated.  Note that
there was already the ability to define a custom cleanup function.  Also, if
the custom cleanup function is used, it *MUST* call free on the thread
specific object at the end.  There is no way to have this magically done that
I can think of because the cleanup function registered with the pthread
implementation will only call the function back with a pointer to the
thread specific object, not the parent ast_threadstorage object.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45623 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19 01:00:57 +00:00
rizzo 6a1a45a520 silent warning from a debugging message (which will go away
soon, anyways)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45611 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 22:40:02 +00:00
rizzo fb300e0612 remove trailing whitespace
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45599 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 21:41:09 +00:00
rizzo d68ba2d09f ouch! remember to unlink temporary files once done with them.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 21:36:20 +00:00
rizzo 93784d6aba + move output_format variables in the http section of the file;
+ more comments on struct mansession and global variables;
+ small improvements to the session matching code so it supports
  multiple sessions from the same IP



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45597 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 21:30:21 +00:00
file d57f0c668b Merged revisions 45595 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45595 | file | 2006-10-18 17:03:34 -0400 (Wed, 18 Oct 2006) | 2 lines

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: http://svn.digium.com/svn/asterisk/trunk@45596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 21:05:52 +00:00
rizzo 90c480f49d another bunch of comments on the data structures.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45583 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 17:53:47 +00:00
rizzo 713b6b817a despite the large changes, this commit only moves functions
around so that functions belonging to the same group are
close to each other.

At the beginning of each group i have added a bit of documentation
to explain what the group does and what is the typical flow - basically,
all i have learned by code inspection over the past few days should
be documented for you to read.

I have not put many doxygen annotations just because i am not
sure what are the proper ones. Hopefully some doxygen experts will jump in.

Next on the plate: try to figure out how "struct eventqent"
are supposed to work.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 17:45:50 +00:00
rizzo 78cdd30eba more comment and formatting fixes, small simplifications
to functions get_input() and session_do()



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45572 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 16:52:13 +00:00
mogorman da8aef1fc3 rizzo compile then commit, maybe even run it too ^_^
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45571 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 16:45:22 +00:00
rizzo 13dc47f57d comment and cleanup the main thread.
On passing, fix a bug: close the socket if the allocation
of a structure for the new session fails.
(the bugfix is a candidate for 1.4)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45561 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 15:49:40 +00:00
rizzo fdb5962fae create a new (internal, for the time being) function astman_start_ack()
to start manager responses that need further lines.
This removes a lot of duplicate code from the various handlers
that at the moment build an ActionID string themselves.

Once settled, the function should move to manager.h so
it can be used by other files (chan_agent, chan_iax2, chan_sip,
chan_zap, res_jabber and app_queue).

I am not totally clear if there is a preferred position for
the ActionID: line in a message. Some instances put it at
the end, but one would argue that it is preferable to have
it at the beginning.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45551 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 14:21:15 +00:00
rizzo 59bee9954d more indentation cleanup from previous commits,
and remove the "busy" field from struct mansession
as it was not used correctly anyways.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45541 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 13:42:14 +00:00
rizzo 67fc1bcd75 create proper handlers for "Challenge" and "Login" actions,
rather than use inline code for them.
Things are more readable this way, and also error processing
is more consistent.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45540 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 13:23:22 +00:00
rizzo 2a74685732 fix indentation from a commit of a couple of days ago
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45530 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 12:55:12 +00:00
rizzo 18827b8ac3 another batch of simplifications to authenticate()
(they are committed a bit at a time so it is easier to
revert them in case we find a bug at a later time).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45529 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 12:38:24 +00:00
rizzo 3933708d51 remove unused fields and unimplemented options.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45518 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 11:59:08 +00:00
rizzo 440510b692 first pass as simplifying authenticate(), avoiding whitespace changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45516 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 11:54:06 +00:00
rizzo fbe8d94965 more code simplifications
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45515 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 11:43:31 +00:00
rizzo ab2bb64d8a simplify ast_strings_to_mask
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45505 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 10:14:58 +00:00
rizzo 22d613b827 add a comment to remember that a block of code is
completely redundant.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45495 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 08:48:50 +00:00
rizzo 155fe80952 + move the enum declaration for output formats near the head
of the file, so it can be used from more places;
+ make the declaration of contenttype[] more robust;
+ remove the wrappers around __xml_translate(), since they were
  used only in one place, and rename to xml_translate().
  This allows for a bit of simplifications.
+ document the output produced by the above function.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45485 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 06:28:34 +00:00
rizzo 519206a7ef merge xml_translate() and html_translate() into one function since
they do similar things.

Add a small form on top of the html output so request like
http://foo:8088/asterisk/manager will suggest you what to do.

Note: i suspect there is still a bug somewhere in the session matching
code, as sometimes you have to login twice in order for the following
commands to be recognised.

Apart from this, the cli now is basically usable from a web form!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45475 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 05:31:54 +00:00
rizzo 196862402f introduce uri_decode() so that '+' are translated into ' '
(e.g. browsers do this when they encode input strings from a form).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45474 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 05:27:22 +00:00
rizzo 0678982f62 various code simplifications to reduce nesting depth,
minor optimizations to avoid extra calls of strlen(),
and some variable localization.

One feature worth backporting is the move of ast_variables_destroy()
to a different place in handle_uri() to avoid leaking memory
in case a uri is not found.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45463 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 04:05:56 +00:00
file 3f6e3c58fc Merged revisions 45452 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45452 | file | 2006-10-17 23:02:08 -0400 (Tue, 17 Oct 2006) | 2 lines

Don't segfault if you're using a channel driver that doesn't turn RTCP on

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45453 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 03:03:37 +00:00
russell f2f143da66 Merged revisions 45441 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45441 | russell | 2006-10-17 22:41:36 -0400 (Tue, 17 Oct 2006) | 7 lines

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: http://svn.digium.com/svn/asterisk/trunk@45442 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18 02:46:39 +00:00
kpfleming 05c0b1648b Merged revisions 45408 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45408 | kpfleming | 2006-10-17 17:24:10 -0500 (Tue, 17 Oct 2006) | 3 lines

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: http://svn.digium.com/svn/asterisk/trunk@45409 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-17 22:24:45 +00:00
file b31277825f Warning be gone!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45398 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-17 21:09:49 +00:00
rizzo 7813852f07 simplify authority_to_str() using ast_build_string()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45351 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-17 18:08:51 +00:00
rizzo 04aba2dbed Improve the XML formatting of responses coming from web interface.
Normal responses are sequences of lines of the form "Name: value",
with \r\n as line terminators and an empty line as a response
terminator.

Generi CLI commands, however, do not have such a clean formatting,
and the existing code failed to generate valid XML for them.
Obviously we can only use heuristics here, and we do the following:
- accept either \r or \n as a line terminator, trimming trailing whitespace;
- if a line does not have a ":" in it, assume that from this point on
  we have unformatted data, and use "Opaque-data:" as a name;
- if a line does have a ":" in it, the Name field is not always
  a legal identifier, so replace non-alphanum characters with underscores;

All the above is to be refined as we improve the formatting of
responses from the CLI.

And, all the above ought to go as a comment in the code rather than
just in a commit message...
  


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45334 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-17 17:51:34 +00:00
rizzo 2e31cdbf7e open a temporary file to receive the output from cli commands
invoked through the http interface.

It is not terribly efficient but better than no output at all.
Todo: use a configurable /tmp directory instead of a hardwired one.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45330 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-17 17:41:59 +00:00
rizzo 7673e5c24a document xml_copy_escape() and add an extra function, namely
replace non-alphanum chars with underscore.
This is useful when building field names in xml formatting.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45325 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-17 17:19:31 +00:00
rizzo ec8004ac16 + comment some unclear fields of struct mansession;
+ let some commands (Challenge, Login) be processed even if
  already authenticated, as it doesn't harm and prevents some
  incorrect error messages

+ remove custom code for Logoff - the existing handler was ok.

Some indentation fixes may be necessary



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45219 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-16 14:00:53 +00:00
rizzo 661ccc5d4b + comment some unclear requirements for master_eventq
+ remove the need for an snprintf in astman_get_header()
+ fix comment for manager list eventq
+ localize one variable and minor code simplifications.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45185 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-16 11:29:22 +00:00
rizzo 2f69cfdbe4 protect access to first_action with actionlock.
Mark with XXX one place (during command execution) where
navigation should be protected with actionlock, but is not
because it would block requests for a long time.

To solve this properly we need to put reference counts in
the struct manager_action.
A suboptimal fix is to copy the record on a search and then
unlock the list while we work on the copy.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45177 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-16 09:33:00 +00:00
rizzo 031898f74c comment some functions, and more small code simplifications
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45169 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-16 08:38:35 +00:00
rizzo 8ec107ece6 fix indentation of a large block after changes in previous commit
(basically whitespace only).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45161 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-16 06:55:14 +00:00
rizzo f326543d3c simplify string parsing routines using ast_skip_*() functions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45160 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-16 06:30:51 +00:00
rizzo 8b4ea66556 don't forget to close a descriptor on a malloc failure.
On passing, small rearrangement of the code to reduce indentation.

There is a bit more cleanup planned for this file, so a merge to 1.4
will be done when it is all done.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45152 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-15 20:54:15 +00:00
rizzo 454cf4267d typo: serer -> server
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45151 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-15 20:37:42 +00:00
kpfleming 3cea33ad57 Merged revisions 45125 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45125 | kpfleming | 2006-10-13 18:02:48 -0500 (Fri, 13 Oct 2006) | 7 lines

------------------------------------------------------------------------
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: http://svn.digium.com/svn/asterisk/trunk@45126 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-13 23:03:36 +00:00
file a1d20e1faa Merged revisions 45031 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r45031 | file | 2006-10-13 11:53:22 -0400 (Fri, 13 Oct 2006) | 10 lines

Merged revisions 45030 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r45030 | file | 2006-10-13 11:49:53 -0400 (Fri, 13 Oct 2006) | 2 lines

Pass the right value to usleep for sleeping, and always add the background refresh item back into the scheduler if enabled since it is deleted during reload. (issue #8142 reported by p_lindheimer)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45032 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-13 15:56:17 +00:00
kpfleming fd7c90241c Merged revisions 45027 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45027 | kpfleming | 2006-10-13 10:41:14 -0500 (Fri, 13 Oct 2006) | 2 lines

use a configure script test for PMTU discovery control instead of just assuming it's available on Linux

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45029 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-13 15:47:42 +00:00
kpfleming 535b7f6f69 Merged revisions 44956 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r44956 | kpfleming | 2006-10-12 13:38:51 -0500 (Thu, 12 Oct 2006) | 10 lines

Merged revisions 44955 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44955 | kpfleming | 2006-10-12 13:31:26 -0500 (Thu, 12 Oct 2006) | 2 lines

ensure that IAX2 and SIP sockets allow UDP fragmentation when running on Linux (thanks to Brian Candler on the asterisk-dev list for the tip)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44957 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-12 18:43:52 +00:00
russell aabdfc585b Merged revisions 44945 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44945 | russell | 2006-10-12 12:56:32 -0400 (Thu, 12 Oct 2006) | 2 lines

fix a silly typo in a comment that I saw while reading the commit list

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44946 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-12 16:57:36 +00:00
nadi 9f77d518ea Merged revisions 44921 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44921 | nadi | 2006-10-12 14:55:25 +0200 (Do, 12 Okt 2006) | 2 lines

append_event must be called while holding the session lock

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44922 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-12 13:04:03 +00:00
qwell 5acec3f786 Merged revisions 44888 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44888 | qwell | 2006-10-11 11:57:06 -0500 (Wed, 11 Oct 2006) | 3 lines

These are already set by the parent Makefile..
There is no need to have this here (it doesn't actually work anyways).

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44889 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-11 16:57:59 +00:00
pcadach d2747c97ad Extend CALLERID() function for "pres" and "ton" values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44685 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-07 14:45:49 +00:00
file 81f17f2758 Merged revisions 44628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44628 | file | 2006-10-06 17:08:54 -0400 (Fri, 06 Oct 2006) | 2 lines

Remove the seqno check for RFC2833, the handler is smart enough to not need it.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44630 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06 21:10:42 +00:00
rizzo fea07f8eea basically fix indentation of a large function after previous
simplifications. On passing, use a single exit point.

(once done with the cleanup i will merge the changes into 1.4,
if applicable)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44626 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06 21:04:43 +00:00
rizzo 6e5dda36f5 s cannot be null here, so remove the useless test and error-handling block.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44617 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06 20:34:11 +00:00
rizzo 1a51660834 simplify logic in preparation to reduce indentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44616 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06 20:16:13 +00:00
file e99a344399 Merged revisions 44605 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44605 | file | 2006-10-06 14:46:28 -0400 (Fri, 06 Oct 2006) | 2 lines

When the sequence number rolls over then reset the recorded sequence number for DTMF (issue #8106 reported by bungalow)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44606 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06 18:47:49 +00:00
file aa80370d7c Merged revisions 44581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r44581 | file | 2006-10-06 12:53:48 -0400 (Fri, 06 Oct 2006) | 10 lines

Merged revisions 44580 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44580 | file | 2006-10-06 12:52:14 -0400 (Fri, 06 Oct 2006) | 2 lines

Even more frames to treat as though the remote side disappeared (issue #8097 reported by eldadran)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06 16:56:05 +00:00
rizzo d70733010d make sure sockets are blocking when they should be blocking.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44568 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06 15:59:57 +00:00
file 16743e1742 Merged revisions 44502 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r44502 | file | 2006-10-05 15:57:16 -0400 (Thu, 05 Oct 2006) | 10 lines

Merged revisions 44501 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44501 | file | 2006-10-05 15:55:41 -0400 (Thu, 05 Oct 2006) | 2 lines

Treat busy control frames as hangup in the file streaming core (issue #8097 reported by eldadran)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44503 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05 19:58:50 +00:00
kpfleming e896ec40b5 Merged revisions 44476 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44476 | kpfleming | 2006-10-05 11:10:01 -0500 (Thu, 05 Oct 2006) | 3 lines

don't segfault when an argument without a close parenthesis is found
stop parsing as soon as that situation occurs

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44477 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05 16:11:09 +00:00
murf 6c89612673 As per ToDo list, I have made it so that Wait(), WaitExten(), Congestion(), Busy(), Read(), WaitForRing(), will now either actually handle a floating point argument as advertised, or has been upgraded to accept a floating point [timeout] arg.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44435 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05 01:40:06 +00:00
kpfleming 1dd03117a6 Merged revisions 44390 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44390 | kpfleming | 2006-10-04 16:04:21 -0500 (Wed, 04 Oct 2006) | 2 lines

make LOW_MEMORY builds actually work

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44391 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04 21:10:36 +00:00
kpfleming 1a08d9e31b Merged revisions 44378 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44378 | kpfleming | 2006-10-04 14:47:22 -0500 (Wed, 04 Oct 2006) | 4 lines

update thread creation code a bit
reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space
add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04 19:51:38 +00:00
kpfleming cdae839f80 Merged revisions 44322 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44322 | kpfleming | 2006-10-03 19:25:44 -0500 (Tue, 03 Oct 2006) | 3 lines

ensure that local include files are always used
avoid a duplicate function name (term_init())

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44323 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04 00:26:21 +00:00
file e47cd7e01e Add Masquerade manager event which trips when a masquerade happens (issue #7840 reported by moy)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44273 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03 17:10:16 +00:00
mogorman 4a1aaf52ae bug #8076 check option_debug before printing to debug channel.
patch provided in bugnote, with minor changes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03 15:53:07 +00:00
file a781f1ba87 Make callerid fields in Manager events more consistent. CallerIDNum for number and CallerIDName for name. (issue #7976 reported by suhler)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44217 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02 20:35:16 +00:00
file 33398613e7 Add option to logger to rename log files with timestamp (issue #8020 reported by jmls)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44172 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02 17:54:21 +00:00
file c6f8f943b8 Merged revisions 44169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r44169 | file | 2006-10-02 13:25:13 -0400 (Mon, 02 Oct 2006) | 10 lines

Merged revisions 44168 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44168 | file | 2006-10-02 13:22:27 -0400 (Mon, 02 Oct 2006) | 2 lines

Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44171 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02 17:26:34 +00:00
kpfleming bc33bdd29f clean up formatting and conformance to code guidelines
revert Mark's change that caused a memory leak (cap_set_proc() does not free the capability structure so we always need to call cap_free())


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44152 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02 16:00:11 +00:00
markster bd69ae459f Uhm yah, not sure who committed this into trunk... Anyway, I think this
is what was intended...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44145 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02 02:19:04 +00:00
pcadach 885085e4d2 Merged revisions 44090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44090 | pcadach | 2006-10-01 01:20:38 +0600 (Вск, 01 Окт 2006) | 1 line

Allow one-way RTP streams (device->Asterisk)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44091 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-30 19:23:59 +00:00
rizzo 5b3b15328f merge compile fixes from 44080:
- with AST_DEVMODE, building codecs/lpc10 fails because of lots
  of warnings, and the configure step in editline fails as well.
  Fix this by removing the -Werror in these steps.

- on FreeBSD (but probably on other platforms as well), the final   
  link of asterisk fails because AST_LIBS was not exported to the
  subdirs Makefiles. Add a proper fix in the top-level Makefile
  (a possible alternative way is to add "export AST_LIBS" near
  the beginning of the file).
  With this fix, i believe that some of the platform-specific
  conditionals in main/Makefile are redundant (because they should
  be already dealt with in the top level Makefile) but i don't
  have a platform to check.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44081 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-30 16:37:21 +00:00
kpfleming a8442c9b22 Merged revisions 44055 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44055 | kpfleming | 2006-09-29 17:47:40 -0500 (Fri, 29 Sep 2006) | 2 lines

fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 22:48:43 +00:00
qwell fcfda97ed2 Merged revisions 44053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44053 | qwell | 2006-09-29 15:35:09 -0700 (Fri, 29 Sep 2006) | 3 lines

Fix a bug with the removal of 'atleast' argument to 'core verbose' and 'core debug'.
Add that argument back in.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44054 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 22:36:29 +00:00
kpfleming 170dae49be Merged revisions 43996-43997,44008,44011-44012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43996 | kpfleming | 2006-09-29 11:47:05 -0500 (Fri, 29 Sep 2006) | 2 lines

another cross-compile fix

........
r43997 | kpfleming | 2006-09-29 11:52:27 -0500 (Fri, 29 Sep 2006) | 2 lines

support --without-curl in configure script

........
r44008 | kpfleming | 2006-09-29 13:25:49 -0500 (Fri, 29 Sep 2006) | 2 lines

don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because they are also then used for non-Asterisk components (like menuselect); use our own variables instead

........
r44011 | kpfleming | 2006-09-29 13:40:17 -0500 (Fri, 29 Sep 2006) | 2 lines

missed one conversion to ASTCFLAGS

........
r44012 | kpfleming | 2006-09-29 13:49:07 -0500 (Fri, 29 Sep 2006) | 2 lines

yet another place where we were not using the correct CFLAGS by default

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44013 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 18:54:21 +00:00
kpfleming 60b3bb94a2 Merged revisions 43978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43978 | kpfleming | 2006-09-29 08:45:40 -0500 (Fri, 29 Sep 2006) | 2 lines

proper fix for ast_group_t change

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43979 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 13:46:33 +00:00
file fc09ef5f07 Cache the application pointer so we don't have to needlessly search for it over and over. This should yield a suitable performance increase.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43954 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 22:49:55 +00:00
file 3a27d3bc70 Merged revisions 43933 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43933 | file | 2006-09-28 14:05:43 -0400 (Thu, 28 Sep 2006) | 2 lines

Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43934 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 18:09:01 +00:00
file c8756e2226 Merged revisions 43913 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43913 | file | 2006-09-28 13:14:07 -0400 (Thu, 28 Sep 2006) | 2 lines

Warning be gone!

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43914 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 17:15:38 +00:00
kpfleming 5a8f1f7f8a Merged revisions 43898 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r43898 | kpfleming | 2006-09-28 11:38:25 -0500 (Thu, 28 Sep 2006) | 10 lines

Merged revisions 43895 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43895 | kpfleming | 2006-09-28 11:32:44 -0500 (Thu, 28 Sep 2006) | 2 lines

eliminate compiler warning introduced by recent changes

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43900 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 16:43:40 +00:00
pcadach d376634d0f Merged revisions 43635,43843-43844,43846 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43635 | pcadach | 2006-09-26 03:26:12 +0600 (Втр, 26 Сен 2006) | 1 line

Fix ASN1 description of non-standard Cisco extensions
........
r43843 | pcadach | 2006-09-28 12:01:37 +0600 (Чтв, 28 Сен 2006) | 1 line

Don't treat unknown control frames as voice
........
r43844 | pcadach | 2006-09-28 12:02:45 +0600 (Чтв, 28 Сен 2006) | 1 line

Don't warn on HOLD/UNHOLD control frames
........
r43846 | pcadach | 2006-09-28 16:51:21 +0600 (Чтв, 28 Сен 2006) | 1 line

Do not open transmit channel until TCS is received
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43853 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 11:12:58 +00:00
file c3414d6078 Add ability to set high ToS bits as non-root on Linux using libcap (issue #7047 reported by maddison)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43830 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27 21:48:01 +00:00
qwell ee459bcc3c Add BACKGROUNDSTATUS to Background()
Issue #7835, original patch by bcnit - redone by me.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43814 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27 20:03:23 +00:00
qwell df5a8ce91b Merged revisions 43803 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43803 | qwell | 2006-09-27 12:44:02 -0700 (Wed, 27 Sep 2006) | 4 lines

Fix an issue with PLAYBACKSTATUS not being set under certain circumstances.
Fix a minor issue, to make it use the filenames that were parsed, instead of the entire argument string.
Fix Background() to return -1 like Playback(), if no args are specified.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43804 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27 19:45:24 +00:00
file d3d987c77f Merged revisions 43798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43798 | file | 2006-09-27 15:10:59 -0400 (Wed, 27 Sep 2006) | 2 lines

Compensate for out of order packets better if RFC2833 compensation is turned on.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43799 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27 19:12:40 +00:00
russell 4e3d884aa3 Merged revisions 43779 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r43779 | russell | 2006-09-27 12:55:49 -0400 (Wed, 27 Sep 2006) | 50 lines

Merged revisions 43778 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43778 | russell | 2006-09-27 12:54:30 -0400 (Wed, 27 Sep 2006) | 42 lines

Fix a problem that occurred if a user entered a digit that matched a bridge
feature that was configured using multiple digits, and the digit that was
pressed timed out in the feature digit timeout period.  For example, if blind
transfer is configured as '##', and a user presses just '#'.  In this situation,
the call would lock up and no longer pass any frames.
(issue #7977 reported by festr, and issue #7982 reported by michaels and
 valuable input provided by mneuhauser and kuj.  Fixed by me, with testing help
 and peer review from Joshua Colp).

There are a couple of issues involved in this fix:

1) When ast_generic_bridge determines that there has been a timeout, it returned
   AST_BRIDGE_RETRY.  Then, when ast_channel_bridge gets this result, it calls
   ast_generic_bridge over again with the same timestamp for the next event.
   This results in an endless loop of nothing until the call is terminated.
   This is resolved by simply changing ast_generic_bridge to return 
   AST_BRIDGE_COMPLETE when it sees a timeout.

2) I also changed ast_channel_bridge such that if in the process of calculating
   the time until the next event, it knows a timeout has already occured, to
   immediately return AST_BRIDGE_COMPLETE instead of attempting to bridge the
   channels anyway.

3) In the process of testing the previous two changes, I ran into a problem in
   res_features where ast_channel_bridge would return because it determined
   that there was a timeout.  However, ast_bridge_call in res_features would
   then determine by its own calculation that there was still 1 ms before the
   timeout really occurs.  It would then proceed, and since the bridge broke
   out and did *not* return a frame, it interpreted this as the call was over
   and hung up the channels.

   The reason for this was because ast_bridge_call in res_features and
   ast_channel_bridge in channel.c were using different times for their
   calculations.  channel.c uses the start_time on the bridge config, which
   is the time that the feature digit was recieved.  However, res_features
   had another time, 'start', which was set right before calling 
   ast_channel_bridge.  'start' will always be slightly after start_time in the
   bridge config, and sometimes enough to round up to one ms.

   This is fixed by making ast_bridge_call use the same time as 
   ast_channel_bridge for the timeout calculation.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43780 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27 16:57:44 +00:00
russell 7e434158dc Merged revisions 43710 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r43710 | russell | 2006-09-26 16:56:42 -0400 (Tue, 26 Sep 2006) | 17 lines

(This was actually BE-65)

Merged revisions 43708 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43708 | russell | 2006-09-26 16:49:21 -0400 (Tue, 26 Sep 2006) | 7 lines

Back in revision 4798, this message was changed from using ast_cli() to directly
calling write().  During this change, checking if this was a remote console was
removed.  This caused this message about using "exit" or "quit" to exit an
Asterisk console to come up in times where it did not make sense.  This change
restores the check to see if this is a remote console before printing the
message.  (fixes BE-4)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43715 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26 21:01:02 +00:00
file 3ec950000a Merged revisions 43707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r43707 | file | 2006-09-26 16:47:26 -0400 (Tue, 26 Sep 2006) | 10 lines

Merged revisions 43705 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43705 | file | 2006-09-26 16:38:06 -0400 (Tue, 26 Sep 2006) | 2 lines

Use proper type to represent the group variable (issue #8025 reported by makoto)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43709 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26 20:51:36 +00:00
file bb65c259b4 Merged revisions 43695 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43695 | file | 2006-09-26 16:09:41 -0400 (Tue, 26 Sep 2006) | 2 lines

Slight overhaul of the whisper support. 1. We need to duplicate the frame from ast_translate 2. We need to ensure we always have signed linear coming in for signed linear combining. 3. We need to ensure we are always feeding signed linear out. 4. Properly store and restore write format when beeping on the channel we are whispering on. 5. Properly discontinue the stream on the channel for the beep. (issue #8019 reported by timkelly1980)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43696 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26 20:11:44 +00:00
qwell 8eca66d885 Merged revisions 43674 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43674 | qwell | 2006-09-26 11:08:51 -0700 (Tue, 26 Sep 2006) | 4 lines

Issue #8015, patch by Dan Austin.

Maximum values were incorrect, which is why this is being put in 1.4

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43675 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26 18:10:07 +00:00
qwell a07063408b Add optional queue_log_name config option for logger.conf, to change the
name of the queue_log file.

Issue #7363, patch by Steve Davies, slightly modified by me.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43666 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26 17:09:01 +00:00
pcadach 84a040451e Small Cisco's RTP DTMF update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43546 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-24 12:15:49 +00:00
pcadach 62327ec363 Correct behavior on Cisco's DTMF
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43539 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-23 18:25:13 +00:00
qwell f4108c03f3 Merged revisions 43492 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43492 | qwell | 2006-09-22 10:25:05 -0700 (Fri, 22 Sep 2006) | 2 lines

Make sure we explicitly set the CLI command to not be deprecated, if it isn't.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43493 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-22 17:26:10 +00:00
kpfleming caa651b8dc Merged revisions 43486 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43486 | kpfleming | 2006-09-22 10:51:13 -0500 (Fri, 22 Sep 2006) | 2 lines

all the Linux systems I have don't use '__m_count' for this field, so I don't know where this came from...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43488 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-22 16:25:04 +00:00
russell f93b304b9c Merged revisions 43477 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43477 | russell | 2006-09-22 10:02:58 -0400 (Fri, 22 Sep 2006) | 3 lines

Suppress a compiler warning about the use of a potentially uninitialized
variable.  It couldn't actually happen, though.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43478 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-22 14:04:46 +00:00
tilghman 42ee5cb87f And some deprecated APIs and modifications to documentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43458 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 22:23:49 +00:00
kpfleming 901e02171b Merged revisions 43450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43450 | kpfleming | 2006-09-21 16:21:29 -0500 (Thu, 21 Sep 2006) | 2 lines

add another attempt to strip non-API symbols from the final binary... script will need to be extended to work on non-Linux systems

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 21:22:34 +00:00
tilghman 33d8fe4c3e Remove deprecated CLI apps from the core
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43449 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 21:17:39 +00:00
tilghman c8a470374f Remove 1.4 changes from UPGRADE.txt, remove deprecated callerid field, remove deprecated SetGlobalVar app
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43444 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 20:01:54 +00:00
file c2b2866b49 SS7 marked the start of an open season for trunk again but here's something minor - abstract early bridging into the technology so that we don't always assume they use RTP and try it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43437 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 19:27:26 +00:00
kpfleming 1a1f9a5334 Merged revisions 43405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43405 | kpfleming | 2006-09-21 11:08:03 -0500 (Thu, 21 Sep 2006) | 2 lines

remove this change... it requires binutils 2.17

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43406 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 16:09:31 +00:00
russell d29e6d39e5 Merged revisions 43383 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43383 | russell | 2006-09-20 18:13:16 -0400 (Wed, 20 Sep 2006) | 2 lines

Fix the total allocation count and total byte count in the memory summary

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43384 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 22:14:04 +00:00
russell 143bcbff32 Fix the memory summary so that it doesn't print the first file in the list over
and over again.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43375 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 21:42:57 +00:00
russell 4f97eb1b1a fix some breakage from the CLI command changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43372 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 21:14:02 +00:00
tilghman e8ef9fd3ba Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 20:40:39 +00:00
kpfleming cd937b3b07 don't let symbols from included static libraries (like codec/ilbc) pollute the global namespace when those modules are embedded
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43360 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 20:13:42 +00:00
file 3c35e5e958 Totally break a P2P bridge upon going on hold, and re-establish it upon going off hold.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43343 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 17:08:44 +00:00
file 543b3e9099 Expand codec check so that raw formats must be equal for a Packet2Packet bridge to occur
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43340 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 16:55:09 +00:00
qwell 3a260bee7e Commit the changes from issue #5240.
Original patch by junky, modified by anthonyl, modified again by jcolp (with minor modifications by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43300 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 22:01:23 +00:00
kpfleming 44db0fbbd1 move this header to include where it belongs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43298 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 21:48:57 +00:00
qwell 46e384f88c After discussing this with other people, we decided we'd like to try to do this a little differently.
Stay tuned.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43290 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 19:58:09 +00:00
anthonyl ff5e99c7e0 5240 update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43289 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 19:28:57 +00:00
mattf 42a59d0531 Mergeing in Paul Cadach's chan_h323 changes *holds breath*
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43281 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 17:07:22 +00:00
mogorman d5df46a93e similar patch for verbose vs debug with minor changes
bug 2617


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43272 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 16:23:45 +00:00
file defea1a6a4 Warning be gone!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43264 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 15:36:25 +00:00
mogorman c37364c1a8 allow for packetization on rtp channel drivers, need to add
option for setting our own packetization as apposed to just doing 
what is asked.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43243 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 23:32:57 +00:00
qwell d8e2b10504 Only use alloca.h on OSes that have it.
Reported by jontow on IRC in #asterisk-dev


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43230 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 21:24:50 +00:00
kpfleming c72149025b always use fork() when available
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43216 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 19:58:27 +00:00
kpfleming 5aacb6a82d merge qwell's CLI verbification work
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 19:54:18 +00:00
kpfleming 2f8e7d0e35 it appears that current Mac OS/X does not need the poll compatibility module at all, and platforms that do need it also need -DPOLLCOMPAT (or they wouldn't have compiled at all)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43207 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 19:20:24 +00:00
kpfleming 5c0e56df21 merge markster's usersconf branch with some slight changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-16 23:53:58 +00:00
qwell fe9ed45b05 Many Solaris fixes - this moves some of the stuff from utils.c to strcompat.c
Every OS uses strcompat now - this was done on purpose.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42982 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-15 17:16:00 +00:00
anthonyl 8d0211a11e reveting modifaction to __ast_module_user_remove
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42965 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-15 05:00:27 +00:00
file 72f5cefffd Tweak changes that went in on revision 42891
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42910 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-13 22:45:44 +00:00
anthonyl 21aead3d65 small fix for 7944
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42891 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-13 19:27:27 +00:00
file a3f259c971 Merged revisions 42600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r42600 | file | 2006-09-09 16:24:19 -0400 (Sat, 09 Sep 2006) | 2 lines

Only truly consider the channel in the same format if the format matches the raw format OR if a translation path already exists to translate between them. (issue #7887 reported by softins & issue #7803 reported by alvaro_palma_aste). Thanks goes to stubert for giving me access to a box and showing me a scenario where this occured.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42601 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09 20:25:45 +00:00
file 858ae616c9 Optimize a bit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42583 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09 19:12:52 +00:00
file e383986a90 It's another round of RTP updates!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42569 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09 18:07:59 +00:00
file 809b2f32c0 Merged revisions 42452 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r42452 | file | 2006-09-08 14:50:43 -0400 (Fri, 08 Sep 2006) | 2 lines

Swap spies during masquerading

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42453 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-08 18:53:41 +00:00
file 406b26d6b6 whentohangup is already in seconds, just need to convert to milliseconds
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42374 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-08 02:54:45 +00:00
file f944addb40 Merged revisions 42260 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r42260 | file | 2006-09-07 12:30:44 -0400 (Thu, 07 Sep 2006) | 2 lines

Let's use the same thing we use in other places to calculate our time for ast_cond_timedwait (issue #7697 reported by bn999)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42261 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07 16:33:02 +00:00
murf 6a369f9e53 Made changes corresponding to those in 1.2 here in main/logger.c for bug 7544.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42208 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07 03:35:42 +00:00
kpfleming b3c4a6a9e7 don't try to get the length of the string in the ast_dynamic_str object unless we know there is actually one there
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42185 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07 00:41:27 +00:00
file ec85d0702c Remove old unused functions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41974 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-04 03:18:12 +00:00
file c345657f48 Make the difference clear about what the responsibilities of the core and a spy are when it comes to spying on a channel. The core is responsible for adding a spy to a channel, feeding frames into the spy, removing the spy from the channel, and notifying the spy that is has been detached. The spy is responsible for reading frames in, and cleaning itself up. Each side will not try to do the other's job.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41959 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 23:30:37 +00:00
russell 96aba6e67c Add the ability to specify that a frame should not be considered for caching
for uses in cases where you *know* that it will do no good.  This patch was
inspired by file for use in some work of his on mixmonitor/chanspy.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 23:14:54 +00:00
russell 340c6f047b when calling this function to append to a dynamic string and the buffer was not
large enough and had to be reallocated, cut off the partially appended data.
Otherwise, the function will get called over and over again appending to the
end every time and never thinking it has enough room.

Thanks to jmls for access to his machine for debugging!

(issue #7691)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41944 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 22:56:01 +00:00
bweschke 2dfdcd3b53 Provide a little more protection to make sure that a MOH class is specified when using the 'm' option with WaitExten, and prevent a segfault in the process.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41930 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 21:26:04 +00:00
bweschke fde2dce41e Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk-dev.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41916 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 20:44:14 +00:00
file e6175430aa Tweak the if statement a bit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41865 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 16:44:49 +00:00
russell 8ff967956b Don't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
very stupid thing to do.  It ends up duplicating the frame twice, linking in
one of them and setting the tail pointer to the other one.  Sorry ...

Thanks to file for pointing out the breakage!!!  file rocks.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41864 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 16:41:02 +00:00
file 3facfd8cd2 Unbridge the RTP streams at the correct place
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41735 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 18:57:10 +00:00
file 99355c0ba4 If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41718 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 17:54:22 +00:00
file a99e74477a You see nothing...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41696 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 16:50:02 +00:00
murf 709b82f1b4 Another formatting update for PCadach.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41695 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 16:48:06 +00:00
file 56c64cbe57 0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41694 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 16:40:18 +00:00
file e46eb0e63e Merged revisions 41690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r41690 | file | 2006-09-01 12:28:08 -0400 (Fri, 01 Sep 2006) | 2 lines

Don't treat an unexpected control subclass as voice (issue #7858 reported by PCadach)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41693 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 16:34:57 +00:00
murf 82dc9e6325 PCadach wanted better formatting of those 'if' conditions for 7859.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41692 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 16:33:22 +00:00
murf 04df54629e This small tweek will hopefully fix 7859, and silence all possible others
along that line.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01 15:57:05 +00:00
file 43c75db33e Tweak the DTMF muting stuff a bit to take into account VLDTMF and compensation.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41632 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 21:00:16 +00:00
file b62bb5fe75 Ignore DTMF begin frames in the waitstream core so that we don't get duplicate digits in our extension match
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41611 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 19:03:13 +00:00
file e4b13479c6 Don't fail the write if they try to write a NULL or IAX frame as we just ignore these.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 18:47:51 +00:00
file 73641d61f2 Add new frame types for DTMF
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 18:21:00 +00:00
file 2495e281f8 Only write a received packet out if we are actually bridged to something
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41574 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 14:46:46 +00:00
file 3f22aa53af Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 01:59:02 +00:00
kpfleming fbe5134cb5 change default setting for autofallthrough
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41475 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 21:44:05 +00:00
russell c89b5d734e fix a bug introduced when I merged my frame caching branch. Queue the
translated frame to the spies, *not* the original frame.  Thanks PCadach!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41389 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 17:07:07 +00:00
file ea048584fa Clarify what show translations is displaying a bit more (issue #7772 reported by Mithraen)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41373 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 16:04:24 +00:00
file 86ce29fef8 Print what read-only variable is being set so that the user doesn't have to guess and figure it out or look at the list in cdr.c and match it up (issue #7831 reported by sedwards)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41357 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 15:15:06 +00:00
file 48e444da01 Only feed a DTMF frame into the core if we need to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41338 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 14:57:06 +00:00
file e295dc6f8b Only switch the second alert fd (which is RTCP) to callback mode if it is in use
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41317 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 03:18:04 +00:00
file 888a9a8bb1 Use an API call (ast_rtp_get_bridged) to return the RTP stream we are bridged to, and also use it in chan_sip so we know to ignore the no RTP activity checking
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41316 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 03:16:03 +00:00
file 52d9462a76 If the RTP stack is already being operated in callback mode, then suspend it upon switching to P2P callback bridging. Once P2P callback bridging has ended, then restore callback mode.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41303 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 01:29:59 +00:00
file e48e648964 This is the last round of RTP bridge optimizations. Basically it introduces a way that under a straight bridge (ie: no transcoding and no DTMF detection) the core is not touched at all and no frames pass through (not even null frames). This is accomplished by stealing the file descriptors from the channel and using the provided IO context with a custom callback. When a channel is placed on hold this bridge is broken so audio can flow from the core to the other side. When a channel is off hold this bridge is re-established.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41302 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30 01:22:46 +00:00
file 1c3d04e2a8 Move the direct bridge write to after the NAT handling code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41285 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29 23:41:16 +00:00
murf bd80958009 This change fixes bug 7820. Way back in April this bug was reintroduced, it appears, when a bunch of restructuring was done. This code was basically left out during the restructuring. In the case of the failure in 7820, it is trying to match the extension _x. with _x., and failing, because the 'x' should only match 0 thru 9. I **could** upgrade the code so that that N,Z, and X match not only their intended number ranges, but also N,Z,and X respectively. And, moreover, X could also match N and Z, and Z could also match N. I have no idea why this bug took so long to turn up. I have no idea what a more thorough treatment of the code would do to working code, either. So I left it as it ***was***.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29 23:08:42 +00:00
russell 53f8d43e29 Merge team/russell/frame_caching
There are some situations in Asterisk where ast_frame and/or iax_frame
structures are rapidly allocatted and freed (at least 50 times per second
for one call).

This code significantly improves the performance of ast_frame_header_new(), 
ast_frdup(), ast_frfree(), iax_frame_new(), and iax_frame_free() by keeping
a thread-local cache of these structures and using frames from the cache 
whenever possible instead of calling malloc/free every time.

This commit also converts the ast_frame and iax_frame structures to use the
linked list macros.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41278 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29 20:50:36 +00:00
file 77be2d9b78 Merge in RTP-level packet bridging. Packet comes in, packet goes out - that's what RTP-level packet bridging is all about!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-28 17:37:56 +00:00
kpfleming 0ba6df7e01 GNU make already knows how to quietly ignore non-existent files in 'include' directives
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26 23:58:47 +00:00
kpfleming d60ef591f3 ensure that unload_dynamic_module won't continue dereferencing a module pointer after the module has been unloaded from memory
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26 19:45:16 +00:00
kpfleming 1773d7b4fe ensure that cross-compiler info is removed from the enviroment before configuring menuselect
ensure that the user's LDFLAGS take precedence when linking the final binary


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41178 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26 17:05:38 +00:00
kpfleming da5141501b more optimizations for embedded systems:
when LOADABLE_MODULES is off, don't export symbols from the main binary
  when LOADABLE_MODULES is off, and the compiler/linker support it, strip out code not used in the final binary


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41166 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26 16:45:35 +00:00
russell f75dd37adb Identify what the columns mean in the output of "show profile"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41118 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25 18:05:28 +00:00
tilghman ce7f125edd Off by one error in buffer length (issue 7379)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41103 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25 17:48:34 +00:00