===============
file1:asterisk-11.5.1/apps/app_confbridge.c
#include "…/funcs/func_frame_trace.c"
extern int digitpass;
if(digitpass);
{
ast_verb(3,"\n sabse ditgitpass:%d \n",digitpass);
}
file2:/asterisk-11.5.1/funcs/func_frame_trace.c
int digitpass=0;
case AST_FRAME_DTMF_BEGIN:
ast_verbose(“FrameTypeTMF BEGIN \n”);
ast_verbose(“Digit: %d\n”, frame->subclass.integer);
ast_verb(3,"\n AST_FRAME_DTMF_BEGIN: sabse pass Digit[%d] and frame->frametype:[%d] to confbridge_run \n",frame->subclass.integer,frame->frametype);
//int passval=frame->subclass.integer;
digitpass=frame->subclass.integer;
ast_verb(3,"\n digitpass : AST_FRAME_DTMF_BEGIN: sabse pass Digit[%d] ", digitpass);
//confbridge_run_with_dtmf(passval);
break;
====
we have to include file .but issue both file have samenamed functions like : unload_module How to USe extern variable and method .Both can not be override or ignore as both have its own dependency .
==output=================================================
app_confbridge.c:7778: error: redefinition of ‘unload_module’
…/funcs/func_frame_trace.c:398: note: previous definition of ‘unload_module’ was here
app_confbridge.c:7829: error: redefinition of ‘load_module’
…/funcs/func_frame_trace.c:403: note: previous definition of ‘load_module’ was here
app_confbridge.c:7941: error: redefinition of ‘__mod_info’
…/funcs/func_frame_trace.c:409: note: previous definition of ‘__mod_info’ was here
app_confbridge.c:7941: error: redefinition of ‘__reg_module’
…/funcs/func_frame_trace.c:409: note: previous definition of ‘__reg_module’ was here
app_confbridge.c:7941: error: redefinition of ‘__unreg_module’
…/funcs/func_frame_trace.c:409: note: previous definition of ‘__unreg_module’ was here
app_confbridge.c:7941: error: redefinition of ‘ast_module_info’
…/funcs/func_frame_trace.c:409: note: previous definition of ‘ast_module_info’ was here
================================================