asterisk/asterisk.git
12 years agoAllow setting static values in CDRs
Tilghman Lesher [Fri, 14 Nov 2008 22:36:30 +0000 (22:36 +0000)]
Allow setting static values in CDRs

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

12 years agoRevision 155513 of chan_sip.c in trunk inadvertently
Mark Michelson [Fri, 14 Nov 2008 21:19:58 +0000 (21:19 +0000)]
Revision 155513 of chan_sip.c in trunk inadvertently
removed a very important line to set the "len" field
for incoming SIP requests. The result was that all incoming
SIP messages appeared to be 0-length, meaning Asterisk
could do no meaningful processing of anything SIP-related

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

12 years agoCleanup whitespace issues
Terry Wilson [Fri, 14 Nov 2008 17:35:33 +0000 (17:35 +0000)]
Cleanup whitespace issues

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

12 years agoUse Mark's new ast_str_case_hash function instead of jumping through hoops to do...
Terry Wilson [Fri, 14 Nov 2008 17:29:05 +0000 (17:29 +0000)]
Use Mark's new ast_str_case_hash function instead of jumping through hoops to do insensitive case lookups

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

12 years agoPing is missing the standard double-newline after the event.
Tilghman Lesher [Fri, 14 Nov 2008 17:02:00 +0000 (17:02 +0000)]
Ping is missing the standard double-newline after the event.
(closes issue #13903)
 Reported by: kebl0155

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

12 years agoFix some refcounting in app_queue.c and change the
Mark Michelson [Fri, 14 Nov 2008 16:53:38 +0000 (16:53 +0000)]
Fix some refcounting in app_queue.c and change the
hashing used by app_queue.c to be case-insensitive.
This is accomplished by adding a new case-insensitive
hashing function.

This was necessary to prevent bad refcount errors
(and potential crashes) which would occur due to the
fact that queues were initially read from the config
file in a case-sensitive manner. Then, when a user
issued a CLI command or manager action, we allowed
for case-insensitive input and used that input to
directly try to find the queue in the hash table. The result
was either that we could not find a queue that was input or
worse, we would end up hashing to a completely bogus value
based on the input.

This commit resolves the problem presented in
issue #13703. However, that issue was reported against
1.6.0. Since this fix introduces a behavior change, I am
electing to not place this same fix in to the 1.6.0 or 1.6.1
branches, and instead will opt for a change which does not
change behavior.

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

12 years agoRemove some useless locking and make sure we hangup channels on a link when we get...
Matthew Fredrickson [Fri, 14 Nov 2008 16:34:33 +0000 (16:34 +0000)]
Remove some useless locking and make sure we hangup channels on a link when we get a GRS.

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

12 years agoMerged revisions 156816 via svnmerge from
Mark Michelson [Fri, 14 Nov 2008 15:20:03 +0000 (15:20 +0000)]
Merged revisions 156816 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156816 | mmichelson | 2008-11-14 09:18:59 -0600 (Fri, 14 Nov 2008) | 10 lines

If the prompt to reenter a voicemail password timed out, it
resulted in the password not being saved, even if the input matched
what you gave when first prompted to enter a new password. This is
because the return value of ast_readstring was checked, but not checked
properly.

This bug was discovered by Jared Smith during an Asterisk training course.
Thanks for reporting it!

........

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

12 years agoMerged revisions 156755 via svnmerge from
Tilghman Lesher [Fri, 14 Nov 2008 00:43:13 +0000 (00:43 +0000)]
Merged revisions 156755 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156755 | tilghman | 2008-11-13 18:41:37 -0600 (Thu, 13 Nov 2008) | 6 lines

  ast_waitfordigit() requires that the channel be up, for no good logical
  reason.  This prevents While/EndWhile from working within the "h"
  extension.
  Reported by: jgalarneau (for ABE C.2)
  Fixed by: me
........

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

12 years agoMerged revisions 156688 via svnmerge from
Tilghman Lesher [Thu, 13 Nov 2008 21:30:41 +0000 (21:30 +0000)]
Merged revisions 156688 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156688 | tilghman | 2008-11-13 15:24:00 -0600 (Thu, 13 Nov 2008) | 7 lines

  Provide more space for all the data which can appear in an originating
  channel name.
  (closes issue #13398)
   Reported by: bamby
   Patches:
         manager.c.diff uploaded by bamby (license 430)
........

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

12 years ago(closes issue #13891)
Jeff Peeler [Thu, 13 Nov 2008 19:17:50 +0000 (19:17 +0000)]
(closes issue #13891)
Reported by: smurfix

This reverts a change I made in 116297. At the time it seemed the change was required to solve an issue with attempting a transfer but then letting it timeout without dialing any digits. However, I didn't realize that having an empty extension was possible. I'm removing the immediate return that was added in pbx_find_extension if the extension is null.

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

12 years agoCommand offsets were not changed correctly when the command syntax for
Tilghman Lesher [Thu, 13 Nov 2008 19:10:28 +0000 (19:10 +0000)]
Command offsets were not changed correctly when the command syntax for
'pri set debug' was changed from 'pri debug'.

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

12 years agoKevin sent a note indicating that this change is
Mark Michelson [Thu, 13 Nov 2008 17:07:56 +0000 (17:07 +0000)]
Kevin sent a note indicating that this change is
not necessary, so I am reverting it

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

12 years agoIntroduce XML documentation for:
Eliel C. Sardanons [Thu, 13 Nov 2008 15:46:06 +0000 (15:46 +0000)]
Introduce XML documentation for:
  - MeetMe()
  - MeetMeCount()
  - MeetMeChannelAdmin()
  - MeetMeAdmin()
  - SLAStation()
  - SLATrunk()

- Add an attribute to optionlist 'hasparams' with the same functionality as the one
we have in <parameter> and <argument> (the DTD was updated)
- Fix a leak when getting an attribute while parsing an <optionlist>.

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

12 years agoFix a typo introduced when changing xmldoc_has_arguments() to xmldoc_has_inside()
Eliel C. Sardanons [Thu, 13 Nov 2008 13:53:13 +0000 (13:53 +0000)]
Fix a typo introduced when changing xmldoc_has_arguments() to xmldoc_has_inside()
we need to pass the name of the node that we are looking for.

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

12 years agoRemove trailing whitespaces
Eliel C. Sardanons [Thu, 13 Nov 2008 13:08:34 +0000 (13:08 +0000)]
Remove trailing whitespaces
using ':%s/\s\+$//' pointed by seanbright on #asterisk-dev

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

12 years agoUse the reviewboard:url SVN property so post-review will work without modification.
Sean Bright [Wed, 12 Nov 2008 23:13:42 +0000 (23:13 +0000)]
Use the reviewboard:url SVN property so post-review will work without modification.

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

12 years agoMerged revisions 156386 via svnmerge from
Tilghman Lesher [Wed, 12 Nov 2008 21:34:51 +0000 (21:34 +0000)]
Merged revisions 156386 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156386 | tilghman | 2008-11-12 15:18:57 -0600 (Wed, 12 Nov 2008) | 5 lines

  When using call limits under 1 second, infinite call lengths are allowed,
  instead.
  (closes issue #13851)
   Reported by: ruddy
........

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

12 years ago- Make alias->real_cmd point to the allocated space outside alias->alias.
Eliel C. Sardanons [Wed, 12 Nov 2008 20:27:40 +0000 (20:27 +0000)]
- Make alias->real_cmd point to the allocated space outside alias->alias.
- Register the aliased cli command (or we will not alias anything).
- Use ARRAY_LEN() when possible.

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

12 years agoMerged revisions 156297 via svnmerge from
Steve Murphy [Wed, 12 Nov 2008 19:47:29 +0000 (19:47 +0000)]
Merged revisions 156297 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156297 | murf | 2008-11-12 12:36:16 -0700 (Wed, 12 Nov 2008) | 18 lines

It turns out that the 0x0XX00 codes being returned for
N, X, and Z are off by one, as per conversation with
jsmith on #asterisk-dev;  he was teaching a class
and disconcerted that this published rule was not
being followed, with patterns _NXX, _[1-8]22 and
_[2-9]22... and NXX was winning, but [1-8] should
have been.

This change, tested on these 3 patterns now
picks the proper one.

However, this change may surprise users who
set up dialplans based on previous behavior,
which has been there for what, 2 and half
years or so now.

........

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

12 years agoFix a bug caused by using sizeof(pointer) instead of sizeof(the struct)
Russell Bryant [Wed, 12 Nov 2008 19:38:51 +0000 (19:38 +0000)]
Fix a bug caused by using sizeof(pointer) instead of sizeof(the struct)

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

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

........
  r156294 | tilghman | 2008-11-12 13:26:45 -0600 (Wed, 12 Nov 2008) | 6 lines

  If the SLA thread is not started, then reload causes a memory leak.
  (closes issue #13889)
   Reported by: eliel
   Patches:
         app_meetme.c.patch uploaded by eliel (license 64)
........

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

12 years agoMerged revisions 156289 via svnmerge from
Jeff Peeler [Wed, 12 Nov 2008 19:11:15 +0000 (19:11 +0000)]
Merged revisions 156289 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156289 | jpeeler | 2008-11-12 13:10:12 -0600 (Wed, 12 Nov 2008) | 3 lines

For whatever reason, gcc only warned me about the possible use of an uninitialized variable when compiling 1.6.1.

........

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

12 years agoMerged revisions 156229 via svnmerge from
Tilghman Lesher [Wed, 12 Nov 2008 18:55:18 +0000 (18:55 +0000)]
Merged revisions 156229 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r156229 | tilghman | 2008-11-12 12:39:21 -0600 (Wed, 12 Nov 2008) | 11 lines

  Revert revision 132506, since it occasionally caused IAX2 HANGUP packets not
  to be sent, and instead, schedule a task to destroy the iax2 pvt structure
  10 seconds later.  This allows the IAX2 HANGUP packet to be queued,
  transmitted, and ACKed before the pvt is destroyed.
  (closes issue #13645)
   Reported by: dzajro
   Patches:
         20081111__bug13645__3.diff.txt uploaded by Corydon76 (license 14)
   Tested by: vazir
   Reviewed: http://reviewboard.digium.com/r/51/
........

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

12 years agoMerged revisions 156178 via svnmerge from
Jeff Peeler [Wed, 12 Nov 2008 18:32:46 +0000 (18:32 +0000)]
Merged revisions 156178 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156178 | jpeeler | 2008-11-12 11:53:44 -0600 (Wed, 12 Nov 2008) | 8 lines

(closes issue #13173)
Reported by: pep

This change adds an announce_thread responsible for playing announcements to an existing conference. This allows all announcing to be immediately stopped if necessary but more importantly allows other threads that need to play something to not block. There are multiple benefits to this, but the actual bug is for solving the scenario for a channel to be unusable after hang up for the entire duration of the parting announcement. The parting announcement can be extremely long depending on what the user recorded upon joining the conference.

Reviewed by Russell on Review Board:
http://reviewboard.digium.com/r/25/

........

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

12 years agoMerged revisions 156167 via svnmerge from
Mark Michelson [Wed, 12 Nov 2008 17:41:56 +0000 (17:41 +0000)]
Merged revisions 156167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156167 | mmichelson | 2008-11-12 11:38:33 -0600 (Wed, 12 Nov 2008) | 7 lines

When doing some tests, I was having a crash at the end of every call
if an attended transfer occurred during the call. I traced the cause to
the CDR on one of the channels being NULL. murf suggested a check in
the end bridge callback to be sure the CDR is non-NULL before proceeding,
so that's what I'm adding.

........

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

12 years agoMerged revisions 156164 via svnmerge from
Russell Bryant [Wed, 12 Nov 2008 17:38:20 +0000 (17:38 +0000)]
Merged revisions 156164 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156164 | russell | 2008-11-12 11:29:52 -0600 (Wed, 12 Nov 2008) | 7 lines

Move the sanity check that makes sure "always fork" is not set along with the
console option to be after the code that reads options from asterisk.conf.
This resolves a situation where Asterisk can start taking up 100% when
misconfigured.
(Thanks to Bryce Porter (x86 on IRC) for letting me log in to his system to
 figure out what was causing the 100% CPU problem.)

........

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

12 years ago- The paramname is a pointer allocated with strdup() or malloc(), so,
Eliel C. Sardanons [Wed, 12 Nov 2008 17:28:02 +0000 (17:28 +0000)]
- The paramname is a pointer allocated with strdup() or malloc(), so,
we need to free it with ast_free().

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

12 years agoAdd a couple of AC_SUBST calls to the AST_C_COMPILE_CHECK
Mark Michelson [Wed, 12 Nov 2008 15:33:11 +0000 (15:33 +0000)]
Add a couple of AC_SUBST calls to the AST_C_COMPILE_CHECK
macro. These missing calls were discovered when working on
timerfd support in a separate branch.

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

12 years agoAdd XML documentation for AGI commands:
Eliel C. Sardanons [Wed, 12 Nov 2008 13:43:46 +0000 (13:43 +0000)]
Add XML documentation for AGI commands:
   - database deltree
   - database get
   - exec
   - get data
   - get full variable

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

12 years agoThis commit does two things:
Michiel van Baak [Wed, 12 Nov 2008 06:46:04 +0000 (06:46 +0000)]
This commit does two things:
- Add CLI aliases module to asterisk.
- Remove all deprecated CLI commands from the code

Initial work done by file.
Junk-Y and lmadsen did a lot of work and testing to
get the list of deprecated commands into the configuration file.

Deprecated CLI commands are now handled by this new module,
see cli_aliases.conf for more info about that.

ok russellb@ via reviewboard

(closes issue #13735)
Reported by: mvanbaak

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

12 years ago- Add 'database del', 'database put' and 'set music' AGI commands XML documentation.
Eliel C. Sardanons [Wed, 12 Nov 2008 02:20:05 +0000 (02:20 +0000)]
- Add 'database del', 'database put' and 'set music' AGI commands XML documentation.
- Add to the DTD the possibility to put a parameter inside an <enum>.

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

12 years agoImplement AGI XML documentation parsing functions.
Eliel C. Sardanons [Wed, 12 Nov 2008 00:17:43 +0000 (00:17 +0000)]
Implement AGI XML documentation parsing functions.
A new <agi> element is used to describe the XML documentation.
We have the usual synopsis,syntax,description and seealso for AGI commands.
The CLI 'agi show commands' command was changed to show all the documentation se
ctions.

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

12 years ago changing comment style to conform coding guidelines
Pari Nannapaneni [Tue, 11 Nov 2008 23:32:31 +0000 (23:32 +0000)]
 changing comment style to conform coding guidelines

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

12 years ago Patch by Ryan Brindley -- Make sure that manager refuses any duplicate 'new category...
Pari Nannapaneni [Tue, 11 Nov 2008 23:02:43 +0000 (23:02 +0000)]
 Patch by Ryan Brindley -- Make sure that manager refuses any duplicate 'new category' requests in updateconfig

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

12 years agouse some fancy compiler magic (thanks to Matthew Woehlke on the gcc-help mailing...
Kevin P. Fleming [Tue, 11 Nov 2008 17:57:20 +0000 (17:57 +0000)]
use some fancy compiler magic (thanks to Matthew Woehlke on the gcc-help mailing list) to restore type-safety to S_OR by going back to a macro, but preserve the side-effect-safe usage of the macro arguments

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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