diff options
author | Mark Spencer <markster@digium.com> | 2004-10-23 12:19:47 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-10-23 12:19:47 +0000 |
commit | e21ed1865bf0c5f3325811f30aff54c27127b885 (patch) | |
tree | 43e47efe6f89f32ec12ee1d4588a8315ce8a3fe3 /channels/chan_oss.c | |
parent | 9235f8bda385688e653c2869684de5d9ffffe6f9 (diff) |
First pass at making transfer work within agent (not tested, shouldn't break anything that currently worked)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_oss.c')
-rwxr-xr-x | channels/chan_oss.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 61dd4ce89..c1d5ee0b3 100755 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -933,7 +933,7 @@ static int console_transfer(int fd, int argc, char *argv[]) char *context; if (argc != 2) return RESULT_SHOWUSAGE; - if (oss.owner && oss.owner->bridge) { + if (oss.owner && ast_bridged_channel(oss.owner)) { strncpy(tmp, argv[1], sizeof(tmp) - 1); context = strchr(tmp, '@'); if (context) { @@ -941,10 +941,10 @@ static int console_transfer(int fd, int argc, char *argv[]) context++; } else context = oss.owner->context; - if (ast_exists_extension(oss.owner->bridge, context, tmp, 1, oss.owner->bridge->cid.cid_num)) { + if (ast_exists_extension(ast_bridged_channel(oss.owner), context, tmp, 1, ast_bridged_channel(oss.owner)->cid.cid_num)) { ast_cli(fd, "Whee, transferring %s to %s@%s.\n", - oss.owner->bridge->name, tmp, context); - if (ast_async_goto(oss.owner->bridge, context, tmp, 1)) + ast_bridged_channel(oss.owner)->name, tmp, context); + if (ast_async_goto(ast_bridged_channel(oss.owner), context, tmp, 1)) ast_cli(fd, "Failed to transfer :(\n"); } else { ast_cli(fd, "No such extension exists\n"); |