<br><div class="gmail_quote">On Fri, Oct 1, 2010 at 6:58 PM, Rob Hutton <span dir="ltr">&lt;<a href="mailto:justlikeef@gmail.com" target="_blank">justlikeef@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

I am getting the following error compiling mod_h323 on OpenSuse 11.3 X86_64.<br>
I don&#39;t even know where to begin on this, but would me more than happy to help<br>
work it out...<br>
<br>
Compiling<br>
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.cpp...<br>
quiet_libtool: compile:  g++ -g -ggdb -I/usr/local/include/ptlib -<br>
I/usr/local/include/openh323 -I. -DPTRACING=1 -D_REENTRANT -fno-exceptions -<br>
I/usr/src/freeswitch/freeswitch/src/include -<br>
I/usr/src/freeswitch/freeswitch/src/include -<br>
I/usr/src/freeswitch/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden<br>
-DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE -<br>
DHAVE_CONFIG_H -c<br>
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.cpp  -fPIC<br>
-DPIC -o .libs/mod_h323.o<br>
In file included from<br>
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.cpp:31:0:<br>
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.h:110:1:<br>
error: too many initializers for ‘const char* const [8]’<br></blockquote><div><br>complains about that :<br><br>const char* const GetAnswerCallResponse[H323Connection::NumAnswerCallResponses+1]={<br>        &quot;AnswerCallNow&quot;,<br>
        &quot;AnswerCallDenied&quot;,<br>        &quot;AnswerCallPending&quot;,<br>        &quot;AnswerCallDeferred&quot;,<br>        &quot;AnswerCallAlertWithMedia&quot;,<br>        &quot;AnswerCallDeferredWithMedia&quot;,<br>
        &quot;AnswerCallDeniedByInvalidCID&quot;,<br>        &quot;AnswerCallNowWithAlert&quot;,<br>        &quot;NumAnswerCallResponses&quot;<br>};<br><br>for some reason H323Capability::e_NumMainTypes+1 returnes less than the array actual size<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.h:121:1:<br>
error: too many initializers for ‘const char* const [5]’<br></blockquote><div><br>complains about that :<br><br>const char* const GetMainTypes[H323Capability::e_NumMainTypes+1] = {<br>        &quot;Audio&quot;,<br>        &quot;Video&quot;,<br>
        &quot;Data&quot;,<br>        &quot;UserInput&quot;,<br>        &quot;ExtendVideo&quot;,<br>        &quot;GenericControl&quot;,<br>        &quot;ConferenceControl&quot;,<br>        &quot;NumMainTypes&quot;<br>};<br>
<br>for some reason H323Capability::e_NumMainTypes+1 returnes less than the array actual size<br><br><br><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.h:212:40:<br>
error: expected class-name before ‘{’ token<br></blockquote><div><br>here it is complaining about something it should not :))) Everything is fine in that function.<br>
</div></div><br><br><br><br><br><br>bottom line, i guess you don&#39;t have the correct combination of ptlib and h323plus. <br><br>Please check <a href="http://wiki.freeswitch.org/wiki/Mod_h323">http://wiki.freeswitch.org/wiki/Mod_h323</a> for detailed installation process.<br>
<br>Also, note we are focusing on CentOS and Debian distro mainly and its quite hard to guess what is wrong on different distros.<br><br><br>