Fix typo, remove timing by default, and check for release vs. disconnect
authorMark Spencer <markster@digium.com>
Mon, 12 May 2003 19:14:21 +0000 (19:14 +0000)
committerMark Spencer <markster@digium.com>
Mon, 12 May 2003 19:14:21 +0000 (19:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1005 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
channels/chan_zap.c
contrib/scripts/vmail.cgi
vmail.cgi

index 0d225a0..f0d1010 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ ifeq (${OSARCH},OpenBSD)
 CFLAGS+=-pthread
 endif
 
-CFLAGS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi)
+#CFLAGS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi)
 
 LIBEDIT=editline/libedit.a
 
index 3f7b42a..25c345c 100755 (executable)
@@ -1600,8 +1600,9 @@ static int zt_hangup(struct ast_channel *ast)
                if (p->sig == SIG_PRI) {
                        if (p->call) {
                                if (!pri_grab(p, p->pri)) {
-                                       res = pri_disconnect(p->pri->pri, p->call, PRI_CAUSE_NORMAL_CLEARING);
-                                       if (p->alreadyhungup) {
+                                       if (!p->alreadyhungup) {
+                                               res = pri_disconnect(p->pri->pri, p->call, PRI_CAUSE_NORMAL_CLEARING);
+                                       } else {
                                                pri_release(p->pri->pri, p->call, -1);
                                                p->call = NULL;
                                                p->alreadyhungup = 0;
index 99eed58..e6333bf 100755 (executable)
@@ -52,7 +52,7 @@ $stdcontainerstart
 <input type=hidden name="action" value="login">
 <table align=center>
 <tr><td valign=top align=center rowspan=6><img align=center src="$astpath/animlogo.gif"></td></tr>
-<tr><td align=center colspan=2><font size=+2>Commedian Mail Login</font></td></tr>
+<tr><td align=center colspan=2><font size=+2>Comedian Mail Login</font></td></tr>
 <tr><td align=center colspan=2><font size=+1>$message</font></td></tr>
 <tr><td>Mailbox:</td><td><input type=text name="mailbox"></td></tr>
 <tr><td>Password:</td><td><input type=password name="password"></td></tr>
index 99eed58..e6333bf 100755 (executable)
--- a/vmail.cgi
+++ b/vmail.cgi
@@ -52,7 +52,7 @@ $stdcontainerstart
 <input type=hidden name="action" value="login">
 <table align=center>
 <tr><td valign=top align=center rowspan=6><img align=center src="$astpath/animlogo.gif"></td></tr>
-<tr><td align=center colspan=2><font size=+2>Commedian Mail Login</font></td></tr>
+<tr><td align=center colspan=2><font size=+2>Comedian Mail Login</font></td></tr>
 <tr><td align=center colspan=2><font size=+1>$message</font></td></tr>
 <tr><td>Mailbox:</td><td><input type=text name="mailbox"></td></tr>
 <tr><td>Password:</td><td><input type=password name="password"></td></tr>