asterisk/asterisk.git
11 years agoAdd LINEKEYS variable to allow for a user to set the number of keys assigned to a...
Doug Bailey [Tue, 11 Nov 2008 16:46:17 +0000 (16:46 +0000)]
Add LINEKEYS variable to allow for a user to set the number of keys assigned to a line on a polycom phone

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

11 years agoRemove commentary from the issues list for SIP TCP/TLS
Russell Bryant [Tue, 11 Nov 2008 16:07:36 +0000 (16:07 +0000)]
Remove commentary from the issues list for SIP TCP/TLS

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

11 years agoMerged revisions 155861 via svnmerge from
Mark Michelson [Mon, 10 Nov 2008 21:14:44 +0000 (21:14 +0000)]
Merged revisions 155861 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r155861 | mmichelson | 2008-11-10 15:07:39 -0600 (Mon, 10 Nov 2008) | 14 lines

Channel drivers assume that when their indicate callback
is invoked, that the channel on which the callback was called
is locked. This patch corrects an instance in chan_agent where
a channel's indicate callback is called directly without first
locking the channel.

This was leading to some observed locking issues in chan_local,
but considering that all channel drivers operate under the
same expectations, the generic fix in chan_agent is the right
way to go.

AST-126

........

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

11 years agoMake documentation of update method match documentation and update update2
Tilghman Lesher [Mon, 10 Nov 2008 21:12:28 +0000 (21:12 +0000)]
Make documentation of update method match documentation and update update2
method to match.
Reported by: atis, via -dev mailing list.
Fixed by: me

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

11 years agoMerged revisions 155803 via svnmerge from
Tilghman Lesher [Mon, 10 Nov 2008 20:50:50 +0000 (20:50 +0000)]
Merged revisions 155803 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r155803 | tilghman | 2008-11-10 14:49:59 -0600 (Mon, 10 Nov 2008) | 1 line

  I got tired of saying this in every single bugnote referring to this file.
........

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

