[Asterisk-cvs] astcc astcc-admin.cgi,1.6,1.7 astcc.agi,1.8,1.9
markster at lists.digium.com
markster at lists.digium.com
Wed Sep 1 14:30:17 CDT 2004
Update of /usr/cvsroot/astcc
In directory mongoose.digium.com:/tmp/cvs-serv7144
Modified Files:
astcc-admin.cgi astcc.agi
Log Message:
Add local channel support (bug #2346)
Index: astcc-admin.cgi
===================================================================
RCS file: /usr/cvsroot/astcc/astcc-admin.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- astcc-admin.cgi 23 Aug 2004 13:49:31 -0000 1.6
+++ astcc-admin.cgi 1 Sep 2004 18:33:35 -0000 1.7
@@ -18,7 +18,7 @@
my $copyright = "Asterisk™ Calling Card Manager by Mark Spencer, ©2004 Digium, Inc.";
@modes = ( "Home", "Brands", "Cards", "Trunks", "Routes", "Configure" );
@languages = ("en", "de", "fr", "es");
- at techs = ( "SIP", "IAX2", "Zap" );
+ at techs = ( "SIP", "IAX2", "Zap", "Local" );
@incs = ("6", "60");
my $dbh;
Index: astcc.agi
===================================================================
RCS file: /usr/cvsroot/astcc/astcc.agi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- astcc.agi 23 Aug 2004 13:49:31 -0000 1.8
+++ astcc.agi 1 Sep 2004 18:33:35 -0000 1.9
@@ -243,6 +243,14 @@
$res = $sth->fetchrow_hashref;
$sth->finish;
return "CHANUNAVAIL" unless $res;
+ if ($res->{tech} eq "Local") {
+ $dialstr = "Local/$phone/$res->{path}|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 "IAX2") {
$dialstr = "IAX2/$res->{path}/$phone|30|HS(" . ($maxtime * 60) . ")";
$res = $AGI->exec("DIAL $dialstr");
More information about the svn-commits
mailing list