Merged revisions 309720 via svnmerge from
authorMoises Silva <moises.silva@gmail.com>
Sat, 5 Mar 2011 17:53:31 +0000 (17:53 +0000)
committerMoises Silva <moises.silva@gmail.com>
Sat, 5 Mar 2011 17:53:31 +0000 (17:53 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r309720 | moy | 2011-03-05 12:44:30 -0500 (Sat, 05 Mar 2011) | 6 lines

  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/trunk@309721 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 4baee23..5a36328 100644 (file)
@@ -5394,7 +5394,7 @@ static int dahdi_call(struct ast_channel *ast, char *rdest, int timeout)
 
                c = args.ext;
                if (!p->hidecallerid) {
 
                c = args.ext;
                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;
                }
                } else {
                        l = NULL;
                }