[Asterisk-Users] AGI Dial hangup with *

Alexey Goloshubin alexey at ii.uib.no
Mon Oct 24 02:08:49 MST 2005


Hi!

I have an AGI script (ala ASTCC) that is executed via DeadAGI.

The script does exec Dial. The caller is allowed to press '*' to hangup 
the call.

I want to distinguish between caller pressing *, callee hanging up and 
caller hanging up. In the first two situations the script should 
continue telling the caller that the call has ended and so on. In the 
third case the script is terminated.

The return value from exec Dial is -1 on any of the three hangups above. 
DIALSTATUS does not help much either.

Any pointers are very welcome!

Sincerely,
Alexey







More information about the asterisk-users mailing list