[Freeswitch-dev] mod_h323 compilation error

Michael Jerris mike at jerris.com
Fri May 30 01:27:32 MSD 2014


version of the library is not api compatible with what we expect.

On May 29, 2014, at 9:12 PM, Sayyed Mohammad Emami Razavi <emamirazavi at gmail.com> wrote:

> hello all,
> what is the problem?(excuse about not using pastebin)
> 
> making all mod_h323
> make[4]: Entering directory `/home/m.emami/projects/c++/freeswitch/src/mod/endpoints/mod_h323'
>   CXX      mod_h323_la-mod_h323.lo
> In file included from mod_h323.cpp:40:0:
> mod_h323.h:108:41: error: 'NumAnswerCallResponses' is not a member of 'H323Connection'
>  const char* const GetAnswerCallResponse[H323Connection::NumAnswerCallResponses+1]={
>                                          ^
> mod_h323.h:242:2: error: 'H323ListenerTCP' does not name a type
>   H323ListenerTCP *listenAddress;
>   ^
> In file included from mod_h323.cpp:40:0:
> mod_h323.h:326:78: error: 'RTP_QOS' has not been declared
>         unsigned sessionID, const H245_H2250LogicalChannelParameters * param, RTP_QOS * rtpqos = NULL);
>                                                                               ^
> mod_h323.h:405:64: error: expected class-name before '{' token
>  class FSH323_ExternalRTPChannel:public H323_ExternalRTPChannel {
>                                                                 ^
> mod_h323.h:409:94: error: 'Directions' has not been declared
>   FSH323_ExternalRTPChannel(FSH323Connection & connection, const H323Capability & capability, Directions direction, unsigned sessionID, const PIPSocket::Address & ip, WORD dataPort);
>                                                                                               ^
> In file included from /usr/local/include/ptlib.h:47:0,
>                  from mod_h323.h:42,
>                  from mod_h323.cpp:40:
> mod_h323.h: In member function 'virtual PBoolean FSH323_ExternalRTPChannel::InternalIsDescendant(const char*) const':
> mod_h323.h:406:40: error: 'H323_ExternalRTPChannel' has not been declared
>   PCLASSINFO(FSH323_ExternalRTPChannel, H323_ExternalRTPChannel);
>                                         ^
> mod_h323.h: In member function 'virtual const char* FSH323_ExternalRTPChannel::GetClass(unsigned int) const':
> mod_h323.h:406:40: error: 'H323_ExternalRTPChannel' has not been declared
>   PCLASSINFO(FSH323_ExternalRTPChannel, H323_ExternalRTPChannel);
>                                         ^
> mod_h323.h: In member function 'virtual PObject::Comparison FSH323_ExternalRTPChannel::CompareObjectMemoryDirect(const PObject&) const':
> mod_h323.h:406:2: error: no matching function for call to 'PObject::InternalCompareObjectMemoryDirect(const FSH323_ExternalRTPChannel* const, const FSH323_ExternalRTPChannel*, long unsigned int)'
>   PCLASSINFO(FSH323_ExternalRTPChannel, H323_ExternalRTPChannel);
>   ^
> mod_h323.h:406:2: note: candidate is:
> /usr/local/include/ptlib/object.h:1683:23: note: static PObject::Comparison PObject::InternalCompareObjectMemoryDirect(const PObject*, const PObject*, PINDEX)
>      static Comparison InternalCompareObjectMemoryDirect(
>                        ^
> /usr/local/include/ptlib/object.h:1683:23: note:   no known conversion for argument 1 from 'const FSH323_ExternalRTPChannel* const' to 'const PObject*'
> In file included from mod_h323.cpp:40:0:
> mod_h323.h: At global scope:
> mod_h323.h:450:10: error: 'H323Codec' does not name a type
>   virtual H323Codec *CreateCodec(H323Codec::Direction direction) const {
>           ^
> mod_h323.h: In constructor 'BaseG7231Capab::BaseG7231Capab(const char*, bool)':
> mod_h323.h:439:58: error: no matching function for call to 'H323AudioCapability::H323AudioCapability(int, int)'
>    : H323AudioCapability(7, 4), m_name(fname), m_aa(annexA) {
>                                                           ^
> mod_h323.h:439:58: note: candidates are:
> In file included from /usr/local/include/h323/h323con.h:48:0,
>                  from /usr/local/include/h323/h323ep.h:49,
>                  from /usr/include/openh323/h323.h:39,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/h323/h323caps.h:613:5: note: H323AudioCapability::H323AudioCapability()
>      H323AudioCapability();
>      ^
> /usr/local/include/h323/h323caps.h:613:5: note:   candidate expects 0 arguments, 2 provided
> /usr/local/include/h323/h323caps.h:604:7: note: H323AudioCapability::H323AudioCapability(const H323AudioCapability&)
>  class H323AudioCapability : public H323RealTimeCapability
>        ^
> /usr/local/include/h323/h323caps.h:604:7: note:   candidate expects 1 argument, 2 provided
> In file included from mod_h323.cpp:40:0:
> mod_h323.h: At global scope:
> mod_h323.h:501:10: error: 'H323Codec' does not name a type
>   virtual H323Codec *CreateCodec(H323Codec::Direction direction) const {
>           ^
> mod_h323.h: In constructor 'BaseG729Capab::BaseG729Capab(const char*, unsigned int)':
> mod_h323.h:489:59: error: no matching function for call to 'H323AudioCapability::H323AudioCapability(int, int)'
>    : H323AudioCapability(24, 6), m_name(fname), m_type(type) {
>                                                            ^
> mod_h323.h:489:59: note: candidates are:
> In file included from /usr/local/include/h323/h323con.h:48:0,
>                  from /usr/local/include/h323/h323ep.h:49,
>                  from /usr/include/openh323/h323.h:39,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/h323/h323caps.h:613:5: note: H323AudioCapability::H323AudioCapability()
>      H323AudioCapability();
>      ^
> /usr/local/include/h323/h323caps.h:613:5: note:   candidate expects 0 arguments, 2 provided
> /usr/local/include/h323/h323caps.h:604:7: note: H323AudioCapability::H323AudioCapability(const H323AudioCapability&)
>  class H323AudioCapability : public H323RealTimeCapability
>        ^
> /usr/local/include/h323/h323caps.h:604:7: note:   candidate expects 1 argument, 2 provided
> In file included from mod_h323.cpp:40:0:
> mod_h323.h: At global scope:
> mod_h323.h:520:10: error: 'H323Codec' does not name a type
>   virtual H323Codec *CreateCodec(H323Codec::Direction direction) const {
>           ^
> mod_h323.h: In constructor 'BaseGSM0610Cap::BaseGSM0610Cap(const char*, unsigned int)':
> mod_h323.h:515:94: error: no matching function for call to 'H323AudioCapability::H323AudioCapability(int, int)'
>    : H323AudioCapability(24, 2), m_name(fname), m_type(type), m_comfortNoise(0), m_scrambled(0) {
>                                                                                               ^
> mod_h323.h:515:94: note: candidates are:
> In file included from /usr/local/include/h323/h323con.h:48:0,
>                  from /usr/local/include/h323/h323ep.h:49,
>                  from /usr/include/openh323/h323.h:39,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/h323/h323caps.h:613:5: note: H323AudioCapability::H323AudioCapability()
>      H323AudioCapability();
>      ^
> /usr/local/include/h323/h323caps.h:613:5: note:   candidate expects 0 arguments, 2 provided
> /usr/local/include/h323/h323caps.h:604:7: note: H323AudioCapability::H323AudioCapability(const H323AudioCapability&)
>  class H323AudioCapability : public H323RealTimeCapability
>        ^
> /usr/local/include/h323/h323caps.h:604:7: note:   candidate expects 1 argument, 2 provided
> mod_h323.cpp: In function 'const OpalMediaFormat& GetOpalT38_IFP_COR()':
> mod_h323.cpp:86:5: error: 'DefaultDataSessionID' is not a member of 'OpalMediaFormat'
>      OpalMediaFormat::DefaultDataSessionID,
>      ^
> mod_h323.cpp: In function 'const OpalMediaFormat& GetOpalT38_IFP_PRE()':
> mod_h323.cpp:102:5: error: 'DefaultDataSessionID' is not a member of 'OpalMediaFormat'
>      OpalMediaFormat::DefaultDataSessionID,
>      ^
> mod_h323.cpp: In member function 'bool FSH323EndPoint::Initialise(switch_loadable_module_interface_t*)':
> mod_h323.cpp:403:33: error: 'AddAllCapabilities' was not declared in this scope
>      AddAllCapabilities(0, 0, tmp);
>                                  ^
> mod_h323.cpp:425:64: error: 'SetCapability' was not declared in this scope
>    SetCapability(0, 0, new FSH323_T38Capability(OpalT38_IFP_PRE));
>                                                                 ^
> mod_h323.cpp:428:64: error: 'SetCapability' was not declared in this scope
>    SetCapability(0, 0, new FSH323_T38Capability(OpalT38_IFP_COR));
>                                                                 ^
> mod_h323.cpp:431:34: error: 'AddAllUserInputCapabilities' was not declared in this scope
>   AddAllUserInputCapabilities(0, 1);
>                                   ^
> mod_h323.cpp:436:39: error: 'DisableDetectInBandDTMF' was not declared in this scope
>   DisableDetectInBandDTMF(!m_dtmfinband);
>                                        ^
> mod_h323.cpp:444:27: error: 'struct FSListener' has no member named 'listenAddress'
>     if (!StartListener(it->listenAddress)) {
>                            ^
> mod_h323.cpp: In member function 'switch_status_t FSH323EndPoint::ReadConfig(int)':
> mod_h323.cpp:582:13: error: 'struct FSListener' has no member named 'listenAddress'
>     listener.listenAddress = new H323ListenerTCP(*this, ip, port);
>              ^
> mod_h323.cpp:582:33: error: expected type-specifier before 'H323ListenerTCP'
>     listener.listenAddress = new H323ListenerTCP(*this, ip, port);
>                                  ^
> mod_h323.cpp:582:33: error: expected ';' before 'H323ListenerTCP'
> mod_h323.cpp: In constructor 'FSH323EndPoint::FSH323EndPoint()':
> mod_h323.cpp:605:22: error: no matching function for call to 'H323EndPoint::H323EndPoint()'
>   ,m_fax_old_asn(false)
>                       ^
> mod_h323.cpp:605:22: note: candidates are:
> In file included from /usr/include/openh323/h323.h:39:0,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/h323/h323ep.h:99:5: note: H323EndPoint::H323EndPoint(OpalManager&)
>      H323EndPoint(
>      ^
> /usr/local/include/h323/h323ep.h:99:5: note:   candidate expects 1 argument, 0 provided
> /usr/local/include/h323/h323ep.h:86:7: note: H323EndPoint::H323EndPoint(const H323EndPoint&)
>  class H323EndPoint : public OpalRTPEndPoint
>        ^
> /usr/local/include/h323/h323ep.h:86:7: note:   candidate expects 1 argument, 0 provided
> mod_h323.cpp: In constructor 'FSH323Connection::FSH323Connection(FSH323EndPoint&, H323Transport*, unsigned int, switch_caller_profile_t*, switch_core_session_t*, switch_channel_t*)':
> mod_h323.cpp:722:20: error: no matching function for call to 'H323Connection::H323Connection(FSH323EndPoint&, unsigned int&)'
>   , m_RTPlocalPort(0)
>                     ^
> mod_h323.cpp:722:20: note: candidates are:
> In file included from /usr/local/include/h323/h323ep.h:49:0,
>                  from /usr/include/openh323/h323.h:39,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/h323/h323con.h:144:5: note: H323Connection::H323Connection(OpalCall&, H323EndPoint&, const PString&, const PString&, const H323TransportAddress&, unsigned int, OpalConnection::StringOptions*)
>      H323Connection(
>      ^
> /usr/local/include/h323/h323con.h:144:5: note:   candidate expects 7 arguments, 2 provided
> /usr/local/include/h323/h323con.h:135:7: note: H323Connection::H323Connection(const H323Connection&)
>  class H323Connection : public OpalRTPConnection
>        ^
> /usr/local/include/h323/h323con.h:135:7: note:   candidate expects 1 argument, 2 provided
> mod_h323.cpp: In member function 'bool FSH323Connection::SetLocalCapabilities()':
> mod_h323.cpp:812:32: error: 'fastStartChannels' was not declared in this scope
>      for (PINDEX idx = 0; idx < fastStartChannels.GetSize(); idx++) {
>                                 ^
> mod_h323.cpp: In member function 'bool FSH323Connection::decodeCapability(const H323Capability&, const char**, int*, PString*)':
> mod_h323.cpp:845:38: error: no matching function for call to 'OpalMediaFormat::OpalMediaFormat(PString&, bool)'
>   OpalMediaFormat oformat(fname, false);
>                                       ^
> mod_h323.cpp:845:38: note: candidates are:
> In file included from /usr/local/include/opal/connection.h:44:0,
>                  from /usr/local/include/opal/call.h:41,
>                  from /usr/local/include/opal/manager.h:42,
>                  from /usr/local/include/opal/endpoint.h:41,
>                  from /usr/include/rtp/rtpep.h:38,
>                  from /usr/local/include/h323/h323ep.h:45,
>                  from /usr/include/openh323/h323.h:39,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/opal/mediafmt.h:886:5: note: OpalMediaFormat::OpalMediaFormat(const PString&)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:886:5: note:   candidate expects 1 argument, 2 provided
> /usr/local/include/opal/mediafmt.h:869:5: note: OpalMediaFormat::OpalMediaFormat(const char*)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:869:5: note:   candidate expects 1 argument, 2 provided
> /usr/local/include/opal/mediafmt.h:849:5: note: OpalMediaFormat::OpalMediaFormat(RTP_DataFrame::PayloadTypes, unsigned int, const char*, const char*)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:849:5: note:   no known conversion for argument 1 from 'PString' to 'RTP_DataFrame::PayloadTypes'
> /usr/local/include/opal/mediafmt.h:827:5: note: OpalMediaFormat::OpalMediaFormat(const char*, const OpalMediaType&, RTP_DataFrame::PayloadTypes, const char*, PBoolean, OpalBandwidth, PINDEX, unsigned int, unsigned int, time_t)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:827:5: note:   candidate expects 10 arguments, 2 provided
> /usr/local/include/opal/mediafmt.h:810:5: note: OpalMediaFormat::OpalMediaFormat(OpalMediaFormatInternal*)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:810:5: note:   candidate expects 1 argument, 2 provided
> /usr/local/include/opal/mediafmt.h:799:5: note: OpalMediaFormat::OpalMediaFormat(const OpalMediaFormat&)
>      OpalMediaFormat(const OpalMediaFormat & c);
>      ^
> /usr/local/include/opal/mediafmt.h:799:5: note:   candidate expects 1 argument, 2 provided
> mod_h323.cpp: At global scope:
> mod_h323.cpp:976:190: error: 'RTP_QOS' has not been declared
>  H323Channel* FSH323Connection::CreateRealTimeLogicalChannel(const H323Capability& capability,H323Channel::Directions dir,unsigned sessionID,const H245_H2250LogicalChannelParameters* param, RTP_QOS * rtpqos)
>                                                                                                                                                                                               ^
> mod_h323.cpp: In member function 'virtual H323Channel* FSH323Connection::CreateRealTimeLogicalChannel(const H323Capability&, H323Channel::Directions, unsigned int, const H245_H2250LogicalChannelParameters*, int*)':
> mod_h323.cpp:986:100: error: cannot convert 'FSH323_ExternalRTPChannel*' to 'H323Channel*' in return
>   return new FSH323_ExternalRTPChannel(*this, capability, dir, sessionID,m_RTPlocalIP,m_RTPlocalPort);
>                                                                                                     ^
> mod_h323.cpp: In member function 'virtual PBoolean FSH323Connection::OnStartLogicalChannel(H323Channel&)':
> mod_h323.cpp:992:134: error: 'ConnectionStatesNames' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"======>FSH323Connection::OnStartLogicalChannel connectionState = %s [%p]\n",ConnectionStatesNames[connectionState],this);
>                                                                                                                                       ^
> mod_h323.cpp: In member function 'virtual bool FSH323Connection::OnReceivedSignalSetup(const H323SignalPDU&)':
> mod_h323.cpp:1038:144: error: 'ConnectionStatesNames' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"---------> after FSH323Connection::OnReceivedSignalSetup connectionState = %s [%p]\n",ConnectionStatesNames[connectionState],this);
>                                                                                                                                                 ^
> mod_h323.cpp:1056:26: error: 'controlChannel' was not declared in this scope
>    if (!h245Tunneling && (controlChannel == NULL)) {
>                           ^
> mod_h323.cpp:1057:29: error: 'StartControlChannel' was not declared in this scope
>     if (!StartControlChannel()){
>                              ^
> mod_h323.cpp: In member function 'virtual bool FSH323Connection::OnSendCallProceeding(H323SignalPDU&)':
> mod_h323.cpp:1097:132: error: 'FastStartStateNames' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"======>FSH323Connection::OnSendCallProceeding fastStartState = %s [%p]\n",FastStartStateNames[fastStartState],this); 
>                                                                                                                                     ^
> mod_h323.cpp:1097:152: error: 'fastStartState' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"======>FSH323Connection::OnSendCallProceeding fastStartState = %s [%p]\n",FastStartStateNames[fastStartState],this); 
>                                                                                                                                                         ^
> mod_h323.cpp: In member function 'virtual void FSH323Connection::AnsweringCall(OpalConnection::AnswerCallResponse)':
> mod_h323.cpp:1170:82: error: 'GetAnswerCallResponse' was not declared in this scope
>     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"Answering call: %s\n",GetAnswerCallResponse[response]);
>                                                                                   ^
> mod_h323.cpp:1172:14: error: 'Lock' was not declared in this scope
>     if (!Lock())
>               ^
> mod_h323.cpp:1220:11: error: 'Unlock' was not declared in this scope
>     Unlock();
>            ^
> mod_h323.cpp:1227:15: error: 'Lock' was not declared in this scope
>      if (!Lock())
>                ^
> mod_h323.cpp:1245:5: error: 'alertingTime' was not declared in this scope
>      alertingTime = PTime();
>      ^
> mod_h323.cpp:1247:12: error: 'Unlock' was not declared in this scope
>      Unlock();
>             ^
> mod_h323.cpp: In member function 'virtual void FSH323Connection::OnUserInputTone(char, unsigned int, unsigned int, unsigned int)':
> mod_h323.cpp:1468:81: error: no matching function for call to 'FSH323Connection::OnUserInputTone(char&, unsigned int&, unsigned int&, unsigned int&)'
>    H323Connection::OnUserInputTone( tone,  duration, logicalChannel, rtpTimestamp);
>                                                                                  ^
> mod_h323.cpp:1468:81: note: candidate is:
> In file included from /usr/local/include/opal/call.h:41:0,
>                  from /usr/local/include/opal/manager.h:42,
>                  from /usr/local/include/opal/endpoint.h:41,
>                  from /usr/include/rtp/rtpep.h:38,
>                  from /usr/local/include/h323/h323ep.h:45,
>                  from /usr/include/openh323/h323.h:39,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/opal/connection.h:1502:18: note: virtual void OpalConnection::OnUserInputTone(char, unsigned int)
>      virtual void OnUserInputTone(
>                   ^
> /usr/local/include/opal/connection.h:1502:18: note:   candidate expects 2 arguments, 4 provided
> mod_h323.cpp: In member function 'switch_status_t FSH323Connection::receive_message(switch_core_session_message_t*)':
> mod_h323.cpp:1533:9: error: 'fastStartState' was not declared in this scope
>      if (fastStartState == FastStartDisabled){
>          ^
> mod_h323.cpp:1555:9: error: 'fastStartState' was not declared in this scope
>      if (fastStartState == FastStartDisabled){
>          ^
> mod_h323.cpp: At global scope:
> mod_h323.cpp:1926:8: error: 'Directions' has not been declared
>         Directions direction, 
>         ^
> mod_h323.cpp: In constructor 'FSH323_ExternalRTPChannel::FSH323_ExternalRTPChannel(FSH323Connection&, const H323Capability&, int, unsigned int, const PIPSocket::Address&, WORD)':
> mod_h323.cpp:1930:4: error: class 'FSH323_ExternalRTPChannel' does not have any field named 'H323_ExternalRTPChannel'
>   : H323_ExternalRTPChannel(connection, capability, direction, sessionID,ip,dataPort)
>     ^
> mod_h323.cpp:1939:93: error: 'SetExternalAddress' was not declared in this scope
>   SetExternalAddress(H323TransportAddress(ip, dataPort), H323TransportAddress(ip, dataPort+1));
>                                                                                              ^
> mod_h323.cpp:1940:195: error: 'GetDirection' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"======>FSH323_ExternalRTPChannel::FSH323_ExternalRTPChannel sessionID = %d :%s addr = %s:%d [%p]\n",sessionID,GetDirections[GetDirection()],(const char*)m_RTPlocalIP,m_RTPlocalPort,this); 
>                                                                                                                                                                                                    ^
> mod_h323.cpp:1954:37: error: no matching function for call to 'OpalMediaFormat::OpalMediaFormat(PString&, int)'
>   OpalMediaFormat format(fname, FALSE);
>                                      ^
> mod_h323.cpp:1954:37: note: candidates are:
> In file included from /usr/local/include/opal/connection.h:44:0,
>                  from /usr/local/include/opal/call.h:41,
>                  from /usr/local/include/opal/manager.h:42,
>                  from /usr/local/include/opal/endpoint.h:41,
>                  from /usr/include/rtp/rtpep.h:38,
>                  from /usr/local/include/h323/h323ep.h:45,
>                  from /usr/include/openh323/h323.h:39,
>                  from mod_h323.h:43,
>                  from mod_h323.cpp:40:
> /usr/local/include/opal/mediafmt.h:886:5: note: OpalMediaFormat::OpalMediaFormat(const PString&)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:886:5: note:   candidate expects 1 argument, 2 provided
> /usr/local/include/opal/mediafmt.h:869:5: note: OpalMediaFormat::OpalMediaFormat(const char*)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:869:5: note:   candidate expects 1 argument, 2 provided
> /usr/local/include/opal/mediafmt.h:849:5: note: OpalMediaFormat::OpalMediaFormat(RTP_DataFrame::PayloadTypes, unsigned int, const char*, const char*)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:849:5: note:   no known conversion for argument 1 from 'PString' to 'RTP_DataFrame::PayloadTypes'
> /usr/local/include/opal/mediafmt.h:827:5: note: OpalMediaFormat::OpalMediaFormat(const char*, const OpalMediaType&, RTP_DataFrame::PayloadTypes, const char*, PBoolean, OpalBandwidth, PINDEX, unsigned int, unsigned int, time_t)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:827:5: note:   candidate expects 10 arguments, 2 provided
> /usr/local/include/opal/mediafmt.h:810:5: note: OpalMediaFormat::OpalMediaFormat(OpalMediaFormatInternal*)
>      OpalMediaFormat(
>      ^
> /usr/local/include/opal/mediafmt.h:810:5: note:   candidate expects 1 argument, 2 provided
> /usr/local/include/opal/mediafmt.h:799:5: note: OpalMediaFormat::OpalMediaFormat(const OpalMediaFormat&)
>      OpalMediaFormat(const OpalMediaFormat & c);
>      ^
> /usr/local/include/opal/mediafmt.h:799:5: note:   candidate expects 1 argument, 2 provided
> mod_h323.cpp: In destructor 'FSH323_ExternalRTPChannel::~FSH323_ExternalRTPChannel()':
> mod_h323.cpp:1963:158: error: 'GetDirection' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"======>FSH323_ExternalRTPChannel::~FSH323_ExternalRTPChannel  %s [%p]\n",GetDirections[GetDirection()],this);  
>                                                                                                                                                               ^
> mod_h323.cpp: In member function 'virtual PBoolean FSH323_ExternalRTPChannel::Start()':
> mod_h323.cpp:1984:117: error: 'sessionID' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"------------->m_sessionID = %d  m_active_sessionID = %d\n",sessionID,m_conn->m_active_sessionID);    
>                                                                                                                      ^
> mod_h323.cpp:1985:18: error: 'H323_ExternalRTPChannel' has not been declared
>   if (!(m_conn && H323_ExternalRTPChannel::Start())) {
>                   ^
> mod_h323.cpp:2059:19: error: 'GetDirection' was not declared in this scope
>   if (GetDirection() == IsReceiver) {
>                    ^
> mod_h323.cpp:2059:24: error: 'IsReceiver' was not declared in this scope
>   if (GetDirection() == IsReceiver) {
>                         ^
> mod_h323.cpp:2084:171: error: 'GetDirection' was not declared in this scope
>     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"%s  Cannot initialise %s  %s codec for connection [%p]\n",switch_channel_get_name(m_fsChannel), ((GetDirection() == IsReceiver)? " read" : " write")
>                                                                                                                                                                            ^
> mod_h323.cpp:2084:176: error: 'IsReceiver' was not declared in this scope
>     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"%s  Cannot initialise %s  %s codec for connection [%p]\n",switch_channel_get_name(m_fsChannel), ((GetDirection() == IsReceiver)? " read" : " write")
>                                                                                                                                                                                 ^
> mod_h323.cpp:2092:192: error: 'GetDirection' was not declared in this scope
>    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"%s  Unsupported ptime of %u on %s %s codec %s  for connection [%p]\n",switch_channel_get_name(m_fsChannel),m_codec_ms,((GetDirection() == IsReceiver)? " read" : " write")
>                                                                                                                                                                                                 ^
> mod_h323.cpp:2092:197: error: 'IsReceiver' was not declared in this scope
>    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"%s  Unsupported ptime of %u on %s %s codec %s  for connection [%p]\n",switch_channel_get_name(m_fsChannel),m_codec_ms,((GetDirection() == IsReceiver)? " read" : " write")
>                                                                                                                                                                                                      ^
> mod_h323.cpp:2096:19: error: 'GetDirection' was not declared in this scope
>   if (GetDirection() == IsReceiver) {
>                    ^
> mod_h323.cpp:2096:24: error: 'IsReceiver' was not declared in this scope
>   if (GetDirection() == IsReceiver) {
>                         ^
> mod_h323.cpp:2148:119: error: 'GetDirection' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"Set %s %s codec to %s  for connection [%p]\n",((GetDirection() == IsReceiver)? " read" : " write")
>                                                                                                                        ^
> mod_h323.cpp:2148:124: error: 'IsReceiver' was not declared in this scope
>   switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"Set %s %s codec to %s  for connection [%p]\n",((GetDirection() == IsReceiver)? " read" : " write")
>                                                                                                                             ^
> mod_h323.cpp:2152:50: error: 'GetRemoteAddress' was not declared in this scope
>   GetRemoteAddress(remoteIpAddress,m_RTPremotePort); 
>                                                   ^
> mod_h323.cpp: In member function 'virtual PBoolean FSH323_ExternalRTPChannel::OnReceivedPDU(const H245_H2250LogicalChannelParameters&, unsigned int&)':
> mod_h323.cpp:2283:7: error: 'H323_ExternalRTPChannel' has not been declared
>   if (!H323_ExternalRTPChannel::OnReceivedPDU(param,errorCode))
>        ^
> mod_h323.cpp:2287:45: error: 'GetRemoteAddress' was not declared in this scope
>   GetRemoteAddress(remoteIpAddress,remotePort);
>                                              ^
> mod_h323.cpp: In member function 'virtual PBoolean FSH323_ExternalRTPChannel::OnSendingPDU(H245_H2250LogicalChannelParameters&)':
> mod_h323.cpp:2296:9: error: 'H323_ExternalRTPChannel' has not been declared
>   return H323_ExternalRTPChannel::OnSendingPDU(param);
>          ^
> mod_h323.cpp: In member function 'virtual PBoolean FSH323_ExternalRTPChannel::OnReceivedAckPDU(const H245_H2250LogicalChannelAckParameters&)':
> mod_h323.cpp:2302:9: error: 'H323_ExternalRTPChannel' has not been declared
>   return H323_ExternalRTPChannel::OnReceivedAckPDU(param);
>          ^
> mod_h323.cpp: In member function 'virtual void FSH323_ExternalRTPChannel::OnSendOpenAck(H245_H2250LogicalChannelAckParameters&)':
> mod_h323.cpp:2308:2: error: 'H323_ExternalRTPChannel' has not been declared
>   H323_ExternalRTPChannel::OnSendOpenAck(param);
>   ^
> mod_h323.cpp: In member function 'FSH323Connection* FSH323EndPoint::FSMakeCall(const PString&, void*)':
> mod_h323.cpp:2321:45: error: 'class OpalListener' has no member named 'GetTransportAddress'
>    H323TransportAddress taddr = listeners[0].GetTransportAddress();
>                                              ^
> mod_h323.cpp:2326:21: error: expected type-specifier before 'H323TransportTCP'
>      transport = new H323TransportTCP(*this, addr,false);
>                      ^
> mod_h323.cpp:2326:21: error: expected ';' before 'H323TransportTCP'
> mod_h323.cpp:2334:41: error: 'MakeCall' is not a member of 'H323EndPoint'
>   if (!(connection = (FSH323Connection *)H323EndPoint::MakeCall(dest, token, userData))) {
>                                          ^
> mod_h323.cpp: In function 'switch_status_t on_hangup(switch_core_session_t*)':
> mod_h323.cpp:2416:11: error: 'class FSH323Connection' has no member named 'TryLock'
>    if (me->TryLock() == 1) {
>            ^
> mod_h323.cpp:2419:8: error: 'class FSH323Connection' has no member named 'Unlock'
>     me->Unlock();
>         ^
> mod_h323.cpp:2423:21: error: 'class FSH323Connection' has no member named 'TryLock'
>    int trylock = me->TryLock();
>                      ^
> mod_h323.cpp:2427:109: error: invalid cast from type 'PSafePtr<H323Connection>' to type 'FSH323Connection*'
>     FSH323Connection *connection = (FSH323Connection *)me->GetEndPoint()->FindConnectionWithLock(currentToken); 
>                                                                                                              ^
> mod_h323.cpp:2429:17: error: 'class FSH323Connection' has no member named 'Unlock'
>      connection->Unlock();
>                  ^
> mod_h323.cpp:2432:8: error: 'class FSH323Connection' has no member named 'Unlock'
>     me->Unlock();
>         ^
> make[4]: *** [mod_h323_la-mod_h323.lo] Error 1
> make[4]: Leaving directory `/home/m.emami/projects/c++/freeswitch/src/mod/endpoints/mod_h323'
> make[3]: *** [mod_h323-all] Error 1
> make[3]: Leaving directory `/home/m.emami/projects/c++/freeswitch/src/mod'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/m.emami/projects/c++/freeswitch/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/m.emami/projects/c++/freeswitch'
> make: *** [all] Error 2




Join us at ClueCon 2014 Aug 4-7, 2014
More information about the FreeSWITCH-dev mailing list