Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch Hangup Events #56

Open
tgwaste opened this issue Dec 2, 2020 · 1 comment
Open

Catch Hangup Events #56

tgwaste opened this issue Dec 2, 2020 · 1 comment

Comments

@tgwaste
Copy link

tgwaste commented Dec 2, 2020

So this project is great and it all makes sense but is there any way I could get an example of how to catch hangup events? I don't quite understand how that would work. When the caller hangs up I need to do a few things before returning to the Dial Plan.

@hazard595
Copy link

Except these two exceptions AGIAppError, AGISIGHUPHangup.
Also make sure you set AGISIGUP=no as follows before calling your AGI script from asterisk or else asterisk will kill your script abruptly on hangup.

exten => 123,1,Log(NOTICE, Executing script)
same => n,Set(AGISIGHUP=no)
same => n,AGI(/path/to/agi_script.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants