diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-23 12:19:47 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-23 12:19:47 +0000 |
commit | d3403a17ea03efc1df307fd0f4a90414b311b5dc (patch) | |
tree | 43e47efe6f89f32ec12ee1d4588a8315ce8a3fe3 /channels/chan_oss.c | |
parent | 6ee0e0d925c21a2691bee34e5f960cdc8fc54594 (diff) |
First pass at making transfer work within agent (not tested, shouldn't break anything that currently worked)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4061 f38db490-d61c-443f-a65b-d21fe96a405b
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"); |