[Asterisk-cvs] astcc astcc.agi,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Thu Jul 29 23:19:34 CDT 2004


Update of /usr/cvsroot/astcc
In directory localhost.localdomain:/tmp/cvs-serv28787

Modified Files:
	astcc.agi 
Log Message:
Merge John's second astcc patch for Zap and SIP!@


Index: astcc.agi
===================================================================
RCS file: /usr/cvsroot/astcc/astcc.agi,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- astcc.agi	14 Jul 2004 03:22:27 -0000	1.3
+++ astcc.agi	30 Jul 2004 03:05:38 -0000	1.4
@@ -228,6 +228,23 @@
 		$dialstatus = $AGI->get_variable("DIALSTATUS");
 		return $dialstatus;
 	}
+	
+	if ($res->{tech} eq "Zap") {
+		$dialstr = "Zap/$res->{path}/$phone|30|HS(" . ($maxtime * 60) . ")";
+		$res = $AGI->exec("DIAL $dialstr");
+                $answeredtime = $AGI->get_variable("ANSWEREDTIME");
+                $dialstatus = $AGI->get_variable("DIALSTATUS");
+                return $dialstatus;
+	}
+
+	if ($res->{tech eq "SIP") {
+		$dialstr = "SIP/$res->{path}/$phone|30|HS(" . ($maxtime * 60) . ")";
+		$res = $AGI->exec("DIAL $dialstr");
+		$answeredtime = $AGI->get_variable("ANSWREDTIME");
+		$dialstatus = $AGI->get_variable("DIALSTATUS");
+		return $dialstatus;
+	}
+
 	return "CHANUNAVAIL";
 }
 




More information about the svn-commits mailing list