<html><body><div style="color:; background-color:; font-family:arial, helvetica, sans-serif;font-size:13px"><div>Hi All,</div><div>While compiling app_h324.c on my asterisk 1.8.15 server, i got the following errors shown below. What can i do? Please your reply would be appreciated. </div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Thank you.<br></div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"> [CC] app_h324m.c -> app_h324m.o<br>app_h324m.c:153:39: error: macro "ast_config_load" requires 2 arguments, but only 1 given<br>app_h324m.c: In function load_config:<br>app_h324m.c:153: error: ˜ast_config_load" undeclared (first use in this function)<br>app_h324m.c:153: error: (Each undeclared identifier is reported
only once<br>app_h324m.c:153: error: for each function it appears in.)<br>app_h324m.c: In function ˜h324m_do_debug":<br>app_h324m.c:259: warning: passing argument 2 of ˜ast_cli_complete" from incompatible pointer type<br>/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/cli.h:210: note: expected ‘const char * const*’ but argument is of type ‘char **’<br>app_h324m.c:265: warning: return makes pointer from integer without a cast<br>app_h324m.c:271: warning: return makes pointer from integer without a cast<br>app_h324m.c:247: warning: unused variable ‘level’<br>app_h324m.c: In function ‘create_ast_frame’:<br>app_h324m.c:526: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘long long unsigned int’<br>app_h324m.c:633: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘long long
unsigned int’<br>app_h324m.c: In function ‘init_h324m_packetizer’:<br>app_h324m.c:696: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)<br>app_h324m.c:720: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)<br>app_h324m.c:725: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)<br>app_h324m.c: In function ‘create_h324m_frame’:<br>app_h324m.c:785: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)<br>app_h324m.c: In function ‘app_h324m_gw’:<br>app_h324m.c:964: error: too few arguments to function ‘ast_request’<br>app_h324m.c:978: error: ‘struct ast_channel’ has no member named
‘cid’<br>app_h324m.c:978: error: ‘struct ast_channel’ has no member named ‘cid’<br>app_h324m.c:978: error: ‘struct ast_channel’ has no member named ‘cid’<br>app_h324m.c:1012: error: switch quantity not an integer<br>app_h324m.c:1037: error: switch quantity not an integer<br>app_h324m.c:1135: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)<br>app_h324m.c:1147: error: switch quantity not an integer<br>app_h324m.c: In function ‘app_h324m_call’:<br>app_h324m.c:1282: error: too few arguments to function ‘ast_request’<br>app_h324m.c:1296: error: ‘struct ast_channel’ has no member named ‘cid’<br>app_h324m.c:1296: error: ‘struct ast_channel’ has no member named ‘cid’<br>app_h324m.c:1296: error: ‘struct ast_channel’ has no member named
‘cid’<br>app_h324m.c:1330: error: switch quantity not an integer<br>app_h324m.c:1368: error: switch quantity not an integer<br>app_h324m.c:1467: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)<br>app_h324m.c:1479: error: incompatible types when assigning to type ‘char’ from type ‘union ast_frame_subclass’<br>app_h324m.c:1486: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)<br>app_h324m.c: In function ‘app_h324m_gw_answer’:<br>app_h324m.c:1564: error: switch quantity not an integer<br>app_h324m.c: In function ‘unload_module’:<br>app_h324m.c:1647: error: ‘cli_reload’ undeclared (first use in this function)<br>app_h324m.c: In function ‘load_module’:<br>app_h324m.c:1678: warning: passing argument 2 of ‘ast_register_application2’ from
incompatible pointer type<br>/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’<br>app_h324m.c:1679: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type<br>/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’<br>app_h324m.c:1680: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type<br>/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void
*)’<br>app_h324m.c:1681: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type<br>/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’<br>app_h324m.c:1682: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type<br>/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’<br>app_h324m.c:1685: error: ‘cli_reload’ undeclared (first use in this function)<br>make[1]: *** [app_h324m.o] Error 1<br>make: *** [apps] Error 2</div></div></body></html>