Set app and appdata fields when a Dial is redirected

(closes issue #17204)
Reported by: one47
Tested by: twilson, one47


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@266786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2010-06-01 21:12:49 +00:00
parent 464e44e325
commit ffbb85bb4d
2 changed files with 5 additions and 0 deletions

View File

@@ -881,6 +881,8 @@ static void do_forward(struct chanlist *o,
ast_string_field_set(c, accountcode, in->accountcode);
}
ast_party_connected_line_copy(&c->connected, &original->connected);
c->appl = "AppDial";
c->data = "(Outgoing Line)";
/*
* We must unlock c before calling ast_channel_redirecting_macro, because
* we put c into autoservice there. That is pretty much a guaranteed