11 years agoFix memory leak when MALLOC_DEBUG is enabled.
Tilghman Lesher [Mon, 10 Nov 2008 18:04:30 +0000 (18:04 +0000)]
Fix memory leak when MALLOC_DEBUG is enabled.
(closes issue #13864)
 Reported by: eliel
 Patches:
       readline.c.patch uploaded by eliel (license 64)

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

11 years agoMove all the XML documentation API from pbx.c to xmldoc.c.
Eliel C. Sardanons [Mon, 10 Nov 2008 13:53:23 +0000 (13:53 +0000)]
Move all the XML documentation API from pbx.c to xmldoc.c.
Export the XML documentation API:
   ast_xmldoc_build_synopsis()
   ast_xmldoc_build_syntax()
   ast_xmldoc_build_description()
   ast_xmldoc_build_seealso()
   ast_xmldoc_build_arguments()
   ast_xmldoc_printable()
   ast_xmldoc_load_documentation()

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

11 years agoFix this as well. Pointed out by tzafrir.
Sean Bright [Sun, 9 Nov 2008 16:30:29 +0000 (16:30 +0000)]
Fix this as well.  Pointed out by tzafrir.

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

11 years agoFix some spelling errors, and convert tabs to spaces.
Sean Bright [Sun, 9 Nov 2008 03:34:28 +0000 (03:34 +0000)]
Fix some spelling errors, and convert tabs to spaces.

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

11 years agoIn order to move away from nested function use, some changes to the recently introduced
Sean Bright [Sun, 9 Nov 2008 01:59:59 +0000 (01:59 +0000)]
In order to move away from nested function use, some changes to the recently introduced
ast_channel_search_locked need to be made.  Specifically, the caller needs to be able to
pass arbitrary data which in turn is passed to the callback.  This patch addresses all
of the nested functions currently in asterisk trunk.

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

11 years agoMerged revisions 155553 via svnmerge from
Sean Bright [Sun, 9 Nov 2008 01:27:00 +0000 (01:27 +0000)]
Merged revisions 155553 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r155553 | seanbright | 2008-11-08 20:08:07 -0500 (Sat, 08 Nov 2008) | 6 lines

Use static functions here instead of nested ones.  This requires a small
change to the ast_bridge_config struct as well.  To understand the reason
for this change, see the following post:

    http://gcc.gnu.org/ml/gcc-help/2008-11/msg00049.html

........

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

11 years ago - Check for failure when putting the packet in the ast_str
Russell Bryant [Sat, 8 Nov 2008 21:46:43 +0000 (21:46 +0000)]
 - Check for failure when putting the packet in the ast_str
 - fix a spelling error in a header file

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

11 years agoRemove some code that is basically a no-op. Code above this already ensures that
Russell Bryant [Sat, 8 Nov 2008 21:34:36 +0000 (21:34 +0000)]
Remove some code that is basically a no-op.  Code above this already ensures that
the buffer is terminated.

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

11 years agoSet the invite state to INV_CANCELLED in a place that
Mark Michelson [Fri, 7 Nov 2008 23:41:44 +0000 (23:41 +0000)]
Set the invite state to INV_CANCELLED in a place that
makes more sense. Where it was set before, it was impossible
to actually delay sending a CANCEL if we had not yet received
a provisional response to an INVITE.

(closes issue #13626)
Reported by: atis
Patches:
      13626.patch uploaded by putnopvut (license 60)
Tested by: atis

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

11 years agoAdd ability to pass arbitrary data to the ao2_callback_fn (called from
Sean Bright [Fri, 7 Nov 2008 22:39:30 +0000 (22:39 +0000)]
Add ability to pass arbitrary data to the ao2_callback_fn (called from
ao2_callback and ao2_find).  Currently, passing OBJ_POINTER to either
of these mandates that the passed 'arg' is a hashable object, making
searching for an ao2 object based on outside criteria difficult.

Reviewed by Russell and Mark M. via ReviewBoard:
    http://reviewboard.digium.com/r/36/

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

11 years agoMerged revisions 155398 via svnmerge from
Tilghman Lesher [Fri, 7 Nov 2008 22:28:58 +0000 (22:28 +0000)]
Merged revisions 155398 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r155398 | tilghman | 2008-11-07 16:27:32 -0600 (Fri, 07 Nov 2008) | 7 lines

  Clarify error message.
  (closes issue #13809)
   Reported by: denke
   Patches:
         20081104__bug13809.diff.txt uploaded by Corydon76 (license 14)
   Tested by: denke
........

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

11 years agoTwo bugs relating to colnames found by Marquis42 on #asterisk-dev
Tilghman Lesher [Fri, 7 Nov 2008 22:03:50 +0000 (22:03 +0000)]
Two bugs relating to colnames found by Marquis42 on #asterisk-dev

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

11 years agoRemove one more instance of the sample configuration
Mark Michelson [Fri, 7 Nov 2008 21:14:49 +0000 (21:14 +0000)]
Remove one more instance of the sample configuration
lying about what's possible. The tz cannot be set in a
context like this. It can only be set in the general
section or per-mailbox.

Thanks to sasargen on #asterisk-dev for pointing this out

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

11 years agoSend call release with unallocated cause instead of normal call clearing, when
Tilghman Lesher [Fri, 7 Nov 2008 20:13:32 +0000 (20:13 +0000)]
Send call release with unallocated cause instead of normal call clearing, when
invalid extension is called.
(closes issue #13408)
 Reported by: adomjan
 Patches:
       chan_dahdi.c-ss7-unallocated-2 uploaded by adomjan (license 487)

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

11 years agoConvert open-coded linked list in indications to the AST_LIST_* macros. This
Sean Bright [Fri, 7 Nov 2008 16:18:52 +0000 (16:18 +0000)]
Convert open-coded linked list in indications to the AST_LIST_* macros.  This
cleans the code up some and should make it more maintainable as time goes on.

Reviewed by Russell, Kevin, Mark M., and Tilghman via ReviewBoard:
http://reviewboard.digium.com/r/34/

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

11 years agostringfields conversion for struct sip_peer, as requested :-)
Kevin P. Fleming [Fri, 7 Nov 2008 15:52:05 +0000 (15:52 +0000)]
stringfields conversion for struct sip_peer, as requested :-)

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

11 years agoRemove a bogus ast_free() that Kevin noticed. This was probably just left over
Russell Bryant [Fri, 7 Nov 2008 15:42:04 +0000 (15:42 +0000)]
Remove a bogus ast_free() that Kevin noticed.  This was probably just left over
from pre-astobj2ified chan_sip.

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

11 years agoClarify which part of OBJ_MULTIPLE is not implemented, and under what case it
Russell Bryant [Fri, 7 Nov 2008 15:01:02 +0000 (15:01 +0000)]
Clarify which part of OBJ_MULTIPLE is not implemented, and under what case it
is perfectly fine to use.  (Inspired by a question I received about my last
commit.)

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

11 years agoFix some code in chan_sip that was intended to unlink multiple objects from a
Russell Bryant [Fri, 7 Nov 2008 14:50:30 +0000 (14:50 +0000)]
Fix some code in chan_sip that was intended to unlink multiple objects from a
container.  The OBJ_MULTIPLE flag must be provided here.  Otherwise, this would
only remove a single object.

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

11 years agocorrect logic error noticed by rmudgett (thanks!)
Kevin P. Fleming [Fri, 7 Nov 2008 03:09:16 +0000 (03:09 +0000)]
correct logic error noticed by rmudgett (thanks!)

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

11 years agoIf 'asterisk.conf' is not found, instead of giving up,
Eliel C. Sardanons [Fri, 7 Nov 2008 03:02:01 +0000 (03:02 +0000)]
If 'asterisk.conf' is not found, instead of giving up,
load documentation for the 'en_US' language (fix my last
commit).

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

11 years agoFix an asterisk crash if no asterisk.conf configuration file is present.
Eliel C. Sardanons [Fri, 7 Nov 2008 02:37:47 +0000 (02:37 +0000)]
Fix an asterisk crash if no asterisk.conf configuration file is present.

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

11 years agodon't blindly assume that Darwin and Cygwin need GLOB_ABORTED defined; only define...
Kevin P. Fleming [Thu, 6 Nov 2008 22:49:19 +0000 (22:49 +0000)]
don't blindly assume that Darwin and Cygwin need GLOB_ABORTED defined; only define it if it is not already defined

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

11 years agocoding style/guidelines cleanup, plus use new side-effect safe S_OR
Kevin P. Fleming [Thu, 6 Nov 2008 21:12:03 +0000 (21:12 +0000)]
coding style/guidelines cleanup, plus use new side-effect safe S_OR

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

11 years agomake S_OR and S_COR safe to use even if the parameters are function calls or have...
Kevin P. Fleming [Thu, 6 Nov 2008 21:09:24 +0000 (21:09 +0000)]
make S_OR and S_COR safe to use even if the parameters are function calls or have side effects. it still bothers me that these are called S_OR and not something like ast_string_or, but that's water over the bridge

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

11 years agoput ifdef protection around the rest of the libpri function calls that were added...
Kevin P. Fleming [Thu, 6 Nov 2008 20:51:26 +0000 (20:51 +0000)]
put ifdef protection around the rest of the libpri function calls that were added at the same time as progress_with_cause

move parsing of the qsig channel mapping configuration option outside ifdef HAVE_PRI_INBANDDISCONNECT and into a properly ifdef'd block

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

11 years agoMerged revisions 155011 via svnmerge from
Mark Michelson [Thu, 6 Nov 2008 19:46:53 +0000 (19:46 +0000)]
Merged revisions 155011 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r155011 | mmichelson | 2008-11-06 13:45:52 -0600 (Thu, 06 Nov 2008) | 8 lines

The documentation listed the ability to set 'maxmsg' per
context. The truth is that you can only set this in the general section
or per mailbox. Thus I am updating the sample config file to be more
accurate.

Thanks to sasargen on IRC for bringing up this issue.

........

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

11 years agoSimplify the output of [See Also].
Eliel C. Sardanons [Thu, 6 Nov 2008 18:19:00 +0000 (18:19 +0000)]
Simplify the output of [See Also].
Functions are printed without parenthesis like: FUNTION
Applications are printed with parenthesis like: AppName()
Cli commands are printed like: 'core show application'
The other type of references are printed as they are inside the <ref> tag.

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

11 years agoFix some whitespace.
Sean Bright [Wed, 5 Nov 2008 22:22:37 +0000 (22:22 +0000)]
Fix some whitespace.

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

11 years agoUpdate a couple places to use the new ast_channel_search_locked API call.
Sean Bright [Wed, 5 Nov 2008 22:19:22 +0000 (22:19 +0000)]
Update a couple places to use the new ast_channel_search_locked API call.

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

11 years agoDon't read history on -rx commands.
Tilghman Lesher [Wed, 5 Nov 2008 22:19:18 +0000 (22:19 +0000)]
Don't read history on -rx commands.
(Closes issue #13571)
Reported by: tzafrir
Patch '0001-no-need-for-history-on-asterisk-rx.patch' uploaded by tzafrir.

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

11 years agoFix a problem found while building res_snmp.
Sean Bright [Wed, 5 Nov 2008 22:01:22 +0000 (22:01 +0000)]
Fix a problem found while building res_snmp.

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

11 years agoAdd LISTFILTER dialplan function, along with supporting documentation. See
Tilghman Lesher [Wed, 5 Nov 2008 21:58:48 +0000 (21:58 +0000)]
Add LISTFILTER dialplan function, along with supporting documentation.  See
documentation for more information on how to use it.

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

11 years agoMake compilation of chan_dahdi so that it does not require the new pri_progress_with_...
Matthew Fredrickson [Wed, 5 Nov 2008 20:45:03 +0000 (20:45 +0000)]
Make compilation of chan_dahdi so that it does not require the new pri_progress_with_cause function to have libpri support work.

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

11 years agomake this compile on OpenBSD again.
Michiel van Baak [Wed, 5 Nov 2008 20:33:11 +0000 (20:33 +0000)]
make this compile on OpenBSD again.

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

11 years agoAdd AgentLogin(), AgentMonitorOutgoing() applications and
Eliel C. Sardanons [Wed, 5 Nov 2008 20:17:06 +0000 (20:17 +0000)]
Add AgentLogin(), AgentMonitorOutgoing() applications and
AGENT() function XML documentation.

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

11 years agoAdd TestClient() and TestServer() applications XML
Eliel C. Sardanons [Wed, 5 Nov 2008 19:17:32 +0000 (19:17 +0000)]
Add TestClient() and TestServer() applications XML
documentation.

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

11 years agoAdd more [see also] references based on TFOT.
Eliel C. Sardanons [Wed, 5 Nov 2008 18:50:02 +0000 (18:50 +0000)]
Add more [see also] references based on TFOT.

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

11 years agoAdd Macro(), MacroExit(), MacroExclusive() and
Eliel C. Sardanons [Wed, 5 Nov 2008 18:46:29 +0000 (18:46 +0000)]
Add Macro(), MacroExit(), MacroExclusive() and
MacroIf() applications XML documentation.

(closes issue #13699)
Reported by: snuffy
Patches:
      bug13699_20081016.diff uploaded by snuffy (license 35)

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

11 years agoBlocked revisions 154724 via svnmerge
Mark Michelson [Wed, 5 Nov 2008 16:46:54 +0000 (16:46 +0000)]
Blocked revisions 154724 via svnmerge

........
r154724 | mmichelson | 2008-11-05 10:44:34 -0600 (Wed, 05 Nov 2008) | 6 lines

The logic of a strcasecmp call was reversed

(closes issue #13841)
Reported by: clegall_proformatique

........

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

11 years agoMerged revisions 154685 via svnmerge from
Steve Murphy [Wed, 5 Nov 2008 16:11:11 +0000 (16:11 +0000)]
Merged revisions 154685 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r154685 | murf | 2008-11-05 09:06:53 -0700 (Wed, 05 Nov 2008) | 1 line

This fix was prompted by communication from user, who was seeing thousands of error logs... looks like EAGAIN. Made such uninteresting.
........

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

11 years agoAdd more SeeAlso references based on TFOT.
Eliel C. Sardanons [Wed, 5 Nov 2008 14:37:07 +0000 (14:37 +0000)]
Add more SeeAlso references based on TFOT.

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

11 years agoWe now can have a reference to a filename inside a <see-also> tag.
Eliel C. Sardanons [Wed, 5 Nov 2008 13:54:21 +0000 (13:54 +0000)]
We now can have a reference to a filename inside a <see-also> tag.

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

11 years ago- Add ParkAndAnnounce() application XML documentation.
Eliel C. Sardanons [Wed, 5 Nov 2008 13:51:16 +0000 (13:51 +0000)]
- Add ParkAndAnnounce() application XML documentation.

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

11 years ago- Add more <see-also> based on TFOT.
Eliel C. Sardanons [Wed, 5 Nov 2008 13:07:29 +0000 (13:07 +0000)]
- Add more <see-also> based on TFOT.
- Add the 'filename' type to the see-also ref. To be able to reference a filename.

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

11 years ago- Add some see-also references based on TFOT.
Eliel C. Sardanons [Wed, 5 Nov 2008 12:13:57 +0000 (12:13 +0000)]
- Add some see-also references based on TFOT.

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

11 years ago- Add Read() application XML documentation.
Eliel C. Sardanons [Wed, 5 Nov 2008 11:26:40 +0000 (11:26 +0000)]
- Add Read() application XML documentation.

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

11 years ago- Add FollowMe() application XML documentation.
Eliel C. Sardanons [Wed, 5 Nov 2008 02:08:39 +0000 (02:08 +0000)]
- Add FollowMe() application XML documentation.

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

11 years ago- Add PlayTones() and StopPlayTones() applications XML documentation.
Eliel C. Sardanons [Wed, 5 Nov 2008 01:44:04 +0000 (01:44 +0000)]
- Add PlayTones() and StopPlayTones() applications XML documentation.
- Fix a dot that was outside of the <para> in the ForkCDR() XML documentation.

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

11 years agoIntroduce a new API call ast_channel_search_locked, which iterates through the
Sean Bright [Tue, 4 Nov 2008 23:23:39 +0000 (23:23 +0000)]
Introduce a new API call ast_channel_search_locked, which iterates through the
channel list calling a caller-defined callback.  The callback returns non-zero
if a match is found.  This should speed up some of the code that I committed
earlier today in chan_sip (which is also updated by this commit).

Reviewed by russellb and kpfleming via ReviewBoard:
http://reviewboard.digium.com/r/28/

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

11 years agoSwitch to using a thread condition to signal that a child thread is ready for
Tilghman Lesher [Tue, 4 Nov 2008 23:03:00 +0000 (23:03 +0000)]
Switch to using a thread condition to signal that a child thread is ready for
work, rather than a busy wait.
(closes issue #13011)
 Reported by: jpgrayson
 Patches:
       chan_iax2_find_idle.patch uploaded by jpgrayson (license 492)

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

11 years agoMerged revisions 154365 via svnmerge from
Tilghman Lesher [Tue, 4 Nov 2008 20:51:18 +0000 (20:51 +0000)]
Merged revisions 154365 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r154365 | tilghman | 2008-11-04 14:49:33 -0600 (Tue, 04 Nov 2008) | 9 lines

  On busy systems, it's possible for the values checked within a single line
  of code to change, unless the structure is locked to ensure a consistent
  state.
  (closes issue #13717)
   Reported by: kowalma
   Patches:
         20081102__bug13717.diff.txt uploaded by Corydon76 (license 14)
   Tested by: kowalma
........

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

11 years agoWe need to pass the DTD to xmlstarlet to validate against it the XML.
Eliel C. Sardanons [Tue, 4 Nov 2008 20:12:41 +0000 (20:12 +0000)]
We need to pass the DTD to xmlstarlet to validate against it the XML.
(I thought it was being read within the DOCTYPE definition inside the XML).

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

11 years agoMerged revisions 154266 via svnmerge from
Richard Mudgett [Tue, 4 Nov 2008 19:07:26 +0000 (19:07 +0000)]
Merged revisions 154266 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r154266 | rmudgett | 2008-11-04 13:01:08 -0600 (Tue, 04 Nov 2008) | 4 lines

  JIRA ABE-1703
  mISDN sets the channel to the wrong state when it receives
  the indication AST_CONTROL_RINGING.
........

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

11 years agoRecorded merge of revisions 154263 via svnmerge from
Tilghman Lesher [Tue, 4 Nov 2008 18:59:48 +0000 (18:59 +0000)]
Recorded merge of revisions 154263 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r154263 | tilghman | 2008-11-04 12:58:05 -0600 (Tue, 04 Nov 2008) | 3 lines

  Make the monitor thread non-detached, so it can be joined (suggested by Russell
  on -dev list).
........

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

11 years agoSlightly optimize ast_devstate_str and rename global functions devstate2str and confi...
Tilghman Lesher [Tue, 4 Nov 2008 18:47:20 +0000 (18:47 +0000)]
Slightly optimize ast_devstate_str and rename global functions devstate2str and config_text_file_save to have an ast_ prefix

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

11 years agoAdd XML documentation for the ForkCDR() application.
Eliel C. Sardanons [Tue, 4 Nov 2008 18:06:50 +0000 (18:06 +0000)]
Add XML documentation for the ForkCDR() application.

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

11 years agoGLOB_BRACE is already added to MY_GLOB_FLAGS if it is supported on the
Sean Bright [Tue, 4 Nov 2008 17:23:33 +0000 (17:23 +0000)]
GLOB_BRACE is already added to MY_GLOB_FLAGS if it is supported on the
platform.  This should resolve some build errors on Solaris.

(issue #13704)
Reported by: dougm

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

11 years agoAllow devices that accept dialog-info+xml (like snoms) to get the Caller ID of
Sean Bright [Tue, 4 Nov 2008 17:00:45 +0000 (17:00 +0000)]
Allow devices that accept dialog-info+xml (like snoms) to get the Caller ID of
the calling party when subscribed to the state of an extension that is ringing.
This has some limitations which are documented in sip.conf.sample.

(closes issue #13827)
Reported by: seanbright
Patches:
      issue13827.patch uploaded by seanbright (license 71)
Reviewed by: russellb

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

11 years agoFix build errors.
Sean Bright [Tue, 4 Nov 2008 16:50:34 +0000 (16:50 +0000)]
Fix build errors.

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

11 years agoimprove configure script to remember the previous value of each dependency in build_t...
Kevin P. Fleming [Tue, 4 Nov 2008 15:07:54 +0000 (15:07 +0000)]
improve configure script to remember the previous value of each dependency in build_tools/menuselect-deps, so that (once it has been written) menuselect can use this information to warn the user when a previously met dependency is no longer met

along the way, change tags used in configure script, menuselect-deps and code for various dependencies to be consistently named

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

11 years agoAdd XML documentation for:
Eliel C. Sardanons [Tue, 4 Nov 2008 14:38:20 +0000 (14:38 +0000)]
Add XML documentation for:
   Applications
     - DAHDISendKeypadFacility()
     - DAHDISendCallreroutingFacility()

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

11 years agoMerged revisions 154066 via svnmerge from
Tilghman Lesher [Mon, 3 Nov 2008 22:28:12 +0000 (22:28 +0000)]
Merged revisions 154066 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r154066 | tilghman | 2008-11-03 16:27:10 -0600 (Mon, 03 Nov 2008) | 5 lines

  Attempting to expunge a mailbox when the mailstream is NULL will crash Asterisk.
  (Closes issue #13829)
  Reported by: jaroth
  Patch by: me (modified jaroth's patch)
........

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

11 years agoMerged revisions 154060 via svnmerge from
Tilghman Lesher [Mon, 3 Nov 2008 21:57:14 +0000 (21:57 +0000)]
Merged revisions 154060 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r154060 | tilghman | 2008-11-03 15:48:21 -0600 (Mon, 03 Nov 2008) | 3 lines

  Remove the potential for a division by zero error.
  (Closes issue #13810)
........

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

11 years agoShould have passed the string pointer, not the ast_str structure.
Tilghman Lesher [Mon, 3 Nov 2008 21:01:30 +0000 (21:01 +0000)]
Should have passed the string pointer, not the ast_str structure.
(closes issue #13830)
 Reported by: Marquis

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

11 years agoUpdating docs
Olle Johansson [Mon, 3 Nov 2008 18:02:14 +0000 (18:02 +0000)]
Updating docs

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

11 years agoAdd LOCAL() function XML documentation.
Eliel C. Sardanons [Mon, 3 Nov 2008 17:11:22 +0000 (17:11 +0000)]
Add LOCAL() function XML documentation.

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

11 years agoSpaces to replace tabs...
Olle Johansson [Mon, 3 Nov 2008 15:25:35 +0000 (15:25 +0000)]
Spaces to replace tabs...

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

11 years agoAdding a separation of remote authentication and our authentication.
Olle Johansson [Mon, 3 Nov 2008 15:16:33 +0000 (15:16 +0000)]
Adding a separation of remote authentication and our authentication.
remotesecret => our password for a remote service
secret => our authentication when someone calls us

Secret => still has both functions if remotesecret is not used.

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

11 years agoAdd XML documentation for:
Eliel C. Sardanons [Mon, 3 Nov 2008 13:33:58 +0000 (13:33 +0000)]
Add XML documentation for:
    Functions
        - IAXPEER()
        - IAXVAR()

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

11 years agoAdd XML documentation for:
Eliel C. Sardanons [Mon, 3 Nov 2008 12:35:05 +0000 (12:35 +0000)]
Add XML documentation for:
     Applications
        - SIPDtmfMode()
        - SIPAddHeader()
     Functions
        - SIP_HEADER()
        - SIPPEER()
        - SIPCHANINFO()
        - CHECKSIPDOMAIN()

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

11 years agowhen --without-<foo> is passed to the configure script, explicitly inform menuselect...
Kevin P. Fleming [Mon, 3 Nov 2008 12:26:35 +0000 (12:26 +0000)]
when --without-<foo> is passed to the configure script, explicitly inform menuselect that the package was disabled by the user

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

11 years agoAdd XML documentation for:
Eliel C. Sardanons [Mon, 3 Nov 2008 01:01:25 +0000 (01:01 +0000)]
Add XML documentation for:
   - WaitForSilence()
   - WaitForNoise()
   - WaitForRing()
   - IVRDemo()
   - DBDel()
   - DBDeltree()

 (issue #13699)
 Reported by: snuffy
 Patches:
       bug13699_20081016.diff uploaded by snuffy (license 35)
        (With minor changes)

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

11 years agoinstead of trying to forcibly load res_agi when app_stack is loaded (even if the...
Kevin P. Fleming [Sun, 2 Nov 2008 23:34:39 +0000 (23:34 +0000)]
instead of trying to forcibly load res_agi when app_stack is loaded (even if the administrator didn't want it loaded), use GCC weak symbols to determine whether it was loaded already or not; if it was loaded, then use it.

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

11 years agoMerged revisions 153651 via svnmerge from
Russell Bryant [Sun, 2 Nov 2008 20:06:03 +0000 (20:06 +0000)]
Merged revisions 153651 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r153651 | russell | 2008-11-02 13:51:17 -0600 (Sun, 02 Nov 2008) | 2 lines

features.h depends on linkedlists.h, so include it

........

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

11 years agofix one more warning missed because i did not have new enough libpri installed
Kevin P. Fleming [Sun, 2 Nov 2008 19:39:41 +0000 (19:39 +0000)]
fix one more warning missed because i did not have new enough libpri installed

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

11 years agofix small bug introduced while cleaning up compiler warnings
Kevin P. Fleming [Sun, 2 Nov 2008 19:09:41 +0000 (19:09 +0000)]
fix small bug introduced while cleaning up compiler warnings

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

11 years agomark this revision as merged manually
Kevin P. Fleming [Sun, 2 Nov 2008 18:53:11 +0000 (18:53 +0000)]
mark this revision as merged manually

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

11 years agobring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch...
Kevin P. Fleming [Sun, 2 Nov 2008 18:52:13 +0000 (18:52 +0000)]
bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too

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

11 years agoAdd IAX2Provision() application XML documentation.
Eliel C. Sardanons [Sun, 2 Nov 2008 06:24:53 +0000 (06:24 +0000)]
Add IAX2Provision() application XML documentation.

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

11 years agovalidate-docs is a PHONY target
Russell Bryant [Sun, 2 Nov 2008 05:56:50 +0000 (05:56 +0000)]
validate-docs is a PHONY target

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

11 years agoAdd a handy makefile target so that you can validate the documentation against the DTD
Russell Bryant [Sun, 2 Nov 2008 05:55:46 +0000 (05:55 +0000)]
Add a handy makefile target so that you can validate the documentation against the DTD
by running "make validate-docs"

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

11 years agoModify the Makefile logic for extracting documentation.
Russell Bryant [Sun, 2 Nov 2008 05:47:13 +0000 (05:47 +0000)]
Modify the Makefile logic for extracting documentation.
 - Build the documentation when you run "make", as opposed to "make install"
 - Only rebuild the documentation when source code has been changed

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

11 years agoAdd Flash() application XML documentation.
Eliel C. Sardanons [Sun, 2 Nov 2008 05:10:22 +0000 (05:10 +0000)]
Add Flash() application XML documentation.

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

11 years agoFix a typo in the name of the application.
Eliel C. Sardanons [Sun, 2 Nov 2008 04:57:02 +0000 (04:57 +0000)]
Fix a typo in the name of the application.

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

11 years agoThere is a troublesome assert() in the alsa/control.h header that causes
Sean Bright [Sun, 2 Nov 2008 04:14:20 +0000 (04:14 +0000)]
There is a troublesome assert() in the alsa/control.h header that causes
GCC 4.3.2 to complain that the passed argument will always evaluate to
true.  So to get things to compile, disable assert when building
chan_usbradio.so.

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

11 years agoAnother little one.
Sean Bright [Sun, 2 Nov 2008 02:57:27 +0000 (02:57 +0000)]
Another little one.

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

11 years agofix a typo (thanks sean)
Russell Bryant [Sun, 2 Nov 2008 02:55:25 +0000 (02:55 +0000)]
fix a typo (thanks sean)

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

11 years agoFix various spelling and grammatical issues in documentation
Russell Bryant [Sun, 2 Nov 2008 02:50:33 +0000 (02:50 +0000)]
Fix various spelling and grammatical issues in documentation

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

11 years ago - Use a for loop instead of a while loop
Russell Bryant [Sun, 2 Nov 2008 02:20:10 +0000 (02:20 +0000)]
 - Use a for loop instead of a while loop
 - Get rid of an unnecessary variable

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

11 years agoInstead of doing a couple of strlen() calls each iteration of the loop, only do it...
Russell Bryant [Sun, 2 Nov 2008 02:14:19 +0000 (02:14 +0000)]
Instead of doing a couple of strlen() calls each iteration of the loop, only do it once
at the beginning of the function

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

11 years agoDon't ignore the result of find_peer() when looking for a peer by IP in check_peer_ok().
Russell Bryant [Sat, 1 Nov 2008 23:46:12 +0000 (23:46 +0000)]
Don't ignore the result of find_peer() when looking for a peer by IP in check_peer_ok().

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

11 years agoMerge changes from team/group/appdocsxml
Russell Bryant [Sat, 1 Nov 2008 21:10:07 +0000 (21:10 +0000)]
Merge changes from team/group/appdocsxml

This commit introduces the first phase of an effort to manage documentation of the
interfaces in Asterisk in an XML format.  Currently, a new format is available for
applications and dialplan functions.  A good number of conversions to the new format
are also included.

For more information, see the following message to asterisk-dev:

http://lists.digium.com/pipermail/asterisk-dev/2008-October/034968.html

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

11 years agoEnsure that the sip_pvt properly has its refcount incremented when the scheduler...
Russell Bryant [Sat, 1 Nov 2008 20:41:38 +0000 (20:41 +0000)]
Ensure that the sip_pvt properly has its refcount incremented when the scheduler holds
a reference to it for session timer processing.

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

11 years agoThe default in chan_sip for notifyringing is yes, so update the sample
Sean Bright [Sat, 1 Nov 2008 01:55:04 +0000 (01:55 +0000)]
The default in chan_sip for notifyringing is yes, so update the sample
conf to reflect that.

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