asterisk/asterisk.git
13 years agoTake some debug code out :-)
Matthew Fredrickson [Wed, 21 Nov 2007 22:34:45 +0000 (22:34 +0000)]
Take some debug code out :-)

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

13 years agoadd a missing return
Luigi Rizzo [Wed, 21 Nov 2007 22:20:36 +0000 (22:20 +0000)]
add a missing return

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

13 years agoAdd BRI support to chan_zap
Matthew Fredrickson [Wed, 21 Nov 2007 22:07:55 +0000 (22:07 +0000)]
Add BRI support to chan_zap

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

13 years agoenable support for stack backtrace for stuff built in utils/
Luigi Rizzo [Wed, 21 Nov 2007 21:30:24 +0000 (21:30 +0000)]
enable support for stack backtrace for stuff built in utils/
(this was present in the main tree but forgotten here).

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

13 years agocloses issue #11290; the proposed patch was a good guess, and would solve the bug...
Steve Murphy [Wed, 21 Nov 2007 20:38:00 +0000 (20:38 +0000)]
closes issue #11290; the proposed patch was a good guess, and would solve the bug to some extent, but was really masking the real issue, that there were bad entries in the table. This fix removes the condition that the hashtab updates be done on exten removal only when the pattern_tree was present, which is silly. The operations that apply to the pattern tree are instead made conditional. Also, threw back in routines that kpfleming deleted because of probs in the 64-bit world. Tested on both 32 and 64-bit machines (compile). Tested the reload problem with over 20 reloads, and no problems. If you find more problems, please reopen 11290.

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

13 years agoSimplify comparison in parking fix
Terry Wilson [Wed, 21 Nov 2007 20:22:40 +0000 (20:22 +0000)]
Simplify comparison in parking fix

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

13 years agoMerged revisions 89495 via svnmerge from
Mark Michelson [Wed, 21 Nov 2007 19:28:43 +0000 (19:28 +0000)]
Merged revisions 89495 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89495 | mmichelson | 2007-11-21 13:27:51 -0600 (Wed, 21 Nov 2007) | 3 lines

Fix a small error I made in my previous commit

........

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

13 years agoMerged revisions 89493 via svnmerge from
Mark Michelson [Wed, 21 Nov 2007 19:27:22 +0000 (19:27 +0000)]
Merged revisions 89493 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89493 | mmichelson | 2007-11-21 13:24:22 -0600 (Wed, 21 Nov 2007) | 5 lines

Changing an inaccurate debug message to be less inaccurate. Under the circumstances, this
message would always report that there were 0 members available, even though that may not be true.

........

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

13 years agoMerged revisions 89491 via svnmerge from
Terry Wilson [Wed, 21 Nov 2007 19:20:33 +0000 (19:20 +0000)]
Merged revisions 89491 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89491 | twilson | 2007-11-21 12:59:27 -0600 (Wed, 21 Nov 2007) | 4 lines

If a channel gets masqueraded in the middle of a park, don't play the
announcement to the masqueraded channel, and dial back to the original
channel on timeout.

........

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

13 years agoRemove obsolete OLD_DSP_ROUTINES code. Also, remove the FAX_DETECT define and
Russell Bryant [Wed, 21 Nov 2007 18:52:19 +0000 (18:52 +0000)]
Remove obsolete OLD_DSP_ROUTINES code.  Also, remove the FAX_DETECT define and
only do the calculations if fax detection is enabled on the dsp.

