diff options
Diffstat (limited to 'apps/app_softhangup.c')
-rw-r--r-- | apps/app_softhangup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c index bcc54a33f..374de0510 100644 --- a/apps/app_softhangup.c +++ b/apps/app_softhangup.c @@ -84,7 +84,7 @@ static int softhangup_exec(struct ast_channel *chan, void *data) /* XXX watch out, i think it is wrong to access c-> after unlocking! */ if (all) { /* CAPI is set up like CAPI[foo/bar]/clcnt */ - if (!strcmp(c->type,"CAPI")) + if (!strcmp(c->tech->type, "CAPI")) cut = strrchr(name,'/'); /* Basically everything else is Foo/Bar-Z */ else |