asterisk/asterisk.git
13 years agoMerged revisions 48577 via svnmerge from
Kevin P. Fleming [Tue, 19 Dec 2006 14:57:45 +0000 (14:57 +0000)]
Merged revisions 48577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48577 | kpfleming | 2006-12-19 08:57:09 -0600 (Tue, 19 Dec 2006) | 2 lines

use the proper variable type for these unixODBC API calls, eliminating warnings on 64-bit platforms that use the 'new' 64-bit types for ODBC API calls

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48578 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agointroduce a temporary variable for tmp->chan to shorten expressions.
Luigi Rizzo [Tue, 19 Dec 2006 09:58:40 +0000 (09:58 +0000)]
introduce a temporary variable for tmp->chan to shorten expressions.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48575 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agostop what i think is a memory leak in case Dial fails to
Luigi Rizzo [Tue, 19 Dec 2006 09:33:57 +0000 (09:33 +0000)]
stop what i think is a memory leak in case Dial fails to
connect to a channel.

Before committing to 1.4 i would like some other people to
review and test this fix - thanks.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48574 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomove a large block related to privacy handling to a separate function.
Luigi Rizzo [Tue, 19 Dec 2006 09:15:23 +0000 (09:15 +0000)]
move a large block related to privacy handling to a separate function.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48573 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48571 via svnmerge from
Joshua Colp [Tue, 19 Dec 2006 03:47:44 +0000 (03:47 +0000)]
Merged revisions 48571 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48571 | file | 2006-12-18 22:46:12 -0500 (Mon, 18 Dec 2006) | 2 lines

