<html><head><style type='text/css'>p { margin: 0; }</style><style type='text/css'>body { font-family: 'Arial'; font-size: 12pt; color: #000000}</style></head><body><P>Hello, <BR><BR>I am using asterisk-1.8.7.1 for the voicemail service. While running the executable of asterisk I am facing problem in loading of SIP channel module. Following error is coming: <BR><BR><BR>Error loading module 'chan_sip.so': /usr/lib/asterisk/modules/chan_sip.so: undefined symbol: vms_cli_delete_peer_cb <BR><BR><BR>The code snippet is as follows: <BR><BR><BR><STRONG>chan_sip.c <BR></STRONG><BR><BR><FONT color=#009900>extern char (*vms_cli_delete_peer_cb)(struct vms_ast_cli_args *a, char *cli_disp); <BR></FONT><BR>static char *vms_cli_delete_peer(struct vms_ast_cli_args *a, char *cli_disp); <BR><BR><BR><BR>static int load_module(void) <BR><BR>{ <BR><BR> // Full code of load_module function is not mentioned here. I have mentioned my changes and also the lines(which were already present in version 1.8.7.1) above and below my changes. <BR><BR> /* Register dialplan functions */ <BR> ast_custom_function_register(&sip_header_function); <BR> ast_custom_function_register(&sippeer_function); <BR> ast_custom_function_register(&sipchaninfo_function); <BR> ast_custom_function_register(&checksipdomain_function); <BR><BR><FONT color=#009900> vms_cli_delete_peer_cb </FONT>= (void*) vms_cli_delete_peer; <BR><BR><BR> /* Register manager commands */ <BR> ast_manager_register_xml("SIPpeers", EVENT_FLAG_SYSTEM | EVENT_FLAG_REPORTING, manager_sip_show_peers); <BR> ast_manager_register_xml("SIPshowpeer", EVENT_FLAG_SYSTEM | EVENT_FLAG_REPORTING, manager_sip_show_peer); <BR><BR><BR><BR>............................................................................................................................................................................... <BR><BR><BR>} <BR><BR><BR><BR><STRONG>vms_cli.c <BR></STRONG><BR><BR><FONT color=#006600>char (*vms_cli_delete_peer_cb)(struct vms_ast_cli_args *a, char *cli_disp); <BR></FONT><BR><BR>static uns32 vms_cef_delete_peer(NCSCLI_ARG_SET *arg, NCSCLI_CEF_DATA *data) <BR>{ <BR> char cli_disp_info[2000] = ""; <BR> uns32 rc = NCSCC_RC_SUCCESS; <BR> <BR> PREPARE_VMS_CLI_ARGS(1, arg); <BR> if(vms_cli_delete_peer_cb) <BR> { <BR> vms_cli_delete_peer_cb(&vms_args, cli_disp_info); <BR> rc = vms_cli_display(data->i_bindery->i_cli_hdl,(uns8*)cli_disp_info); <BR> } <BR> return vms_cli_done(data->i_bindery->i_cli_hdl, rc); <BR>} <BR><BR><BR><BR>I am facing similar issues in other modules also. <BR><BR>The above piece of code was working fine with asterisk version 1.6.0.1 <BR><BR>messages log file of asterisk is attached with this mail. <BR><BR>Please provide your comments on this issue as i am not able to proceed further. <BR><BR><BR><BR>Thanks. <BR><BR>Regards, <BR><BR>Shalu <BR><BR><BR><BR><BR></P></body></html>