diff options
Diffstat (limited to 'apps/app_softhangup.c')
-rw-r--r-- | apps/app_softhangup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c index cdfd7c147..2a4befa9e 100644 --- a/apps/app_softhangup.c +++ b/apps/app_softhangup.c @@ -104,7 +104,7 @@ static int softhangup_exec(struct ast_channel *chan, const char *data) while ((c = ast_channel_iterator_next(iter))) { ast_channel_lock(c); - ast_copy_string(name, c->name, sizeof(name)); + 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")) { @@ -119,7 +119,7 @@ static int softhangup_exec(struct ast_channel *chan, const char *data) *cut = 0; } if (!strcasecmp(name, args.channel)) { - ast_log(LOG_WARNING, "Soft hanging %s up.\n", c->name); + ast_log(LOG_WARNING, "Soft hanging %s up.\n", ast_channel_name(c)); ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT); if (!ast_test_flag(&flags, OPTION_ALL)) { ast_channel_unlock(c); |