Use env -i to start a fresh environment when going to build menuselect. This is more portable then using unset. (issue #8543 reported by jtodd)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48572 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agounbreak the macro used for incrementing the frame counters.
Luigi Rizzo [Mon, 18 Dec 2006 17:44:18 +0000 (17:44 +0000)]
unbreak the macro used for incrementing the frame counters.

I don't know when the bug was introduced, but with the typical usage

c->fin = FRAMECOUNT_INC(c->fin)

the frame counters stay to 0.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48568 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoClean up find_idle_thread function and use atomic operations for dynamic thread count.
Joshua Colp [Mon, 18 Dec 2006 17:30:53 +0000 (17:30 +0000)]
Clean up find_idle_thread function and use atomic operations for dynamic thread count.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48567 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48564 via svnmerge from
Joshua Colp [Mon, 18 Dec 2006 17:18:18 +0000 (17:18 +0000)]
Merged revisions 48564 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48564 | file | 2006-12-18 12:15:49 -0500 (Mon, 18 Dec 2006) | 2 lines

Put thread into proper list if we abort handling due to an error, and also hold the lock while putting it back into the proper idle list so we don't prematurely get a signal. (issue #8604 reported by arkadia)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48565 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoctrl-w != w (nano search) (surprisingly, the fix was ever so slightly different...
Jason Parker [Mon, 18 Dec 2006 16:57:24 +0000 (16:57 +0000)]
ctrl-w != w  (nano search)  (surprisingly, the fix was ever so slightly different in 1.4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48563 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoBlocked revisions 48561 via svnmerge
Jason Parker [Mon, 18 Dec 2006 16:56:44 +0000 (16:56 +0000)]
Blocked revisions 48561 via svnmerge

........
r48561 | qwell | 2006-12-18 10:55:46 -0600 (Mon, 18 Dec 2006) | 2 lines

ctrl-w != w  (nano search)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48562 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoapply the proposed fix for bug 8602
Luigi Rizzo [Mon, 18 Dec 2006 16:24:44 +0000 (16:24 +0000)]
apply the proposed fix for bug 8602
http://bugs.digium.com/view.php?id=8602
(i am not sure if there is still missing cast in
front of the alloca() call - being a macro this is
probably triggered only when actually used).

Add function ast_str_reset() to reinitialize the
string to an empty string instead of playing with
the internal fields.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48560 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoconvert the final clients of ast_build_string to use ast_str_*()
Luigi Rizzo [Mon, 18 Dec 2006 15:38:50 +0000 (15:38 +0000)]
convert the final clients of ast_build_string to use ast_str_*()

Now the only module left using it is chan_sip.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48559 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agodebugging shows that we always need more than 128 bytes
Luigi Rizzo [Mon, 18 Dec 2006 15:36:31 +0000 (15:36 +0000)]
debugging shows that we always need more than 128 bytes
for the verbose and logging messages so start with a
larger buffer from the beginning.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48558 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48554 via svnmerge from
Kevin P. Fleming [Mon, 18 Dec 2006 11:59:48 +0000 (11:59 +0000)]
Merged revisions 48554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48554 | kpfleming | 2006-12-18 05:59:24 -0600 (Mon, 18 Dec 2006) | 3 lines

remove some now-unnecessary explicit includes of autoconfig.h
clean up per-file dependencies during 'make clean'

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48555 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoReplace ast_build_string with ast_str_*().
Luigi Rizzo [Mon, 18 Dec 2006 11:28:37 +0000 (11:28 +0000)]
Replace ast_build_string with ast_str_*().

On passing remove presumably duplicate code to generate
the message for the manager_hooks:

in the previous version, the message was almost the same as the one sent
to regular sessions, with the exception of the empty line at the end, and
a few (presumably unintentional) differences e.g.  timestamps,
debugging, and lowercase headers for "event" and "privilege".

now we reuse the same message as before.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48553 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoreplace ast_build_string() with ast_str_*().
Luigi Rizzo [Sun, 17 Dec 2006 22:57:46 +0000 (22:57 +0000)]
replace ast_build_string() with ast_str_*().

Unless i am very mistaken, function_realtime_read() was
broken in that it would always return an empty string
(because ast_build_string() advanced the pointer to the
end of the string, and there was no reference to the
initial value.

This commit should fix this problem.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48551 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoreplace ast_build_string() with ast_str_*();
Luigi Rizzo [Sun, 17 Dec 2006 22:47:30 +0000 (22:47 +0000)]
replace ast_build_string() with ast_str_*();

simplify __queues_show()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48550 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48548 via svnmerge from
Kevin P. Fleming [Sun, 17 Dec 2006 18:33:53 +0000 (18:33 +0000)]
Merged revisions 48548 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48548 | kpfleming | 2006-12-17 12:33:24 -0600 (Sun, 17 Dec 2006) | 2 lines

need an additional argument here to make the downloads actually occur

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48549 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agodefine a mask SIP_INSECURE sam as for other sets of flags.
Luigi Rizzo [Sun, 17 Dec 2006 12:47:08 +0000 (12:47 +0000)]
define a mask SIP_INSECURE sam as for other sets of flags.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48543 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48528 via svnmerge from
Kevin P. Fleming [Sat, 16 Dec 2006 21:38:10 +0000 (21:38 +0000)]
Merged revisions 48528 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48528 | kpfleming | 2006-12-16 15:34:41 -0600 (Sat, 16 Dec 2006) | 2 lines

use m4 quoting for AC_MSG_NOTICE calls, to keep these calls from thinking they have multiple arguments

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48529 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48525 via svnmerge from
Kevin P. Fleming [Sat, 16 Dec 2006 21:24:52 +0000 (21:24 +0000)]
Merged revisions 48525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48525 | kpfleming | 2006-12-16 15:14:34 -0600 (Sat, 16 Dec 2006) | 2 lines

simplify dependency tracking system, using the compiler's built-in method for generating them, and only doing dependency tracking if developer mode is enabled via the configure script

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48527 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoupdate to use trunk's version of the threadstorage API
Kevin P. Fleming [Sat, 16 Dec 2006 21:24:08 +0000 (21:24 +0000)]
update to use trunk's version of the threadstorage API

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48526 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48521 via svnmerge from
Kevin P. Fleming [Sat, 16 Dec 2006 20:19:19 +0000 (20:19 +0000)]
Merged revisions 48521 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48521 | kpfleming | 2006-12-16 14:12:41 -0600 (Sat, 16 Dec 2006) | 2 lines

since we really, really have to have autoconfig.h included before all other headers (especially system headers), the Makefile will now force it to happen (this will fix build problems with files like ast_expr2f.c, where we can't control the inclusion order in the file itself)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48522 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoforgot this part...
Luigi Rizzo [Sat, 16 Dec 2006 11:23:07 +0000 (11:23 +0000)]
forgot this part...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48520 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoanother conversion from ast_build_str to ast_str
Luigi Rizzo [Sat, 16 Dec 2006 09:56:31 +0000 (09:56 +0000)]
another conversion from ast_build_str to ast_str

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48517 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoconvert ast_build_str to ast_str_*
Luigi Rizzo [Sat, 16 Dec 2006 09:46:20 +0000 (09:46 +0000)]
convert ast_build_str to ast_str_*

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48516 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoreplace ast_build_string() with ast_str_*() functions.
Luigi Rizzo [Sat, 16 Dec 2006 09:33:31 +0000 (09:33 +0000)]
replace ast_build_string() with ast_str_*() functions.
This makes the code easier to follow and saves some
copies to intermediate buffers.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48515 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48513 via svnmerge from
Kevin P. Fleming [Sat, 16 Dec 2006 04:25:46 +0000 (04:25 +0000)]
Merged revisions 48513 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48513 | kpfleming | 2006-12-15 22:25:09 -0600 (Fri, 15 Dec 2006) | 2 lines

instead of initializing the curl library every time the CURL() function is invoked, do it only once per thread (this allows multiple calls to CURL() in the dialplan for a channel to run much more quickly, and also to re-use connections to the server) (thanks to JerJer for frequently complaining about this performance problem)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoprevent a compiler warning
Luigi Rizzo [Sat, 16 Dec 2006 02:42:53 +0000 (02:42 +0000)]
prevent a compiler warning

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48512 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agosimplify the ast_dynamic_str_*.... routines by
Luigi Rizzo [Fri, 15 Dec 2006 23:10:42 +0000 (23:10 +0000)]
simplify the ast_dynamic_str_*.... routines by
renaming them to ast_str ... and putting the
struct ast_threadstorage pointer into the struct ast_str.

This makes the code a lot more readable.

At this point we can use these routines also to
replace ast_build_string().

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48510 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomove the dynamic string support in a better place i.e. string.h
Luigi Rizzo [Fri, 15 Dec 2006 22:08:46 +0000 (22:08 +0000)]
move the dynamic string support in a better place i.e. string.h

While doing this, add a bit of documentation, and slightly
extend the functionality as follows:
 + a max_len of -1 means that we take whatever the current size
   is, and never try to extend the buffer;
 + add support for alloca()-ted dynamic strings, which is very
   useful for all cases where we do an ast_build_string() now.

Next step is to simplify the interface by using shorter names
(e.g. ast_str as a prefix) and removing the _thread variant
of the functions by saving the threadstorage reference into
the struct ast_str. This can be done by overloading the
'type' field.

Finally, I will do my best to remove the convoluted interface
that results from trying to support platforms without va_copy().

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48509 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove a duplicate include
Luigi Rizzo [Fri, 15 Dec 2006 22:00:48 +0000 (22:00 +0000)]
remove a duplicate include

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48508 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48506 via svnmerge from
Joshua Colp [Fri, 15 Dec 2006 19:57:04 +0000 (19:57 +0000)]
Merged revisions 48506 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48506 | file | 2006-12-15 14:55:28 -0500 (Fri, 15 Dec 2006) | 2 lines

Turn payload_lock into bridge_lock and make it encompass all RTP structure contents that may relate to bridge information, including who we are bridged to.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48507 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48504 via svnmerge from
Joshua Colp [Fri, 15 Dec 2006 19:40:29 +0000 (19:40 +0000)]
Merged revisions 48504 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48504 | file | 2006-12-15 14:38:51 -0500 (Fri, 15 Dec 2006) | 2 lines

Hold call structure lock in places where a qualify or peer action can destroy it.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48505 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48502 via svnmerge from
Joshua Colp [Fri, 15 Dec 2006 19:26:45 +0000 (19:26 +0000)]
Merged revisions 48502 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48502 | file | 2006-12-15 14:24:15 -0500 (Fri, 15 Dec 2006) | 2 lines

Lock network retransmission queue in all places that it is used.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48503 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agounbreak the output for http session.
Luigi Rizzo [Fri, 15 Dec 2006 18:37:29 +0000 (18:37 +0000)]
unbreak the output for http session.

Not long ago i replaced lseek() with fseek() but
forgot that filr FILE's you need ftell to
give you the current position.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48501 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove ast_safe_string_alloc() - it is completely
Luigi Rizzo [Fri, 15 Dec 2006 15:44:59 +0000 (15:44 +0000)]
remove ast_safe_string_alloc() - it is completely
equivalent to asprintf().

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48499 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoreplace ast_safe_string_alloc() with asprintf()
Luigi Rizzo [Fri, 15 Dec 2006 15:40:57 +0000 (15:40 +0000)]
replace ast_safe_string_alloc() with asprintf()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48498 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoreplace ast_safe_string_alloc() with asprintf()
Luigi Rizzo [Fri, 15 Dec 2006 15:39:29 +0000 (15:39 +0000)]
replace ast_safe_string_alloc() with asprintf()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48497 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agosmall documentation improvements.
Luigi Rizzo [Fri, 15 Dec 2006 14:33:59 +0000 (14:33 +0000)]
small documentation improvements.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48495 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoDoxygen changes
Olle Johansson [Fri, 15 Dec 2006 13:36:34 +0000 (13:36 +0000)]
Doxygen changes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48491 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoIssue #8592 - treat 504 as congestion (imported from 1.2/1.4)
Olle Johansson [Fri, 15 Dec 2006 10:58:36 +0000 (10:58 +0000)]
Issue #8592 - treat 504 as congestion (imported from 1.2/1.4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48488 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoUpdate to latest IANA specs
Olle Johansson [Fri, 15 Dec 2006 10:54:06 +0000 (10:54 +0000)]
Update to latest IANA specs

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48485 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoAdd support to see what holds the lock when doing trylock.
Joshua Colp [Fri, 15 Dec 2006 06:34:29 +0000 (06:34 +0000)]
Add support to see what holds the lock when doing trylock.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48480 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48478 via svnmerge from
Joshua Colp [Fri, 15 Dec 2006 06:31:26 +0000 (06:31 +0000)]
Merged revisions 48478 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48478 | file | 2006-12-15 01:28:05 -0500 (Fri, 15 Dec 2006) | 2 lines

Use a wakeup variable so that we don't wait on IO indefinitely if packets need to be retransmitted.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48479 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoconstify ast_state2str() and note it is not reentrant.
Luigi Rizzo [Fri, 15 Dec 2006 04:03:42 +0000 (04:03 +0000)]
constify ast_state2str() and note it is not reentrant.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48477 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove the macro LOAD_OH and expand it inline in the only
Luigi Rizzo [Fri, 15 Dec 2006 03:59:31 +0000 (03:59 +0000)]
remove the macro LOAD_OH and expand it inline in the only
place where it was used.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48476 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48472 via svnmerge from
Joshua Colp [Thu, 14 Dec 2006 17:39:16 +0000 (17:39 +0000)]
Merged revisions 48472 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48472 | file | 2006-12-14 12:36:12 -0500 (Thu, 14 Dec 2006) | 2 lines

Payload values on the RTP structure can change AFTER a bridge has started. This comes from the packet handling of the SIP response when indication that it was answered has been sent. Therefore we need to protect this data with a lock when we read/write. (issue #8232 reported by tgrman)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48473 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48461 via svnmerge from
Joshua Colp [Thu, 14 Dec 2006 03:39:39 +0000 (03:39 +0000)]
Merged revisions 48461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48461 | file | 2006-12-13 22:33:30 -0500 (Wed, 13 Dec 2006) | 2 lines

Remove direct RTCP bridging. I've come to the conclusion that we should handle this through the core and not just forward it on. Should solve a few bugs.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48462 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomake sure that showdialplan sends only one
Luigi Rizzo [Wed, 13 Dec 2006 23:08:02 +0000 (23:08 +0000)]
make sure that showdialplan sends only one
'Response: Success ' message even in case of
a recursive call.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48459 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoclean up function manager_show_dialplan_helper()
Luigi Rizzo [Wed, 13 Dec 2006 22:54:41 +0000 (22:54 +0000)]
clean up function manager_show_dialplan_helper()
reducing indentation and normalizing loops.

While doing this, remove some unused variables,
fix an uninitialized string (idaction), and mark
some places where the behaviour is not what we would expect
(e.g. an empty context is reported as an error same as
a non-existent one). Given that this function is
not in 1.4, the above can be changed without too many
backward compatibility concerns.

Not applicable to 1.4 or below.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48458 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agosupport for deactivating translation paths that are no longer available
Matt O'Gorman [Wed, 13 Dec 2006 21:23:54 +0000 (21:23 +0000)]
support for deactivating translation paths that are no longer available
and more descriptive show transcoder cli command.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48455 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agorevert check for a zaptel transcoder related definition that was done in the
Russell Bryant [Wed, 13 Dec 2006 00:56:30 +0000 (00:56 +0000)]
revert check for a zaptel transcoder related definition that was done in the
wrong module.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48433 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48427 via svnmerge from
Kevin P. Fleming [Tue, 12 Dec 2006 23:28:15 +0000 (23:28 +0000)]
Merged revisions 48427 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48427 | kpfleming | 2006-12-12 17:18:14 -0600 (Tue, 12 Dec 2006) | 2 lines

when making a release, we can always use wget and we can't run the configure script to find that out...

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48432 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFix various spelling mistakes in comments.
Russell Bryant [Tue, 12 Dec 2006 22:32:20 +0000 (22:32 +0000)]
Fix various spelling mistakes in comments.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48417 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake chan_zap inform you that your version of zaptel is too old instead of
Russell Bryant [Tue, 12 Dec 2006 22:27:22 +0000 (22:27 +0000)]
Make chan_zap inform you that your version of zaptel is too old instead of
just failing to compile.

It seems like the proper way to do this would be in the configure script.
However, that wouldn't help existing checkouts unless we forced the configure
script to be executed after any code was changed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48416 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agofixed nubb error on my part, transcoder now unlocks and locks correctly, as well...
Matt O'Gorman [Tue, 12 Dec 2006 19:55:39 +0000 (19:55 +0000)]
fixed nubb error on my part, transcoder now unlocks and locks correctly, as well as counts in the correct direction.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48415 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoproperly initialize a malloc'ed buffer
Luigi Rizzo [Tue, 12 Dec 2006 10:36:15 +0000 (10:36 +0000)]
properly initialize a malloc'ed buffer

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48410 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agonormalize the scanning of "general" options in the config file.
Luigi Rizzo [Tue, 12 Dec 2006 10:35:10 +0000 (10:35 +0000)]
normalize the scanning of "general" options in the config file.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48409 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake sure tab-completion works even when we have typed a fully
Luigi Rizzo [Tue, 12 Dec 2006 09:40:45 +0000 (09:40 +0000)]
Make sure tab-completion works even when we have typed a fully
matching word (e.g. "sip<TAB>"); this is implemented by this one-line change

-               for (;; dst++, src += n) {
+               for (;src < argindex; dst++, src += n) {

However this code is not exactly trivial to understand, so
i am also adding some comments to help figuring out what it does.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48408 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48401 via svnmerge from
Joshua Colp [Tue, 12 Dec 2006 04:14:50 +0000 (04:14 +0000)]
Merged revisions 48401 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48401 | file | 2006-12-11 23:13:48 -0500 (Mon, 11 Dec 2006) | 2 lines

Use S_OR in my previous app_voicemail. This is the way it should have been done.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48402 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48399 via svnmerge from
Matt O'Gorman [Mon, 11 Dec 2006 23:02:47 +0000 (23:02 +0000)]
Merged revisions 48399 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.4

........
r48399 | mogorman | 2006-12-11 17:02:10 -0600 (Mon, 11 Dec 2006) | 2 lines

new sounds package with 100% more silence

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48400 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48396 via svnmerge from
Matt O'Gorman [Mon, 11 Dec 2006 22:31:20 +0000 (22:31 +0000)]
Merged revisions 48396 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.4

................
r48396 | mogorman | 2006-12-11 16:11:35 -0600 (Mon, 11 Dec 2006) | 12 lines

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

........
r48394 | mogorman | 2006-12-11 15:55:43 -0600 (Mon, 11 Dec 2006) | 4 lines

app_externalivr needs a real silence file, and additional
changes to add silence files into core instead of extra
patch provided by bug 8177 with minor additions.

........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48397 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48391 via svnmerge from
Joshua Colp [Mon, 11 Dec 2006 21:35:28 +0000 (21:35 +0000)]
Merged revisions 48391 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48391 | file | 2006-12-11 16:31:23 -0500 (Mon, 11 Dec 2006) | 2 lines

Return non-existant callerid handling to that which it was before. In 1.4 and trunk callerid can be allocated but not have any contents so we have to use ast_strlen_zero before passing it to the relevant functions. (issue #8567 reported by pabelanger)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoadd support for dynamic channel creation and destruction, and
Matt O'Gorman [Mon, 11 Dec 2006 21:04:41 +0000 (21:04 +0000)]
add support for dynamic channel creation and destruction, and
show transcoder to show number of channels in use.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48390 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomake sure the argument to ast_malloc() is > 0.
Luigi Rizzo [Mon, 11 Dec 2006 18:11:58 +0000 (18:11 +0000)]
make sure the argument to ast_malloc() is > 0.

Long explaination:

The behaviour of the underlying malloc(0) differs depending on the
operating system.  Some return NULL (SysV behaviour); some still
allocate a small chunk of memory and return a valid pointer (e.g.
traditional BSD); some (e.g. FreeBSD 6.x) return a non-null pointer
that causes a memory fault if used, even just for reading.

Given the above variety, better never call malloc(0).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoThis update fixes the problem reported in bug 8551; that ast_app_getdata() behaves...
Steve Murphy [Mon, 11 Dec 2006 17:00:36 +0000 (17:00 +0000)]
This update fixes the problem reported in bug 8551; that ast_app_getdata() behaves differently in trunk for the case of a null prompt.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48388 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48382 via svnmerge from
Tilghman Lesher [Mon, 11 Dec 2006 05:40:38 +0000 (05:40 +0000)]
Merged revisions 48382 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48382 | tilghman | 2006-12-10 23:37:09 -0600 (Sun, 10 Dec 2006) | 2 lines

STRFTIME() does not actually require an argument (issue 8540)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48384 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48381 via svnmerge from
Joshua Colp [Mon, 11 Dec 2006 05:38:57 +0000 (05:38 +0000)]
Merged revisions 48381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48381 | file | 2006-12-11 00:36:45 -0500 (Mon, 11 Dec 2006) | 2 lines

Merge in my latest RTP changes. Break out RTP and RTCP callback functions so they no longer share a common one.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48383 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48379 via svnmerge from
Joshua Colp [Mon, 11 Dec 2006 05:34:53 +0000 (05:34 +0000)]
Merged revisions 48379 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48379 | file | 2006-12-11 00:30:01 -0500 (Mon, 11 Dec 2006) | 2 lines

Use the correct API call to say a device state changed. (Yes, I'm a nub.)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48380 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48377 via svnmerge from
Joshua Colp [Mon, 11 Dec 2006 05:01:37 +0000 (05:01 +0000)]
Merged revisions 48377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48377 | file | 2006-12-10 23:57:38 -0500 (Sun, 10 Dec 2006) | 2 lines

Don't access the conference structure after it has been freed.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48375 via svnmerge from
Tilghman Lesher [Mon, 11 Dec 2006 00:52:19 +0000 (00:52 +0000)]
Merged revisions 48375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48375 | tilghman | 2006-12-10 18:47:21 -0600 (Sun, 10 Dec 2006) | 13 lines

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

........
r48374 | tilghman | 2006-12-10 18:33:59 -0600 (Sun, 10 Dec 2006) | 5 lines

When doing a fork() and exec(), two problems existed (Issue 8086):
1) Ignored signals stayed ignored after the exec().
2) Signals could possibly fire between the fork() and exec(), causing Asterisk
signal handlers within the child to execute, which caused nasty race conditions.

........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48376 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48372 via svnmerge from
Steve Murphy [Sun, 10 Dec 2006 03:14:27 +0000 (03:14 +0000)]
Merged revisions 48372 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48372 | murf | 2006-12-09 20:04:18 -0700 (Sat, 09 Dec 2006) | 9 lines

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

........
r48371 | murf | 2006-12-09 19:14:13 -0700 (Sat, 09 Dec 2006) | 1 line

This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels).
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoconvert the thread IO state and type to use enums.
Russell Bryant [Sat, 9 Dec 2006 16:44:41 +0000 (16:44 +0000)]
convert the thread IO state and type to use enums.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48365 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48363 via svnmerge from
Russell Bryant [Sat, 9 Dec 2006 16:04:06 +0000 (16:04 +0000)]
Merged revisions 48363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48363 | russell | 2006-12-09 10:59:42 -0500 (Sat, 09 Dec 2006) | 8 lines

Use locking when accessing the registrations list.  This list is not actually
used very often, so the likelihood of there being a problem is pretty small,
but still possible.  For example, if the CLI command to list the registrations
was called at the same time that a reload was occurring and the registrations
list was getting destroyed and rebuilt, a crash could occur.

In passing, go ahead and convert this list to use the linked list macros.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48364 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agochan_iax2 has an extremely large function, socket_process(), to handle incoming
Russell Bryant [Sat, 9 Dec 2006 07:10:55 +0000 (07:10 +0000)]
chan_iax2 has an extremely large function, socket_process(), to handle incoming
frames.  The function, before this commit, was roughly 1400 lines long.  So, I
am working on breaking this up into functions so that the code is easier to
follow and debug.  Also, I will be committing these changes in chunks as I do
them to ease tracking down any potentially introduced problems.

Break out roughly 150 lines from socket_process() and introduce a new function,
socket_process_meta() which handles the parsing of an incoming meta frame.
Also, restructure some of this code a bit to reduce the deep nesting that was
in this code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48360 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years ago- Fix a few spelling mistakes
Russell Bryant [Sat, 9 Dec 2006 05:04:38 +0000 (05:04 +0000)]
- Fix a few spelling mistakes
- Use sizeof() to pass an array size to a function
- Use a single bit for a variable in the chan_iax2_pvt stuct since that is all
  it needs.
- Add some comments about the iaxs, iaxl, and lastused arrays.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48359 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48357 via svnmerge from
Russell Bryant [Thu, 7 Dec 2006 18:21:21 +0000 (18:21 +0000)]
Merged revisions 48357 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48357 | russell | 2006-12-07 13:17:28 -0500 (Thu, 07 Dec 2006) | 11 lines

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

........
r48356 | russell | 2006-12-07 13:14:13 -0500 (Thu, 07 Dec 2006) | 3 lines

Ensure that the file position is not incremented beyond the total number of
files available for playback.  (issue #8539, ulogic)

........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48358 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years ago- Generalize the function ssl_setup() so that the certificate info
Luigi Rizzo [Thu, 7 Dec 2006 16:42:29 +0000 (16:42 +0000)]
- Generalize the function ssl_setup() so that the certificate info
  are passed as an argument.

- Update the code in main/http.c to use the new interface
  (the diff is large but mostly mechanical, due to the name change of
  several variables);

- And since now it is trivial, implement "AMI over TLS", and document
  the possible options in manager.conf

- And since the test client (openssl s_client -connect host:port )
  does not generate \r\n as a line terminator, make get_input()
  also accept just a \n as a line terminator (Mac users: do you
  also need the \r-only version ?)

The option parsing in manager.conf is not very efficient, and needs
to be cleaned up and made similar to what we have in http.conf

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48351 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 47986,47995,47997,48001,48003-48004,48008-48014,48016,48018-48019...
Steve Murphy [Thu, 7 Dec 2006 16:03:56 +0000 (16:03 +0000)]
Merged revisions 47986,47995,47997,48001,48003-48004,48008-48014,48016,48018-48019 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r47986 | oej | 2006-11-24 07:00:19 -0700 (Fri, 24 Nov 2006) | 6 lines

Doxygen update
- Document cause codes
- Document a bit more on channel variables - global, predefined and local
- Fix some doxygen in channel.h. Adding one comment for two definitions does not
  work. They won't be copied to each.

................
r47995 | murf | 2006-11-24 10:40:49 -0700 (Fri, 24 Nov 2006) | 1 line

This fix inspired by a patch supplied in bug 8189, which points out problems with the PLC code
................
r47997 | murf | 2006-11-24 11:17:25 -0700 (Fri, 24 Nov 2006) | 1 line

removed the svnmerge-integrated property from trunk; it's confusing svnmerge in newly created branches
................
r48001 | rizzo | 2006-11-25 02:02:42 -0700 (Sat, 25 Nov 2006) | 5 lines

set pointers to NULL after freeing memory to avoid multiple free()

probably 1.4/1.2 issue as well if someone can look into that.

................
r48003 | oej | 2006-11-25 02:45:57 -0700 (Sat, 25 Nov 2006) | 9 lines

- Adding comment on suspicious memory allocation. Seems like it's never freed, but I don't
  have a clear understanding of the frame allocation/deallocation, so I just mark this
  for investigation. (Reported by Ed Guy). We're trying to see if a free() hurts...

- Doxygen comments on p2p rtp bridge stuff.  I am a bit worried about shortcutting
  rtcp this way, but will need feedback from rtcp gurus. This should work for
  video calls too, and possibly UDPTL.

................
r48004 | oej | 2006-11-25 02:48:30 -0700 (Sat, 25 Nov 2006) | 2 lines

Changing ERROR to lesser level. Imported from 1.2/1.4

................
r48008 | rizzo | 2006-11-25 10:37:04 -0700 (Sat, 25 Nov 2006) | 7 lines

generalize a bit the functions used to create an tcp socket
and then run a service on it.
The code in manager.c does essentially the same things,
so we will be able to reuse the code in here (probably
moving it to netsock.c or another appropriate library file).

................
r48009 | mattf | 2006-11-25 13:30:04 -0700 (Sat, 25 Nov 2006) | 1 line

Updates to show linkset command
................
r48010 | mattf | 2006-11-25 13:54:38 -0700 (Sat, 25 Nov 2006) | 2 lines

Add ss7 show linkset command

................
r48011 | mattf | 2006-11-25 14:32:33 -0700 (Sat, 25 Nov 2006) | 1 line

Make sure we don't send a group reset on a group larger than 32 CICs
................
r48012 | mattf | 2006-11-25 14:35:23 -0700 (Sat, 25 Nov 2006) | 1 line

bug fix
................
r48013 | mattf | 2006-11-25 14:46:58 -0700 (Sat, 25 Nov 2006) | 1 line

Make compiler happier
................
r48014 | mattf | 2006-11-25 14:50:42 -0700 (Sat, 25 Nov 2006) | 1 line

Little fix so we use the right message
................
r48016 | murf | 2006-11-25 17:15:42 -0700 (Sat, 25 Nov 2006) | 9 lines

Merged revisions 48015 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48015 | murf | 2006-11-25 17:01:34 -0700 (Sat, 25 Nov 2006) | 1 line

A little bit of func_cdr documentation upgrade-- no bug# involved, although 8221 may have inspired it.
........

................
r48018 | murf | 2006-11-25 17:31:13 -0700 (Sat, 25 Nov 2006) | 9 lines

Merged revisions 48017 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48017 | murf | 2006-11-25 17:26:16 -0700 (Sat, 25 Nov 2006) | 1 line

might as well also document the raw values of the flag vars
........

................
r48019 | russell | 2006-11-25 23:55:33 -0700 (Sat, 25 Nov 2006) | 6 lines

- Add some comments on thread storage with a brief explanation of what it is
  as well as what the motivation is for using it.
- Add a comment by the declaration of ast_inet_ntoa() noting that this function
  is not reentrant, and the result of a previous call to the function is no
  longer valid after calling it again.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48350 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove duplicated code to start the server threads, use
Luigi Rizzo [Wed, 6 Dec 2006 20:46:01 +0000 (20:46 +0000)]
remove duplicated code to start the server threads, use
the infrastructure exposed in http.c earlier today.

As a bonus, now we can restart the session on a different
port just reloading the module.

On passing, fix a bug in the handling of 'enabled' in the configuration
file - previously, a missing "enabled=" line in manager.conf meant
"whatever the state was before" instead of a specific value.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48338 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoPart of the transformations necessary to add TLS support,
Luigi Rizzo [Wed, 6 Dec 2006 18:45:19 +0000 (18:45 +0000)]
Part of the transformations necessary to add TLS support,
as described in
http://lists.digium.com/pipermail/asterisk-dev/2006-December/025213.html

In detail, this commit does the following:

b) change the function get_input() to use fread() instead of read()
   to collect the data. One can still do the ast_wait_for_input() on
   the original descriptor returned by accept().

c) change the function send_string() to work on the FILE *.
   As a side effect, this change now really guarantees that
   we don't spend more than "writetimeout" milliseconds on
   each line sent.

d) modify the function action_command() so that it creates a
   temporary file descriptor to be passed to ast_cli_command(),
   and then read back the data from the temp file and write it
   to the output with send_string(). The code is similar to
   what is done in generic_http_callback() to support AMI-over-HTTP.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48332 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoHandle multiple 487's correctly
Olle Johansson [Wed, 6 Dec 2006 16:54:27 +0000 (16:54 +0000)]
Handle multiple 487's correctly

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48327 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48323 via svnmerge from
Russell Bryant [Wed, 6 Dec 2006 16:19:01 +0000 (16:19 +0000)]
Merged revisions 48323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48323 | russell | 2006-12-06 11:15:45 -0500 (Wed, 06 Dec 2006) | 11 lines

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

........
r48322 | russell | 2006-12-06 11:05:54 -0500 (Wed, 06 Dec 2006) | 3 lines

Fix the name of the rtignoreregexpire option in the sample configuration file.
(issue #8526, arkadia)

........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48325 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake externally visible some generic code useful to create
Luigi Rizzo [Wed, 6 Dec 2006 16:17:57 +0000 (16:17 +0000)]
Make externally visible some generic code useful to create
and implement services over tcp and/or tcp-tls.

This commit is nothing more than moving structure definitions
(and documentation) from main/http.c to include/asterisk/http.h
(temporary location until we find a better place), and removing the
'static' qualifier from server_root() and server_start().

The name change (adding the ast_ prefix as a minimum, and then
possibly a more meaningful name) is postponed to future commits.

Does not apply to other versions of asterisk.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48324 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoDon't send Contact in SIP Messages (imported from 1.2/1.4).
Olle Johansson [Wed, 6 Dec 2006 12:34:58 +0000 (12:34 +0000)]
Don't send Contact in SIP Messages (imported from 1.2/1.4).
Reported by Gunnar at Omnitor.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48318 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoResolve some pointer signedness compiler warnings in app_osplookup, and
Russell Bryant [Wed, 6 Dec 2006 07:39:39 +0000 (07:39 +0000)]
Resolve some pointer signedness compiler warnings in app_osplookup, and
constify a bunch of usage strings for CLI commands.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48307 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoConstify a bunch of usage strings for CLI commands.
Russell Bryant [Wed, 6 Dec 2006 07:35:31 +0000 (07:35 +0000)]
Constify a bunch of usage strings for CLI commands.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48306 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoConstify a bunch of usage strings for CLI commands.
Russell Bryant [Wed, 6 Dec 2006 07:31:28 +0000 (07:31 +0000)]
Constify a bunch of usage strings for CLI commands.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48305 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoStaticize one, and Constify a bunch of usage strings for CLI commands.
Russell Bryant [Wed, 6 Dec 2006 07:28:56 +0000 (07:28 +0000)]
Staticize one, and Constify a bunch of usage strings for CLI commands.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48303 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoConstify a bunch of the usage strings for CLI commands.
Russell Bryant [Wed, 6 Dec 2006 07:23:32 +0000 (07:23 +0000)]
Constify a bunch of the usage strings for CLI commands.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48302 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoInstead of creating an unused instance of an unnamed enum, give it a name.
Russell Bryant [Wed, 6 Dec 2006 07:16:09 +0000 (07:16 +0000)]
Instead of creating an unused instance of an unnamed enum, give it a name.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48300 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake the "usage" member of the ast_cli_entry struct const to resolve a compiler
Russell Bryant [Wed, 6 Dec 2006 07:15:16 +0000 (07:15 +0000)]
Make the "usage" member of the ast_cli_entry struct const to resolve a compiler
warning.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48299 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoBlocked revisions 48281 via svnmerge
Jason Parker [Tue, 5 Dec 2006 20:52:37 +0000 (20:52 +0000)]
Blocked revisions 48281 via svnmerge

........
r48281 | file | 2006-12-05 14:45:28 -0600 (Tue, 05 Dec 2006) | 2 lines

Regenerate configure from Qwell's last commit.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48283 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoRegenerate configure for Qwell's last commit.
Joshua Colp [Tue, 5 Dec 2006 20:46:26 +0000 (20:46 +0000)]
Regenerate configure for Qwell's last commit.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48282 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 48279 via svnmerge from
Jason Parker [Tue, 5 Dec 2006 20:44:12 +0000 (20:44 +0000)]
Merged revisions 48279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48279 | qwell | 2006-12-05 14:42:52 -0600 (Tue, 05 Dec 2006) | 4 lines

Fix curl version number testing to be much more friendly to non-bash shells.

Issue 8508, patch by me.  This *SHOULD* be POSIX compliant now..

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48280 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoDoxygen updates
Olle Johansson [Tue, 5 Dec 2006 20:39:13 +0000 (20:39 +0000)]
Doxygen updates

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48277 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoExpand on r48273 (from issue 8506), to translate more of the fskmodem stuff to English.
Jason Parker [Tue, 5 Dec 2006 20:15:37 +0000 (20:15 +0000)]
Expand on r48273 (from issue 8506), to translate more of the fskmodem stuff to English.

r48273 dealt with the comments and such, this deals with the code itself.
(This couldn't have been easily done if it weren't for 48273 - thanks again for that merbanan)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48276 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoIssue #8506 - translate spanish comments in fskmodem to english (according to bug...
Olle Johansson [Tue, 5 Dec 2006 19:41:26 +0000 (19:41 +0000)]
Issue #8506 - translate spanish comments in fskmodem to english (according to bug guidelines)
Thanks merbanan!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48273 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoBlocking invitestate patch that is already merged to svn trunk.
Olle Johansson [Tue, 5 Dec 2006 17:34:55 +0000 (17:34 +0000)]
Blocking invitestate patch that is already merged to svn trunk.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48271 65c4cc65-6c06-0410-ace0-fbb531ad65f3