From: Moises Silva Date: Sat, 5 Mar 2011 17:44:30 +0000 (+0000) Subject: Fix caller id passed to openr2_chan_make_call X-Git-Tag: 1.8.5-rc1~11^2~289 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3770b4d7cba8640dfee9d500ed556681cfa43d7f;p=thirdparty%2Fasterisk.git Fix caller id passed to openr2_chan_make_call (closes issue #18894) Reported by: malufrj Tested by: moy git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@309720 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index bb5b3ddd40..16fd0e191d 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -5344,7 +5344,7 @@ static int dahdi_call(struct ast_channel *ast, char *rdest, int timeout) c = ""; } if (!p->hidecallerid) { - l = ast->caller.id.number.valid ? ast->caller.id.number.str : NULL; + l = ast->connected.id.number.valid ? ast->connected.id.number.str : NULL; } else { l = NULL; }