chan_misdn: Fix compile error.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 16 Jan 2013 17:49:52 +0000 (17:49 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 16 Jan 2013 17:49:52 +0000 (17:49 +0000)
(issue ASTERISK-15456)
........

Merged revisions 379226 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 379230 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@379231 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 4047d1c..2bc6f1e 100644 (file)
@@ -10096,7 +10096,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                                        ast_log(LOG_WARNING,
                                                "Extension '%s@%s' can never match. Jumping to 'i' extension. port:%d\n",
                                                bc->dialed.number, ch->context, bc->port);
-                                       pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dad);
+                                       pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dialed.number);
                                        ast_channel_exten_set(ch->ast, "i");
                                        ch->state = MISDN_DIALING;
                                        start_pbx(ch, bc, ch->ast);
@@ -10354,7 +10354,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                                ast_log(LOG_WARNING,
                                        "Extension '%s@%s' can never match. Jumping to 'i' extension. port:%d\n",
                                        bc->dialed.number, ch->context, bc->port);
-                               pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dad);
+                               pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dialed.number);
                                ast_channel_exten_set(ch->ast, "i");
                                misdn_lib_send_event(bc, EVENT_SETUP_ACKNOWLEDGE);
                                ch->state = MISDN_DIALING;