Commit Graph

14754 Commits

Author SHA1 Message Date
Russell Bryant 0e3ef53ddd note that the chan_sip conversion is already in progress
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-27 04:42:59 +00:00
Russell Bryant 4314170e73 add another janitor project
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-27 04:33:30 +00:00
Russell Bryant cf78b1c81d Add the stuff from the janitor projects page that is still relevant. I figure
that if we keep this in the tree, it will be much easier to keep up to date.
The page on asterisk.org just links to this on svn.digium.com/view


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-27 04:14:54 +00:00
Jason Parker e5ce766eed Create placeholder file...for now.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104418 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-27 03:52:18 +00:00
Tilghman Lesher ca76b2fb3e Whitespace changes only
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-27 02:05:36 +00:00
Russell Bryant c1fb44537b Merged revisions 104334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104334 | russell | 2008-02-26 19:15:02 -0600 (Tue, 26 Feb 2008) | 3 lines

Avoid some recursion in the cleanup code for the chanspy datastore
(closes issue #12076, reported by junky, patched by me)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-27 01:16:06 +00:00
Russell Bryant d07578d1e1 Blocked revisions 104332 via svnmerge
........
r104332 | russell | 2008-02-26 18:54:29 -0600 (Tue, 26 Feb 2008) | 5 lines

Zaptel 1.4 now exposes FXO battery state as an alarm.  However, Asterisk 1.4
does not know what to do with these alarms.  Only Asterisk 1.6 cares about it.
So, if we get an unknown alarm in chan_zap, don't generate confusing log messages
about it.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-27 00:55:12 +00:00
Steve Murphy 6bb33538e1 small change to allow this file to compile. No problem if you don't install the libsnmp package.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 22:14:22 +00:00
Russell Bryant b0ba749ca1 I swear I compiled this ... *cough*
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 20:33:08 +00:00
Russell Bryant 910b9f8a2c fix this module, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 20:30:50 +00:00
Russell Bryant ec75edce0a fix this module
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 20:28:47 +00:00
Russell Bryant 8d90438b42 Re-add the automatically generated version.h, so that modules can include for
making build time decisions for cross asterisk version compatibility


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 20:19:03 +00:00
Russell Bryant 0036cde5f3 Rename version.h to ast_version.h. Next, I will be re-adding version.h as an
automatically generated file like it used to be.  This still needs to be there
for modules that have to check it to compile against multiple asterisk versions.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 20:02:14 +00:00
Joshua Colp 2a7eac9940 Add an 'e' option to ResetCDR which re-enables a CDR that has been disabled.
(closes issue #11170)
Reported by: kratzers
Patches:
      ResetCDR.1.diff uploaded by kratzers (license 307)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 19:14:04 +00:00
Tilghman Lesher a616346c6d 1) Make braces mandatory for if/for/while, even around single statements.
2) Revise the argument parsing section, showing use of the standard macros.
3) Fix a typo.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 18:40:26 +00:00
Jason Parker bc5b59b13d Merged revisions 104141 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104141 | qwell | 2008-02-26 12:26:12 -0600 (Tue, 26 Feb 2008) | 1 line

Add badshell to .PHONY target (thanks Kevin)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 18:27:08 +00:00
Jason Parker 50f43efb78 Merged revisions 104139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104139 | qwell | 2008-02-26 12:09:13 -0600 (Tue, 26 Feb 2008) | 2 lines

Since all shells aren't as awesome as bash, we have to fail if somebody tries to use a literal "~" in DESTDIR.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 18:10:20 +00:00
Olle Johansson 82cef0fa88 Formatting and doxygen while waiting on an airport...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 16:51:25 +00:00
Jason Parker d527ff6bb6 Merged revisions 104135 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104135 | qwell | 2008-02-26 10:35:06 -0600 (Tue, 26 Feb 2008) | 5 lines

Revert previous abspath change.
...abspath is new in GNU make 3.81.  I feel so...defeated.

Must find new fix!

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 16:36:49 +00:00
Jason Parker 2ccb170113 Merged revisions 104132 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104132 | qwell | 2008-02-26 10:08:44 -0600 (Tue, 26 Feb 2008) | 9 lines

Fix a very bizarre issue we were seeing with our buildbot when using a DESTDIR that
 wasn't an absolute path (such as DESTDIR=~/asterisk-1.4).

Apparently what was happening, was that some of the targets were being expanded to
 the full path, so $@ ended up being /root/asterisk-1.4/[...]/ rather than ~/asterisk-1.4/[...]/

