summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-01-04 21:23:01 -0500
committerCorey Farrell <git@cfware.com>2016-01-05 12:10:16 -0500
commite462f0063f3e7fd2a2d8f0603d9c7cf8de46a88f (patch)
treef46085cf3dcd2c4bb859e03154f94b23aa90c82a /main/asterisk.c
parentab191d124c5f1ac085c6c1e53a9983f879f194e5 (diff)
main/pbx: Move hangup handler routines to pbx_hangup_handler.c.
This is the sixth patch in a series meant to reduce the bulk of pbx.c. This moves hangup handler management functions to their own source. Change-Id: Ib25a75aa57fc7d5c4294479e5cc46775912fb104
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 82220b4df..c576c16f6 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -4668,6 +4668,11 @@ static void asterisk_daemon(int isroot, const char *runuser, const char *rungrou
exit(1);
}
+ if (load_pbx_hangup_handler()) {
+ printf("Failed: load_pbx_hangup_handler\n%s", term_quit());
+ exit(1);
+ }
+
if (ast_local_init()) {
printf("Failed: ast_local_init\n%s", term_quit());
exit(1);