[asterisk-commits] rmudgett: branch 1.8 r307962 - /branches/1.8/apps/app_dial.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 15 13:52:49 CST 2011
Author: rmudgett
Date: Tue Feb 15 13:52:45 2011
New Revision: 307962
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=307962
Log:
Don't crash when forcing caller id.
Modified:
branches/1.8/apps/app_dial.c
Modified: branches/1.8/apps/app_dial.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_dial.c?view=diff&rev=307962&r1=307961&r2=307962
==============================================================================
--- branches/1.8/apps/app_dial.c (original)
+++ branches/1.8/apps/app_dial.c Tue Feb 15 13:52:45 2011
@@ -2095,7 +2095,7 @@
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 @@
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);
}
More information about the asterisk-commits
mailing list