<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Yes i can get the user remaining minutes from my database, the scrips runs; but when i run exec("Dial","IAX2/400") then geting the channelStatus if is answer it does not hangup using either getChannel().hangup() or just hangup().</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>note:</STRONG> when running Dial from my script, it blocks for a period about 13seconds then the program continue to the next statment.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I think you get what i want to achieve. dialing from the script, if the channel is answered, set a timer, if the caller consumed his minutes, from the script i hangup.</DIV></div><br>




      </body></html>