(closes issue #11331)
Reported by: dimas
Patches:
      dsp.patch uploaded by dimas (license 88)

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

13 years agoChange Read to set READSTATUS as an indication of the result
Tilghman Lesher [Wed, 21 Nov 2007 18:38:18 +0000 (18:38 +0000)]
Change Read to set READSTATUS as an indication of the result
Also, some cleanup to CHANGES.
Reported by: michael-fig
Patch by: michael-fig,tilghman
(Closes issue #11004)

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

13 years agofix a small gramatical error in a comment
Russell Bryant [Wed, 21 Nov 2007 18:24:23 +0000 (18:24 +0000)]
fix a small gramatical error in a comment

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

13 years agoThere existed about a 1 in 4 billion chance that reading from /dev/urandom
Mark Michelson [Wed, 21 Nov 2007 18:19:22 +0000 (18:19 +0000)]
There existed about a 1 in 4 billion chance that reading from /dev/urandom
would return LONG_MIN (1 in 9 quintillion if using 64-bit longs). Since there
is no positive equivalent of LONG_MIN, the result of labs() in this case is
unpredictable. This fixes that situation.

(closes issue #11336, reported and patched by sperreault)

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

13 years agoFix some code that was supposed to ensure that a buffer was terminated, but was
Russell Bryant [Wed, 21 Nov 2007 16:24:17 +0000 (16:24 +0000)]
Fix some code that was supposed to ensure that a buffer was terminated, but was
writing to the wrong byte.  Also, remove some non-thread safe test code.

(closes issue #11317)
Reported by: IgorG
Patches:
      unistim-2.patch uploaded by IgorG (license 20)
  - additional changes by me

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

13 years agoI introduced a deadlock avoidance into 1.4, which I attempted to port to trunk as...
Mark Michelson [Wed, 21 Nov 2007 16:08:12 +0000 (16:08 +0000)]
I introduced a deadlock avoidance into 1.4, which I attempted to port to trunk as well.
Unfortunately, since trunk uses read/write locks for the context lock, it means that I have
actually *introduced* a deadlock condition since they are not recursive. Removing this change
for now and will look into introducing a different one.

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

13 years agomove these forward declarations back to asterisk.h where they belong... even though...
Kevin P. Fleming [Wed, 21 Nov 2007 16:07:11 +0000 (16:07 +0000)]
move these forward declarations back to asterisk.h where they belong... even though asterisk.h includes compat.h, these declarations have nothing to do with the being platform-compatible and are directly related to being part of Asterisk

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

13 years agoget this to actually compile...
Kevin P. Fleming [Wed, 21 Nov 2007 15:45:56 +0000 (15:45 +0000)]
get this to actually compile...

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

13 years agoremove some debugging code that doesn't compile on 64-bit platforms
Kevin P. Fleming [Wed, 21 Nov 2007 15:29:39 +0000 (15:29 +0000)]
remove some debugging code that doesn't compile on 64-bit platforms

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

13 years agoOOOps! All the debug stuff I inserted was accidentally committed. I hereby revert it.
Steve Murphy [Wed, 21 Nov 2007 15:17:12 +0000 (15:17 +0000)]
OOOps! All the debug stuff I inserted was accidentally committed. I hereby revert it.

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

13 years agocloses issue #11265; Thanks to snuffy for his work on neatening up the code and remov...
Steve Murphy [Wed, 21 Nov 2007 15:11:43 +0000 (15:11 +0000)]
closes issue #11265; Thanks to snuffy for his work on neatening up the code and removing duplicated code.

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

13 years agoremove this file, it is not used anywhere.
Luigi Rizzo [Wed, 21 Nov 2007 08:28:27 +0000 (08:28 +0000)]
remove this file, it is not used anywhere.

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

13 years agoadd missing paths.h
Luigi Rizzo [Wed, 21 Nov 2007 01:35:30 +0000 (01:35 +0000)]
add missing paths.h

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

13 years agoadd check for video4linux
Luigi Rizzo [Wed, 21 Nov 2007 01:29:45 +0000 (01:29 +0000)]
add check for video4linux

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

13 years agoA free in add_pri was ultimately the source of the grief we were having with parking...
Steve Murphy [Wed, 21 Nov 2007 01:09:47 +0000 (01:09 +0000)]
A free in add_pri was ultimately the source of the grief we were having with parking. This set of changes fixes that problem, and introduces some more error messages, and puts debugs into ifdefs for what could be short-term usage. Txs to Terry W. for his help, guidance, and especially patience.

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

13 years agomore header removal/normalization
Luigi Rizzo [Wed, 21 Nov 2007 00:23:49 +0000 (00:23 +0000)]
more header removal/normalization

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

13 years agoX11 checks (at least some - for other platforms with
Luigi Rizzo [Wed, 21 Nov 2007 00:22:41 +0000 (00:22 +0000)]
X11 checks (at least some - for other platforms with
unusual X11 locations you might need to add more directories)

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

13 years agoMerge changes from team/russell/sla_trunk_moh ...
Russell Bryant [Wed, 21 Nov 2007 00:21:38 +0000 (00:21 +0000)]
Merge changes from team/russell/sla_trunk_moh ...

* Added the ability to specify the music on hold class used to play into the
   conference when there is only one member and the M option is used.
* Added the ability to specify a music on hold class to play instead of ringing
   for the SLATrunk application.

(patched by me, and tested internally)

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

13 years agocomplete support for X11
Luigi Rizzo [Wed, 21 Nov 2007 00:20:08 +0000 (00:20 +0000)]
complete support for X11

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

13 years agoMake trunk build again
Tilghman Lesher [Tue, 20 Nov 2007 23:29:33 +0000 (23:29 +0000)]
Make trunk build again

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

13 years agoAdd support for new recorded character sounds
Tilghman Lesher [Tue, 20 Nov 2007 23:28:57 +0000 (23:28 +0000)]
Add support for new recorded character sounds
Closes issue #5208

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

13 years agomove asterisk/paths.h outside asterisk.h and into those files
Luigi Rizzo [Tue, 20 Nov 2007 23:16:15 +0000 (23:16 +0000)]
move asterisk/paths.h outside asterisk.h and into those files
who really need it.

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

13 years agomove internal function declarations to include/asterisk/_private.h
Luigi Rizzo [Tue, 20 Nov 2007 22:18:21 +0000 (22:18 +0000)]
move internal function declarations to include/asterisk/_private.h

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

13 years agoi got a little carried away with commas ...
Russell Bryant [Tue, 20 Nov 2007 19:29:08 +0000 (19:29 +0000)]
i got a little carried away with commas ...

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

13 years agoswitch compile-time option checking to string storage mode in this branch too
Kevin P. Fleming [Tue, 20 Nov 2007 19:28:10 +0000 (19:28 +0000)]
switch compile-time option checking to string storage mode in this branch too

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

13 years agofix the zaptel configure script check
Russell Bryant [Tue, 20 Nov 2007 19:11:18 +0000 (19:11 +0000)]
fix the zaptel configure script check

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

13 years agothe 'version' is now $7 not $6
Luigi Rizzo [Tue, 20 Nov 2007 18:20:25 +0000 (18:20 +0000)]
the 'version' is now $7 not $6
(wait a bit before regenerating configure, i have more changes)

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

13 years agoMerged revisions 89457 via svnmerge from
Mark Michelson [Tue, 20 Nov 2007 17:59:00 +0000 (17:59 +0000)]
Merged revisions 89457 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89457 | mmichelson | 2007-11-20 11:50:31 -0600 (Tue, 20 Nov 2007) | 9 lines

According to comments in main/pbx.c, it is essential that if we are going to lock
the conlock as well as the hints lock, it must be locked in that respective order.
In order to prevent a potential deadlock, we need to lock the conlock prior to
locking the hints lock in ast_hint_state_changed (see the call stack example on
issue #11323 for how this can happen).

(closes issue #11323, reported  by eelcob, suggestion for patch by eelcob, patch by me)

........

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

13 years agoprepare to support console_video
Luigi Rizzo [Tue, 20 Nov 2007 17:11:12 +0000 (17:11 +0000)]
prepare to support console_video

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

13 years agoFix building of modules under cygwin.
Luigi Rizzo [Tue, 20 Nov 2007 16:12:10 +0000 (16:12 +0000)]
Fix building of modules under cygwin.

After this commit we can actually load modules under windows,
and we can start debugging more interesting problems related
to the load order and functionality of modules.

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

13 years agoChanged occurrences of "busy-level" to "busylevel" in sip.conf.sample
Mark Michelson [Tue, 20 Nov 2007 16:11:19 +0000 (16:11 +0000)]
Changed occurrences of "busy-level" to "busylevel" in sip.conf.sample
in light of commit 89441. Thanks to pj for pointing out the need for this

(closes issue #11307, reported by pj)

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

13 years agoadd an argument for extra headers to AC_EXT_LIB_CHECK,
Luigi Rizzo [Tue, 20 Nov 2007 15:39:00 +0000 (15:39 +0000)]
add an argument for extra headers to AC_EXT_LIB_CHECK,
and on passing simplify the code.
Too bad that every time we need to regenerate configure...

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

13 years agoMerged revisions 89450 via svnmerge from
Steve Murphy [Tue, 20 Nov 2007 15:30:48 +0000 (15:30 +0000)]
Merged revisions 89450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89450 | murf | 2007-11-20 08:22:08 -0700 (Tue, 20 Nov 2007) | 1 line

closes issue #11324; break statements missing in switch cases.
........

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

13 years agoMinor documentation tweak and if an incorrect parameter is given to core show transla...
Joshua Colp [Tue, 20 Nov 2007 15:00:41 +0000 (15:00 +0000)]
Minor documentation tweak and if an incorrect parameter is given to core show translation return the usage information.
(closes issue #11316)
Reported by: eliel
Patches:
      translate.c.patch uploaded by eliel (license 64)

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

13 years agocomment a bit the code in acinclude.m4
Luigi Rizzo [Tue, 20 Nov 2007 14:54:52 +0000 (14:54 +0000)]
comment a bit the code in acinclude.m4
There is still a lot of code to clean up there, but hopefully
this should clarify what goes on in there.

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

13 years agoInclude the compatibility header file in ast_h323.cxx for compatibility reasons.
Joshua Colp [Tue, 20 Nov 2007 14:49:32 +0000 (14:49 +0000)]
Include the compatibility header file in ast_h323.cxx for compatibility reasons.
(closes issue #11311)
Reported by: falves11

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

13 years agoFix sip show history.
Olle Johansson [Tue, 20 Nov 2007 14:44:26 +0000 (14:44 +0000)]
Fix sip show history.

Closes issue #11312

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

13 years agoChange terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.
Olle Johansson [Tue, 20 Nov 2007 08:36:32 +0000 (08:36 +0000)]
Change terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.

Closes issue #11312

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

13 years agoinitial makefile changes to build loadable modules under cygwin
Luigi Rizzo [Tue, 20 Nov 2007 07:42:38 +0000 (07:42 +0000)]
initial makefile changes to build loadable modules under cygwin
(not complete yet - still need to sort out dependecies on res_*)

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

13 years agoGet rid of some debug messages in pbx.c
Steve Murphy [Tue, 20 Nov 2007 00:17:15 +0000 (00:17 +0000)]
Get rid of some debug messages in pbx.c

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

13 years agoChanged the "busy-level" option in sip.conf to "busylevel" to be more parallel
Mark Michelson [Mon, 19 Nov 2007 23:24:35 +0000 (23:24 +0000)]
Changed the "busy-level" option in sip.conf to "busylevel" to be more parallel
with the SIPPEER() argument of the same name. The deprecation procedure is not
being used here since this is a trunk-only option.

(closes issue #11307, reported by pj, patched by me)

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

13 years agoBe a bit more pedantic about the type for holding the md5 sum for the build options.
Russell Bryant [Mon, 19 Nov 2007 23:03:37 +0000 (23:03 +0000)]
Be a bit more pedantic about the type for holding the md5 sum for the build options.
Also, doxygenify the comment.

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

13 years agoMake the SYSINFO documentation reflect which options were compiled in
Russell Bryant [Mon, 19 Nov 2007 23:03:02 +0000 (23:03 +0000)]
Make the SYSINFO documentation reflect which options were compiled in

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

13 years agoThese changes were made in response to niklas@tese.se's letter of 11-17-2007, where...
Steve Murphy [Mon, 19 Nov 2007 22:55:38 +0000 (22:55 +0000)]
These changes were made in response to niklas@tese.se's letter of 11-17-2007, where he had 20 and 201 in two different contexts, included in the same context. In that particular case, we were behaving the same as 1.4, but after experimenting, I quickly found that if 20 and 201 were in the same extension, 1.4 would return 201, and this code returns 20. These changes now enable the current code to replicate the behavior of 1.4 in respect to MATCHMORE in cases like this.

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

13 years agoanother few errno.h removals
Luigi Rizzo [Mon, 19 Nov 2007 21:18:14 +0000 (21:18 +0000)]
another few errno.h removals

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

13 years agomore errno.h removal
Luigi Rizzo [Mon, 19 Nov 2007 21:12:08 +0000 (21:12 +0000)]
more errno.h removal

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

13 years agoremove unnecessary headers
Luigi Rizzo [Mon, 19 Nov 2007 21:04:04 +0000 (21:04 +0000)]
remove unnecessary headers

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

13 years agoremove some unnecessary includes.
Luigi Rizzo [Mon, 19 Nov 2007 20:42:06 +0000 (20:42 +0000)]
remove some unnecessary includes.

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

13 years agoChange delimiter of SIPPEER to be comma (instead of pipe) and further deprecate the...
Tilghman Lesher [Mon, 19 Nov 2007 20:13:40 +0000 (20:13 +0000)]
Change delimiter of SIPPEER to be comma (instead of pipe) and further deprecate the old ':' delimiter
Reported by: pj
Patch by: tilghman
Closes issue #11305

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

13 years agoremove some useless includes from codecs
Luigi Rizzo [Mon, 19 Nov 2007 19:51:55 +0000 (19:51 +0000)]
remove some useless includes from codecs

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

13 years agoformat handlers don't need network, lock, channel and scheduler headers
Luigi Rizzo [Mon, 19 Nov 2007 19:41:16 +0000 (19:41 +0000)]
format handlers don't need network, lock, channel and scheduler headers

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

13 years agomove the declaration of struct ast_channel ast_frame and ast_module
Luigi Rizzo [Mon, 19 Nov 2007 19:36:32 +0000 (19:36 +0000)]
move the declaration of struct ast_channel ast_frame and ast_module
to compat.h so it is always available - hopefully this will let
us reduce the number of inclusions of channel.h and frame.h

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

13 years agoanother bunch of include removals (errno.h and asterisk/logger.h)
Luigi Rizzo [Mon, 19 Nov 2007 19:09:03 +0000 (19:09 +0000)]
another bunch of include removals (errno.h and asterisk/logger.h)

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

13 years agoinclude "logger.h" and errno.h from asterisk.h - usage shows that they
Luigi Rizzo [Mon, 19 Nov 2007 18:52:04 +0000 (18:52 +0000)]
include "logger.h" and errno.h from asterisk.h - usage shows that they
were included almost everywhere.
Remove some of the instances.

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

13 years agoa correction to code involved in an extension removal
Steve Murphy [Mon, 19 Nov 2007 17:18:26 +0000 (17:18 +0000)]
a correction to code involved in an extension removal

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

13 years agoAdding SYSINFO() dialplan function for retrieval of system information
Mark Michelson [Mon, 19 Nov 2007 16:29:07 +0000 (16:29 +0000)]
Adding SYSINFO() dialplan function for retrieval of system information

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

13 years agoMerged revisions 89419 via svnmerge from
Joshua Colp [Mon, 19 Nov 2007 15:55:08 +0000 (15:55 +0000)]
Merged revisions 89419 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89419 | file | 2007-11-19 11:53:32 -0400 (Mon, 19 Nov 2007) | 6 lines

Print out the correct filename (features.conf) in the log message when parkpos options are incorrect.
(closes issue #11295)
Reported by: Laureano
Patches:
      res_features.c.patch uploaded by Laureano (license 265)

........

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

13 years agoMerged revisions 89416 via svnmerge from
Joshua Colp [Mon, 19 Nov 2007 15:27:08 +0000 (15:27 +0000)]
Merged revisions 89416 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89416 | file | 2007-11-19 11:24:12 -0400 (Mon, 19 Nov 2007) | 4 lines

Clarify documentation a bit, include that a frame has to pass through the core in order for the Local channel optimization to happen.
(closes issue #11246)
Reported by: jon

........

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

13 years agorevert inclusion of options.h
Luigi Rizzo [Mon, 19 Nov 2007 14:36:12 +0000 (14:36 +0000)]
revert inclusion of options.h

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

13 years agoChange warning messages (which are really debug messages) into debug messages.
Joshua Colp [Mon, 19 Nov 2007 14:03:30 +0000 (14:03 +0000)]
Change warning messages (which are really debug messages) into debug messages.
(closes issue #11288)
Reported by: IgorG
Patches:
      saydebug-89394-1-trunk.patch uploaded by IgorG (license 20)

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

13 years agoUpdate CHANGES
Olle Johansson [Mon, 19 Nov 2007 09:16:56 +0000 (09:16 +0000)]
Update CHANGES

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

13 years agoAdding busy-level to the SIP_PEER() dialplan function.
Olle Johansson [Mon, 19 Nov 2007 09:12:27 +0000 (09:12 +0000)]
Adding busy-level to the SIP_PEER() dialplan function.

With this, you can control the peer in the dialplan, so you avoid placing outbound
calls when the device has reached busy-level.
Reported by pj.

Closes bug #11180

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

13 years agoAdd some debugging to the routines that finds our local IP address.
Olle Johansson [Mon, 19 Nov 2007 08:41:14 +0000 (08:41 +0000)]
Add some debugging to the routines that finds our local IP address.

Related to bug #9225

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

13 years agoMake some notes about a problem I found with the OPTIONs handler while working with
Olle Johansson [Mon, 19 Nov 2007 08:34:26 +0000 (08:34 +0000)]
Make some notes about a problem I found with the OPTIONs handler while working with
the bug tracker. Since we don't authenticate devices (peers/users) on OPTIONS we don't
have the proper context set for the user/peer.

However, we might not want to process an authentication for every OPTIONS, so we could
have a config option for this, "optionsforceok" to always answer 200 OK on the request
and not check device or destination, nor add a SDP. If Asterisk sends the OPTIONs request,
it doesn't care about the reply. Some devices use OPTIONs to discover capabilities,
since we should answer like an INVITE from the device and we need to support that properly
too, which we don't today.

So much to do :-)

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

13 years agoAdd OSX into the logic that uses md5 instead of md5sum.
Joshua Colp [Sun, 18 Nov 2007 21:50:58 +0000 (21:50 +0000)]
Add OSX into the logic that uses md5 instead of md5sum.

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

13 years agoUse the easy way that rizzo mentioned, only include malloc.h on the Windows platform.
Joshua Colp [Sun, 18 Nov 2007 17:49:40 +0000 (17:49 +0000)]
Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform.

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

13 years agoRevert last commit, apparently buildbot lied to me.
Joshua Colp [Sun, 18 Nov 2007 17:03:38 +0000 (17:03 +0000)]
Revert last commit, apparently buildbot lied to me.

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

13 years agoChange how we handle alloca to conform with how it is suggested in the autoconf manua...
Joshua Colp [Sun, 18 Nov 2007 17:01:41 +0000 (17:01 +0000)]
Change how we handle alloca to conform with how it is suggested in the autoconf manual for AC_FUNC_ALLOCA. FreeBSD 6 now builds again and no other platforms should be broken by this.

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

13 years agoChange autoconf logic a bit so it says what it is looking for in two instances where...
Joshua Colp [Sun, 18 Nov 2007 16:43:08 +0000 (16:43 +0000)]
Change autoconf logic a bit so it says what it is looking for in two instances where it didn't.

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

13 years agoUse autoconf logic to determine the presence of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_N...
Joshua Colp [Sat, 17 Nov 2007 23:03:16 +0000 (23:03 +0000)]
Use autoconf logic to determine the presence of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP and PTHREAD_MUTEX_RECURSIVE_NP. Enclose error message from network.h in "

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

13 years agoAdd SS7 Generic address support (#11156)
Matthew Fredrickson [Sat, 17 Nov 2007 21:47:48 +0000 (21:47 +0000)]
Add SS7 Generic address support (#11156)

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

13 years agoif alloca.h is not present, try malloc.h
Luigi Rizzo [Sat, 17 Nov 2007 19:29:54 +0000 (19:29 +0000)]
if alloca.h is not present, try malloc.h

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

13 years agotemporarily disable this target in mingw
Luigi Rizzo [Sat, 17 Nov 2007 19:29:04 +0000 (19:29 +0000)]
temporarily disable this target in mingw

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

13 years agowill i ever get precedences for windows right ?
Luigi Rizzo [Sat, 17 Nov 2007 19:27:51 +0000 (19:27 +0000)]
will i ever get precedences for windows right ?
in the meantime, use a variable to ease enabling/disabling print subdirectories.

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

13 years agoreformulate dependencies in a more correct way
Luigi Rizzo [Sat, 17 Nov 2007 19:00:07 +0000 (19:00 +0000)]
reformulate dependencies in a more correct way

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

13 years agoa quick fix to pbx_dundi.c to make it so it will compile. Hope I did the right thing...
Steve Murphy [Sat, 17 Nov 2007 17:46:36 +0000 (17:46 +0000)]
a quick fix to pbx_dundi.c to make it so it will compile. Hope I did the right thing. And some additions to removal of extens to take care of hashtab pointers in all cases.

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

13 years agoas discussed some time ago on the -dev list, create embedde object
Luigi Rizzo [Sat, 17 Nov 2007 17:27:26 +0000 (17:27 +0000)]
as discussed some time ago on the -dev list, create embedde object
with a .eo suffix even if they are coming from .cc sources.
This simplifies the handling in the build scripts.

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

13 years agoprefer socket.h over other variants (winsock etc.)
Luigi Rizzo [Sat, 17 Nov 2007 16:32:18 +0000 (16:32 +0000)]
prefer socket.h over other variants (winsock etc.)

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

13 years agotrim more redundant headers
Luigi Rizzo [Sat, 17 Nov 2007 16:18:53 +0000 (16:18 +0000)]
trim more redundant headers

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

13 years agoremove unnecessary includes
Luigi Rizzo [Sat, 17 Nov 2007 14:47:33 +0000 (14:47 +0000)]
remove unnecessary includes

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

13 years agofix breakage induced by previous mistake
Luigi Rizzo [Sat, 17 Nov 2007 14:45:46 +0000 (14:45 +0000)]
fix breakage induced by previous mistake

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

13 years agowrong variable, wrong order -> broken build.
Luigi Rizzo [Sat, 17 Nov 2007 14:44:03 +0000 (14:44 +0000)]
wrong variable, wrong order -> broken build.

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

13 years agostart using asterisk/network.h for network related headers.
Luigi Rizzo [Sat, 17 Nov 2007 14:11:53 +0000 (14:11 +0000)]
start using asterisk/network.h for network related headers.
Also remove some unnecessary includes.

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

13 years agowrapper for all generic network headers that have different names
Luigi Rizzo [Sat, 17 Nov 2007 14:00:24 +0000 (14:00 +0000)]
wrapper for all generic network headers that have different names
and locations on the various systems.

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

13 years agomain is called main not amain!
Luigi Rizzo [Sat, 17 Nov 2007 12:44:22 +0000 (12:44 +0000)]
main is called main not amain!

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

13 years agoconditional targets for building the windows version
Luigi Rizzo [Sat, 17 Nov 2007 12:33:15 +0000 (12:33 +0000)]
conditional targets for building the windows version

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

13 years agosupport cygwin targets
Luigi Rizzo [Sat, 17 Nov 2007 11:57:52 +0000 (11:57 +0000)]
support cygwin targets

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

13 years agoand this is the last one to have asterisk compile (not run yet)
Luigi Rizzo [Sat, 17 Nov 2007 11:10:16 +0000 (11:10 +0000)]
and this is the last one to have asterisk compile (not run yet)
natively under cygwin.

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

13 years agoanother cygwin compatibility fix.
Luigi Rizzo [Sat, 17 Nov 2007 11:08:58 +0000 (11:08 +0000)]
another cygwin compatibility fix.
This one must be handled in a better way in configure, also for other
architectures

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

13 years agomore cygwin/mingw32 compatibility fixes
Luigi Rizzo [Sat, 17 Nov 2007 10:54:52 +0000 (10:54 +0000)]
more cygwin/mingw32 compatibility fixes

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

13 years agouse autoconf results to conditionally compile timersub
Luigi Rizzo [Sat, 17 Nov 2007 10:32:56 +0000 (10:32 +0000)]
use autoconf results to conditionally compile timersub

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