summaryrefslogtreecommitdiff
path: root/channels/chan_vpb.c
diff options
context:
space:
mode:
authorBen Kramer <bkramer@voicetronix.com.au>2005-06-08 00:10:09 +0000
committerBen Kramer <bkramer@voicetronix.com.au>2005-06-08 00:10:09 +0000
commitf70c5e190b1cbd2e4ff6a18770253f2cd207af41 (patch)
treef30795bda475c3eed45b6fd27f78cc95368372bf /channels/chan_vpb.c
parentb6ae77bcdf5f95536ed448f1578b94be633832aa (diff)
/ fixed bugs introduced by the fix for bug #4368 by kpfleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_vpb.c')
-rwxr-xr-xchannels/chan_vpb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_vpb.c b/channels/chan_vpb.c
index a4a2b2ba9..da8ef0e2a 100755
--- a/channels/chan_vpb.c
+++ b/channels/chan_vpb.c
@@ -885,15 +885,15 @@ static inline int monitor_handle_owned(struct vpb_pvt *p, VPB_EVENT *e)
else if (e->data == VPB_FAX){
if (!p->faxhandled){
if (strcmp(p->owner->exten, "fax")) {
- const char *target_context = ast_strlen_zero(ast->macrocontext) ? ast->context : ast->macrocontext;
+ const char *target_context = ast_strlen_zero(p->owner->macrocontext) ? p->owner->context : p->owner->macrocontext;
- if (ast_exists_extension(ast, target_context, "fax", 1, ast->cid.cid_num)) {
+ if (ast_exists_extension(p->owner, target_context, "fax", 1, p->owner->cid.cid_num)) {
if (option_verbose > 2)
- ast_verbose(VERBOSE_PREFIX_3 "Redirecting %s to fax extension\n", ast->name);
+ ast_verbose(VERBOSE_PREFIX_3 "Redirecting %s to fax extension\n", p->owner->name);
/* Save the DID/DNIS when we transfer the fax call to a "fax" extension */
- pbx_builtin_setvar_helper(ast, "FAXEXTEN", ast->exten);
- if (ast_async_goto(ast, target_context, "fax", 1))
- ast_log(LOG_WARNING, "Failed to async goto '%s' into fax of '%s'\n", ast->name, target_context);
+ pbx_builtin_setvar_helper(p->owner, "FAXEXTEN", p->owner->exten);
+ if (ast_async_goto(p->owner, target_context, "fax", 1))
+ ast_log(LOG_WARNING, "Failed to async goto '%s' into fax of '%s'\n", p->owner->name, target_context);
} else
ast_log(LOG_NOTICE, "Fax detected, but no fax extension\n");
} else