summaryrefslogtreecommitdiff
path: root/apps/app_softhangup.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_softhangup.c')
-rw-r--r--apps/app_softhangup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c
index 2a4befa9e..f3fc4c18f 100644
--- a/apps/app_softhangup.c
+++ b/apps/app_softhangup.c
@@ -107,7 +107,7 @@ static int softhangup_exec(struct ast_channel *chan, const char *data)
ast_copy_string(name, ast_channel_name(c), sizeof(name));
if (ast_test_flag(&flags, OPTION_ALL)) {
/* CAPI is set up like CAPI[foo/bar]/clcnt */
- if (!strcmp(c->tech->type, "CAPI")) {
+ if (!strcmp(ast_channel_tech(c)->type, "CAPI")) {
cut = strrchr(name, '/');
/* Basically everything else is Foo/Bar-Z */
} else {