diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-15 19:52:45 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-15 19:52:45 +0000 |
commit | 58705a1bf427c6df3ce96eefcd866eb332b4c98a (patch) | |
tree | f95f03b368ce05794a329d4feeac82454b4e5789 | |
parent | 4700a9a22eb596a094764fc09829e711ba7fb122 (diff) |
Don't crash when forcing caller id.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@307962 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_dial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index e24a72e04..4dd29e0e7 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -2095,7 +2095,7 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast struct ast_party_connected_line connected; int pres; - ast_party_connected_line_set_init(&connected, &tmp->chan->connected); + ast_party_connected_line_set_init(&connected, &tc->connected); if (cid_pres) { pres = ast_parse_caller_presentation(cid_pres); if (pres < 0) { @@ -2115,7 +2115,7 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast connected.id.name.presentation = pres; } connected.id.tag = cid_tag; - ast_channel_set_connected_line(tmp->chan, &connected, NULL); + ast_channel_set_connected_line(tc, &connected, NULL); } else { ast_connected_line_copy_from_caller(&tc->connected, &chan->caller); } |