Make chan_misdn compile.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 22 May 2009 15:07:21 +0000 (15:07 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 22 May 2009 15:07:21 +0000 (15:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196187 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 18dd44c..b9e38c5 100644 (file)
@@ -8171,7 +8171,7 @@ static void do_immediate_setup(struct misdn_bchannel *bc, struct chan_list *ch,
 
        strcpy(ast->exten, "s");
 
-       if (!ast_canmatch_extension(ast, ast->context, ast->exten, 1, bc->oad) || pbx_start_chan(ch) < 0) {
+       if (!ast_canmatch_extension(ast, ast->context, ast->exten, 1, bc->caller.number) || pbx_start_chan(ch) < 0) {
                ast = NULL;
                bc->out_cause = AST_CAUSE_UNALLOCATED;
                hangup_chan(ch);