[Asterisk-Dev] AGI - dialstatus

Peter Svensson psvasterisk at psv.nu
Fri Dec 10 07:00:20 MST 2004


On Fri, 10 Dec 2004, Yves wrote:

> The problem is that I need to know immediately when the call has begun. 
> I can have the call duration & establishment time at the end of the call 
> but not in real time when it happend. I tried to use a thread and check 
> with $AGI->get_variable("DIALSTATUS") but it's the same, the answer only 
> comes when the call is finished.

I think you have to use the manager port for that. The agi is just ment 
for the dialplan stuff. It will be hard to fit the asynchronous nature of 
what you need to the agi interface.

Peter





More information about the asterisk-dev mailing list