<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=978072701-08092004>I have set-up astcc
with outgoing sip channel. Call processing works fine but after the call tables,
CDR and Cards does not get updated. At the beginning it goes to the database and
fetch card details and correctly provides the card balance etc. Also it indeed
write the inuse field (so writing and reading from database works
fine).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=978072701-08092004>I've inserted a
break point as such in the code;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=978072701-08092004>$dialstatus =
$AGI->get_variable("DIALSTATUS");<BR>print STDERR "dial status
$dialstatus\n";</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=978072701-08092004>It seems like
dialstatus is not returned (which prints nothing).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=978072701-08092004>So obviously later
part of the agi does not go through database updating portion (which only
happens if dialstatus = Answerd).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=978072701-08092004>I am using deadagi
to call the astcc.agi script as explained.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=978072701-08092004>Can someone explain
why this happens ?????</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004>Cheers</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=978072701-08092004>dh</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>