head 1.2;
access;
symbols
pkgsrc-2018Q2:1.1.1.1.0.64
pkgsrc-2018Q2-base:1.1.1.1
pkgsrc-2018Q1:1.1.1.1.0.62
pkgsrc-2018Q1-base:1.1.1.1
pkgsrc-2017Q4:1.1.1.1.0.60
pkgsrc-2017Q4-base:1.1.1.1
pkgsrc-2017Q3:1.1.1.1.0.58
pkgsrc-2017Q3-base:1.1.1.1
pkgsrc-2017Q2:1.1.1.1.0.54
pkgsrc-2017Q2-base:1.1.1.1
pkgsrc-2017Q1:1.1.1.1.0.52
pkgsrc-2017Q1-base:1.1.1.1
pkgsrc-2016Q4:1.1.1.1.0.50
pkgsrc-2016Q4-base:1.1.1.1
pkgsrc-2016Q3:1.1.1.1.0.48
pkgsrc-2016Q3-base:1.1.1.1
pkgsrc-2016Q2:1.1.1.1.0.46
pkgsrc-2016Q2-base:1.1.1.1
pkgsrc-2016Q1:1.1.1.1.0.44
pkgsrc-2016Q1-base:1.1.1.1
pkgsrc-2015Q4:1.1.1.1.0.42
pkgsrc-2015Q4-base:1.1.1.1
pkgsrc-2015Q3:1.1.1.1.0.40
pkgsrc-2015Q3-base:1.1.1.1
pkgsrc-2015Q2:1.1.1.1.0.38
pkgsrc-2015Q2-base:1.1.1.1
pkgsrc-2015Q1:1.1.1.1.0.36
pkgsrc-2015Q1-base:1.1.1.1
pkgsrc-2014Q4:1.1.1.1.0.34
pkgsrc-2014Q4-base:1.1.1.1
pkgsrc-2014Q3:1.1.1.1.0.32
pkgsrc-2014Q3-base:1.1.1.1
pkgsrc-2014Q2:1.1.1.1.0.30
pkgsrc-2014Q2-base:1.1.1.1
pkgsrc-2014Q1:1.1.1.1.0.28
pkgsrc-2014Q1-base:1.1.1.1
pkgsrc-2013Q4:1.1.1.1.0.26
pkgsrc-2013Q4-base:1.1.1.1
pkgsrc-2013Q3:1.1.1.1.0.24
pkgsrc-2013Q3-base:1.1.1.1
pkgsrc-2013Q2:1.1.1.1.0.22
pkgsrc-2013Q2-base:1.1.1.1
pkgsrc-2013Q1:1.1.1.1.0.20
pkgsrc-2013Q1-base:1.1.1.1
pkgsrc-2012Q4:1.1.1.1.0.18
pkgsrc-2012Q4-base:1.1.1.1
pkgsrc-2012Q3:1.1.1.1.0.16
pkgsrc-2012Q3-base:1.1.1.1
pkgsrc-2012Q2:1.1.1.1.0.14
pkgsrc-2012Q2-base:1.1.1.1
pkgsrc-2012Q1:1.1.1.1.0.12
pkgsrc-2012Q1-base:1.1.1.1
pkgsrc-2011Q4:1.1.1.1.0.10
pkgsrc-2011Q4-base:1.1.1.1
pkgsrc-2011Q3:1.1.1.1.0.8
pkgsrc-2011Q3-base:1.1.1.1
pkgsrc-2011Q2:1.1.1.1.0.6
pkgsrc-2011Q2-base:1.1.1.1
pkgsrc-2011Q1:1.1.1.1.0.4
pkgsrc-2011Q1-base:1.1.1.1
pkgsrc-2010Q4:1.1.1.1.0.2
pkgsrc-2010Q4-base:1.1.1.1
pkgsrc-base:1.1.1.1
TNF:1.1.1;
locks; strict;
comment @# @;
1.2
date 2018.07.16.21.17.13; author jnemeth; state dead;
branches;
next 1.1;
commitid G2EZX8T1D6hWdpKA;
1.1
date 2010.12.15.03.22.45; author jnemeth; state Exp;
branches
1.1.1.1;
next ;
1.1.1.1
date 2010.12.15.03.22.45; author jnemeth; state Exp;
branches;
next ;
desc
@@
1.2
log
@Deleting comms/asterisk18 (Asterisk 1.8.*) as mentioned on
pkgsrc-users@@ a few weeks ago. This package is ancient and has
been EOL for a couple of years. It likely has numerous security
issues. Also, the PKGNAME will conflict with the upcoming Asterisk
18.* in a couple of years times. There were no objections.
@
text
@$NetBSD: patch-bc,v 1.1 2010/12/15 03:22:45 jnemeth Exp $
--- contrib/scripts/vmail.cgi.orig 2008-09-20 00:55:01.000000000 +0000
+++ contrib/scripts/vmail.cgi
@@@@ -145,7 +145,7 @@@@ sub check_login($$)
$context = "default";
}
if (!$filename) {
- $filename = "/etc/asterisk/voicemail.conf";
+ $filename = "@@ASTETCDIR@@/voicemail.conf";
}
# print header;
# print "Including
$filename
while in
$category
...\n";
@@@@ -153,7 +153,7 @@@@ sub check_login($$)
while() {
chomp;
if (/include\s\"([^\"]+)\"$/) {
- ($tmp, $category) = &check_login("/etc/asterisk/$1", $category);
+ ($tmp, $category) = &check_login("@@ASTETCDIR@@/$1", $category);
if (length($tmp)) {
# print "Got '$tmp'\n";
return ($tmp, $category);
@@@@ -200,7 +200,7 @@@@ sub check_login_users {
my ($mbox, $context) = split(/\@@/, param('mailbox'));
my $pass = param('password');
my ($found, $fullname) = (0, "");
- open VMAIL, ") {
chomp;
if (m/\[(.*)\]/) {
@@@@ -242,7 +242,7 @@@@ sub validmailbox($$$$)
$context = "default";
}
if (!$filename) {
- $filename = "/etc/asterisk/voicemail.conf";
+ $filename = "@@ASTETCDIR@@/voicemail.conf";
}
if (!$category) {
$category = "general";
@@@@ -251,7 +251,7 @@@@ sub validmailbox($$$$)
while () {
chomp;
if (/include\s\"([^\"]+)\"$/) {
- ($tmp, $category) = &validmailbox($mbox, $context, "/etc/asterisk/$1");
+ ($tmp, $category) = &validmailbox($mbox, $context, "@@ASTETCDIR@@/$1");
if ($tmp) {
return ($tmp, $category);
}
@@@@ -298,7 +298,7 @@@@ sub mailbox_options()
local $tmp2;
local $tmp;
if (!$filename) {
- $filename = "/etc/asterisk/voicemail.conf";
+ $filename = "@@ASTETCDIR@@/voicemail.conf";
}
if (!$category) {
$category = "general";
@@@@ -386,7 +386,7 @@@@ sub mailbox_list()
sub msgcount()
{
my ($context, $mailbox, $folder) = @@_;
- my $path = "/var/spool/asterisk/voicemail/$context/$mailbox/$folder";
+ my $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mailbox/$folder";
if (opendir(DIR, $path)) {
my @@msgs = grep(/^msg....\.txt$/, readdir(DIR));
closedir(DIR);
@@@@ -410,7 +410,7 @@@@ sub msgcountstr()
sub messages()
{
my ($context, $mailbox, $folder) = @@_;
- my $path = "/var/spool/asterisk/voicemail/$context/$mailbox/$folder";
+ my $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mailbox/$folder";
if (opendir(DIR, $path)) {
my @@msgs = sort grep(/^msg....\.txt$/, readdir(DIR));
closedir(DIR);
@@@@ -435,7 +435,7 @@@@ sub getfields()
{
my ($context, $mailbox, $folder, $msg) = @@_;
my $fields;
- if (open(MSG, ") {
s/\#.*$//g;
if (/^(\w+)\s*\=\s*(.*)$/) {
@@@@ -560,7 +560,7 @@@@ _EOH
-
+
@@@@ -588,7 +588,7 @@@@ sub message_audio()
}
&untaint($format);
- my $path = "/var/spool/asterisk/voicemail/$context/$mailbox/$folder/msg${msgid}.$format";
+ my $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mailbox/$folder/msg${msgid}.$format";
$msgid =~ /^\d\d\d\d$/ || die("Msgid Liar ($msgid)!");
grep(/^${format}$/, keys %formats) || die("Format Liar ($format)!");
@@@@ -809,11 +809,11 @@@@ sub message_rename()
die("Invalid old Message \n");
}
- my $path = "/var/spool/asterisk/voicemail/$context/$mbox/$newfolder";
+ my $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mbox/$newfolder";
$path =~ /^(.*)$/;
$path = $1;
mkdir $path, 0770;
- $path = "/var/spool/asterisk/voicemail/$context/$mbox/$oldfolder";
+ $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mbox/$oldfolder";
opendir(DIR, $path) || die("Unable to open directory\n");
my @@files = grep /^msg${old}\.\w+$/, readdir(DIR);
closedir(DIR);
@@@@ -823,7 +823,7 @@@@ sub message_rename()
$tmp = $1;
$oldfile = $path . "/$tmp";
$tmp =~ s/msg${old}/msg${new}/;
- $newfile = "/var/spool/asterisk/voicemail/$context/$mbox/$newfolder/$tmp";
+ $newfile = "@@ASTSPOOLDIR@@/voicemail/$context/$mbox/$newfolder/$tmp";
# print "Renaming $oldfile to $newfile \n";
rename($oldfile, $newfile);
}
@@@@ -884,15 +884,15 @@@@ sub message_copy()
die("Invalid old Message \n");
}
- my $path = "/var/spool/asterisk/voicemail/$context/$newmbox";
+ my $path = "@@ASTSPOOLDIR@@/voicemail/$context/$newmbox";
$path =~ /^(.*)$/;
$path = $1;
mkdir $path, 0770;
- $path = "/var/spool/asterisk/voicemail/$context/$newmbox/INBOX";
+ $path = "@@ASTSPOOLDIR@@/voicemail/$context/$newmbox/INBOX";
$path =~ /^(.*)$/;
$path = $1;
mkdir $path, 0770;
- $path = "/var/spool/asterisk/voicemail/$context/$mbox/$oldfolder";
+ $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mbox/$oldfolder";
opendir(DIR, $path) || die("Unable to open directory\n");
my @@files = grep /^msg${old}\.\w+$/, readdir(DIR);
closedir(DIR);
@@@@ -902,7 +902,7 @@@@ sub message_copy()
$tmp = $1;
$oldfile = $path . "/$tmp";
$tmp =~ s/msg${old}/msg${new}/;
- $newfile = "/var/spool/asterisk/voicemail/$context/$newmbox/INBOX/$tmp";
+ $newfile = "@@ASTSPOOLDIR@@/voicemail/$context/$newmbox/INBOX/$tmp";
# print "Copying $oldfile to $newfile \n";
&file_copy($oldfile, $newfile);
}
@@@@ -932,7 +932,7 @@@@ sub message_delete()
} else {
die("Invalid Message \n");
}
- my $path = "/var/spool/asterisk/voicemail/$context/$mbox/$folder";
+ my $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mbox/$folder";
opendir(DIR, $path) || die("Unable to open directory\n");
my @@files = grep /^msg${msg}\.\w+$/, readdir(DIR);
closedir(DIR);
@@@@ -968,7 +968,7 @@@@ sub message_forward()
my $txt;
$context = &untaint($context);
$newmbox = &untaint($newmbox);
- my $path = "/var/spool/asterisk/voicemail/$context/$newmbox/INBOX";
+ my $path = "@@ASTSPOOLDIR@@/voicemail/$context/$newmbox/INBOX";
if ($msgs[0]) {
if (&lock_path($path) == 0) {
$msgcount = &msgcount($context, $newmbox, "INBOX");
@@@@ -1018,7 +1018,7 @@@@ sub message_delete_or_move()
$context = &untaint($context);
$mbox = &untaint($mbox);
$folder = &untaint($folder);
- $path = "/var/spool/asterisk/voicemail/$context/$mbox/$folder";
+ $path = "@@ASTSPOOLDIR@@/voicemail/$context/$mbox/$folder";
if ($msgs[0]) {
if (&lock_path($path) == 0) {
my $msgcount = &msgcount($context, $mbox, $folder);
@
1.1
log
@Initial revision
@
text
@d1 1
a1 1
$NetBSD: patch-bc,v 1.1 2010/05/06 20:10:17 jnemeth Exp $
@
1.1.1.1
log
@ Import Asterisk 1.8.1:
Asterisk is a complete PBX in software. It provides all of the
features you would expect from a PBX and more. Asterisk does voice
over IP in three protocols, and can interoperate with almost all
standards-based telephony equipment using relatively inexpensive
hardware.
Asterisk 1.8 is a long term support version (i.e. it will be
supported for four years with an additional year of security only
fixes). See:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
What's new:
Asterisk 1.8 is the next major release series of Asterisk.
The release of Asterisk 1.8.0 would not have been possible without the support
and contributions of the community. Since Asterisk 1.6.2, we've had over 500
reporters, more than 300 testers and greater than 200 developers contributed to
this release.
You can find a summary of the work involved with the 1.8.0 release in the
sumary:
http://svn.asterisk.org/svn/asterisk/tags/1.8.0/asterisk-1.8.0-summary.txt
A short list of available features includes:
* Secure RTP
* IPv6 Support in the SIP channel driver
* Connected Party Identification Support
* Calendaring Integration
* A new call logging system, Channel Event Logging (CEL)
* Distributed Device State using Jabber/XMPP PubSub
* Call Completion Supplementary Services support
* Advice of Charge support
* Much, much more!
A full list of new features can be found in the CHANGES file.
http://svn.digium.com/view/asterisk/branches/1.8/CHANGES?view=markup
For a full list of changes in the current release candidate, please see the
ChangeLog:
http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-1.8.0
-----
The Asterisk Development Team has announced the release of Asterisk 1.8.1.
The release of Asterisk 1.8.1 resolves several issues reported by the
community and would have not been possible without your participation.
Thank you!
The following is a sample of the issues resolved in this release:
* Fix issue when using directmedia. Asterisk needs to limit the codecs offered
to just the ones that both sides recognize, otherwise they may end up sending
audio that the other side doesn't understand.
(Closes issue #17403. Reported, patched by one47. Tested by one47, falves11)
* Resolve issue where Party A in an analog 3-way call would continue to hear
ringback after party C answers.
(Patched by rmudgett)
* Fix playback failure when using IAX with the timerfd module.
(Closes issue #18110. Reported, tested by tpanton. Patched by jpeeler)
* Fix problem with qualify option packets for realtime peers never stopping.
The option packets not only never stopped, but if a realtime peer was not in
the peer list multiple options dialogs could accumulate over time.
(Closes issue #16382. Reported by lftsy. Tested by zerohalo. Patched by
jpeeler)
* Fix issue where it is possible to crash Asterisk by feeding the curl engine
invalid data.
(Closes issue #18161. Reported by wdoekes. Patched by tilghman)
For a full list of changes in this release, please see the ChangeLog:
http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-1.8.1
@
text
@@