[Asterisk-cvs] astcc astcc.agi,1.9,1.10

markster at lists.digium.com markster at lists.digium.com
Sun Sep 19 11:37:39 CDT 2004


Update of /usr/cvsroot/astcc
In directory mongoose.digium.com:/tmp/cvs-serv32580

Modified Files:
	astcc.agi 
Log Message:
Add timeout options (bug #2464)


Index: astcc.agi
===================================================================
RCS file: /usr/cvsroot/astcc/astcc.agi,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- astcc.agi	1 Sep 2004 18:33:35 -0000	1.9
+++ astcc.agi	19 Sep 2004 15:41:31 -0000	1.10
@@ -244,7 +244,7 @@
 	$sth->finish;
 	return "CHANUNAVAIL" unless $res;
 	if ($res->{tech} eq "Local") {
-		$dialstr = "Local/$phone/$res->{path}|30|HS(" . ($maxtime * 60) . ")";
+		$dialstr = "Local/$phone/$res->{path}|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)";
 		$res = $AGI->exec("DIAL $dialstr");
 		$answeredtime = $AGI->get_variable("ANSWEREDTIME");
 		$dialstatus = $AGI->get_variable("DIALSTATUS");
@@ -252,7 +252,7 @@
 	}
 	
 	if ($res->{tech} eq "IAX2") {
-		$dialstr = "IAX2/$res->{path}/$phone|30|HS(" . ($maxtime * 60) . ")";
+		$dialstr = "IAX2/$res->{path}/$phone|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)";
 		$res = $AGI->exec("DIAL $dialstr");
 		$answeredtime = $AGI->get_variable("ANSWEREDTIME");
 		$dialstatus = $AGI->get_variable("DIALSTATUS");
@@ -260,7 +260,7 @@
 	}
 	
 	if ($res->{tech} eq "Zap") {
-		$dialstr = "Zap/$res->{path}/$phone|30|HS(" . ($maxtime * 60) . ")";
+		$dialstr = "Zap/$res->{path}/$phone|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)";
 		$res = $AGI->exec("DIAL $dialstr");
                 $answeredtime = $AGI->get_variable("ANSWEREDTIME");
                 $dialstatus = $AGI->get_variable("DIALSTATUS");
@@ -268,7 +268,7 @@
 	}
 
 	if ($res->{tech} eq "SIP") {
-		$dialstr = "SIP/$res->{path}/$phone|30|HS(" . ($maxtime * 60) . ")";
+		$dialstr = "SIP/$res->{path}/$phone|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)";
 		$res = $AGI->exec("DIAL $dialstr");
 		$answeredtime = $AGI->get_variable("ANSWEREDTIME");
 		$dialstatus = $AGI->get_variable("DIALSTATUS");




More information about the svn-commits mailing list