AGI-Dial

Hello
Please I have some questions if any one can help me :
I execute an AGI Script to make a Dial(), but the problem that if I need to execute anything I have to wait that the Dial function ends (hangup) to make any other action (I used “g” option but I have to wait the hangup event )…

  • Any one know how I can do it with AGI script… ?
  • If is not possible with AGI scripts, any other way to do it ?
    Thanks

what functions do you have to do after the dial?

I also have a similar requirement after the call is finished i want to access a html page say mysite.com/hello.htm i was thinking about using " g" but dont know how to use in this case.

any help

Thanks,
Anand

Sorry about this late…
I want to execute a PHP File but I found the solution… using the M option… when the call is answred the macro is executed…