]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix caller id passed to openr2_chan_make_call
authorMoises Silva <moises.silva@gmail.com>
Sat, 5 Mar 2011 17:44:30 +0000 (17:44 +0000)
committerMoises Silva <moises.silva@gmail.com>
Sat, 5 Mar 2011 17:44:30 +0000 (17:44 +0000)
(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

channels/chan_dahdi.c

index bb5b3ddd40c2bb50d3afe297aee9e21d58f49bde..16fd0e191dad50c604b48662de1820969c8b55a5 100644 (file)
@@ -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;
                }