It appears that this may be a new "feature" in GNU make.
(*cough* http://en.wikipedia.org/wiki/Principle_of_least_surprise *cough*)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 16:09:38 +00:00
Mark Michelson 9a9a4e9701 Remove more hardcoded pipe symbols and replace with commas.
(closes issue #12072)
Reported by: SimonSharman
Patches:
      features.patch uploaded by SimonSharman (license 410)
Tested by: SimonSharman



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 14:51:21 +00:00
Tilghman Lesher bf92cca5fa Use the readhandle for reads (closes issue #12069)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 06:43:16 +00:00
Russell Bryant e2e24a1bed Add a \todo to convert this module to the event system
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 00:38:02 +00:00
Russell Bryant 86e26793c2 Update CHANGES for SMDI stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 00:35:30 +00:00
Russell Bryant 3a8756c9b4 Merged revisions 104119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104119 | russell | 2008-02-25 18:25:29 -0600 (Mon, 25 Feb 2008) | 33 lines

Merge changes from team/russell/smdi-1.4

This commit brings in a significant set of changes to the SMDI support in Asterisk.
There were a number of bugs in the current implementation, most notably being that
it was very likely on busy systems to pop off the wrong message from the SMDI message
queue.  So, this set of changes fixes the issues discovered as well as introducing
some new ways to use the SMDI support which are required to avoid the bugs with
grabbing the wrong message off of the queue.

This code introduces a new interface to SMDI, with two dialplan functions.  First,
you get an SMDI message in the dialplan using SMDI_MSG_RETRIEVE() and then you access
details in the message using the SMDI_MSG() function.  A side benefit of this is that
it now supports more than just chan_zap.

For example, with this implementation, you can have some FXO lines being terminated 
on a SIP gateway, but the SMDI link in Asterisk.

Another issue with the current implementation is that it is quite common that the
station ID that comes in on the SMDI link is not necessarily the same as the Asterisk
voicemail box.  There are now additional directives in the smdi.conf configuration
file which let you map SMDI station IDs to Asterisk voicemail boxes.

Yet another issue with the current SMDI support was related to MWI reporting over
the SMDI link.  The current code could only report a MWI change when the change
was made by someone calling into voicemail.  If the change was made by some other
entity (such as with IMAP storage, or with a web interface of some kind), then the
MWI change would never be sent.  The SMDI module can now poll for MWI changes if
configured to do so.

This work was inspired by and primarily done for the University of Pennsylvania.

(also related to issue #9260)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 00:31:40 +00:00
Jason Parker 7f97d296be Blocked revisions 104111 via svnmerge
........
r104111 | qwell | 2008-02-25 18:03:30 -0600 (Mon, 25 Feb 2008) | 7 lines

IPTOS_MINCOST is not defined on Solaris.

(closes issue #12050)
Reported by: asgaroth
Patches:
      12050.patch uploaded by putnopvut (license 60)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-26 00:05:17 +00:00
Russell Bryant f8412a637d Deprecate the "stripmsd" option in favor of dialplan substring variable syntax.
(closes issue #12060)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 23:56:47 +00:00
Russell Bryant 6554a7bf3a Merged revisions 104106 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104106 | russell | 2008-02-25 17:42:42 -0600 (Mon, 25 Feb 2008) | 10 lines

This patch fixes some pretty significant problems with how app_chanspy handles
pointers to channels that are being spied upon.  It was very likely that a
crash would occur if the channel being spied upon hung up.  This was because
the current ast_channel handling _requires_ that the object is locked or else
it could disappear at any time (except in the owning channel thread).  So, this
patch uses some channel datastore magic on the spied upon channel to be able to
detect if and when the channel goes away.
(closes issue #11877)
(patch written by me, but thanks to kpfleming for the idea, and to file for review)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 23:48:16 +00:00
Russell Bryant 16b84e260c Merged revisions 104102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104102 | russell | 2008-02-25 17:19:05 -0600 (Mon, 25 Feb 2008) | 7 lines

Improve the lock tracking code a bit so that a bunch of old locks that threads
failed to lock don't sit around in the history.  When a lock is first locked,
this checks to see if the last lock in the list was one that was failed to be
locked.  If it is, then that was a lock that we're no longer sitting in a trylock
loop trying to lock, so just remove it.
(inspired by issue #11712)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 23:19:31 +00:00
Tilghman Lesher f274f7bcaa Permit additional CDR columns to be saved in Postgres. Note that these
changes are backward-compatible, so no changes to UPGRADE.txt are
necessary.
(closes issue #9279)
 Reported by: rottenroddy
 Patches: 
       20080125__bug9279.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 23:04:20 +00:00
Tilghman Lesher 465b0c098d Shared space for variables (instead of letting other channels muck with your own)
(closes issue #11943)
 Reported by: ramonpeek
 Patches: 
       20080208__bug11943__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: jmls


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 21:56:19 +00:00
Tilghman Lesher 4da977e01e Merged revisions 104094 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104094 | tilghman | 2008-02-25 15:31:47 -0600 (Mon, 25 Feb 2008) | 5 lines

If the destination folder is full, don't delete a message when exiting.
(closes issue #12065)
 Reported by: selsky
 Patch by: (myself)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 21:53:36 +00:00
Joshua Colp b5a5db340c Merged revisions 104095 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104095 | file | 2008-02-25 17:37:20 -0400 (Mon, 25 Feb 2008) | 6 lines

Make it so a users.conf user creates both a SIP peer and a SIP user. The user will be used for inbound authentication for the device, and peer will be used for placing calls to the device.
(closes issue #9044)
Reported by: queuetue
Patches:
      sip-gui-friend.diff uploaded by qwell (license 4)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 21:40:30 +00:00
Jason Parker 84e302bfe0 Merged revisions 104092 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104092 | qwell | 2008-02-25 14:49:42 -0600 (Mon, 25 Feb 2008) | 11 lines

Allow the use of #include and #exec in situations where the max include depth was only 1.
Specifically, this fixes using #include and #exec in extconfig.conf.

This was basically caused because the config file itself raises the include level to 1.

I opted not to raise the include limit, because recursion here could cause very bizarre behavior.

Pointed out, and tested by jmls

(closes issue #12064)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 20:50:57 +00:00
Joshua Colp 581c8c7bf2 Instead of outputting a verbose message every so often let's make it a debug message.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 19:02:33 +00:00
Brett Bryant 55aaa80d15 Adding more tls configuration details to sip.conf sample, with a list of valid ciphers provided in both files. .. First commit since July, woot
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 19:00:16 +00:00
Russell Bryant 871e86846e Merged revisions 104086 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104086 | russell | 2008-02-25 12:38:10 -0600 (Mon, 25 Feb 2008) | 4 lines

Ensure that the channel doesn't disappear in agent_logoff().  If it does, it
could cause a crash.
(fixes the crash reported in BE-396)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 18:38:51 +00:00
Joshua Colp 26e297b27f Merged revisions 104084 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104084 | file | 2008-02-25 12:16:13 -0400 (Mon, 25 Feb 2008) | 6 lines

If a resubscription comes in for a dialog we no longer know about tell the remote side that the dialog does not exist so they subscribe again using a new dialog.
(closes issue #10727)
Reported by: s0l4rb03
Patches:
      10727-2.diff uploaded by file (license 11)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 16:18:46 +00:00
Joshua Colp 5410140ae1 Merged revisions 104082 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104082 | file | 2008-02-25 11:17:18 -0400 (Mon, 25 Feb 2008) | 6 lines

Due to recent changes tag will no longer be NULL if not present so we have to use ast_strlen_zero to see if it's actually blank.
(closes issue #12061)
Reported by: flefoll
Patches:
      chan_sip.c.br14.patch_pedantic_no_totag uploaded by flefoll (license 244)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 15:19:58 +00:00
Joshua Colp 559870fd8a Fix building of trunk. dbpass is always going to exist.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-25 15:12:48 +00:00
Steve Murphy c33c0855b8 Enforce a space between function args as per code review.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-24 02:37:08 +00:00
Steve Murphy 14529764d7 On a 64-bit machine, with dev-mode turned on, and pgsql installed, I get warnings that stops the compile. They are fixed now.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-24 00:44:14 +00:00
Doug Bailey 552b782fc2 Add protection to chan_zap build when NEONMWI events are not defined
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-22 23:56:55 +00:00
Tilghman Lesher f92a3e119e Move Originate to a separate privilege and require the additional System privilege to call out to a subshell.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-22 22:55:35 +00:00
Tilghman Lesher e537a1368c Merged revisions 104037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104037 | tilghman | 2008-02-22 16:45:14 -0600 (Fri, 22 Feb 2008) | 6 lines

Backwards debug message.
(closes issue #12052)
 Reported by: flefoll
 Patches: 
       chan_sip.c.br14.patch_found-notfound uploaded by flefoll (license 244)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-22 22:48:18 +00:00
Tilghman Lesher 9392dae2d6 Allow database password to be NULL and several other cleanups.
(closes issue #12048)
 Reported by: bukaj
 Patches: 
       20080222__bug12048.diff.txt uploaded by Corydon76 (license 14)
 Tested by: bukaj


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104036 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-22 22:39:21 +00:00
Russell Bryant 0bcd2ae4b0 fix a typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-21 21:27:24 +00:00
Mark Michelson bfcbd6c963 Blocked revisions 104027 via svnmerge
........
r104027 | mmichelson | 2008-02-21 15:05:42 -0600 (Thu, 21 Feb 2008) | 4 lines

And as a followup to revision 104026, completely remove event-related
calls from a section of code where we know there was no event to handle or get.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-21 21:09:54 +00:00
Mark Michelson 093c13642a Blocked revisions 104026 via svnmerge
........
r104026 | mmichelson | 2008-02-21 14:12:38 -0600 (Thu, 21 Feb 2008) | 7 lines

Remove an incorrect debug message. It reported that it had received a specific event and tried to report
which event was received. What actually was happening was that it was reporting the number of bytes returned
from a call to read().

Thanks to Jared Smith for bringing the issue up on IRC


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-21 21:09:11 +00:00
Mark Michelson 7fa044f86f Instead of a notice, make the message about a hung-up channel a debug message, and revert the original
logic on the if statement. Thanks to Juggie for bringing this to my attention.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-21 17:44:34 +00:00