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().

note: when running Dial from my script, it blocks for a period about 13seconds 
then the program continue to the next statment.

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.


      
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to