Giter VIP home page Giter VIP logo

asterisk-cpp's Issues

autoheader error

When I attempt to follow the directions on the example page of the wiki for the [Library Build] , I get the following error when I attempt to run the autoheader command:

autoheader: error: AC_CONFIG_HEADERS not found in configure.ac

Thanks!
Martin

compile error

hi there,
i downloaded the code and compiled it. i got file not found when compiling. here's the output:
augcampos-asterisk-cpp-293248b/asterisk-cpp/asteriskcpp//utils/LogHandler.h:14:30: fatal error: log4cplus/logger.h: No such file or directory
compilation terminated.

 i searched the source tree, but logger.h not found.

error when using function getEventName()

In this example:

void eventCallback(const ManagerEvent& me)
{
if (me.getEventName() == "NewChannel")
{
cout << endl << "E - " << me.toString() << endl;
}
}

error when building project:

main.cpp:185:25: error: passing «const asteriskcpp::ManagerEvent» as «this» argument of «virtual const string& asteriskcpp::ManagerEvent::getEventName()» discards qualifiers [-fpermissive]

Example in wiki doesn't work

Hi,

I tried to test the example in the wiki but I can't compile it correctly, this is error displayed after compilation:

root@debian:~# g++ TestCpp.cpp -o tt -lasteriskcpp
TestCpp.cpp: In function ‘int main()’:
TestCpp.cpp:13:39: error: invalid conversion from ‘void ()(asteriskcpp::ManagerEvent)’ to ‘asteriskcpp::onManagerEventCallback_t {aka void (*)(const asteriskcpp::ManagerEvent&)}’ [-fpermissive]
In file included from TestCpp.cpp:4:0:
/usr/local/include/asteriskcpp/manager/ManagerConnection.h:49:14: error: initializing argument 1 of ‘void asteriskcpp::ManagerConnection::addEventCallback(asteriskcpp::onManagerEventCallback_t)’ [-fpermissive]

I tried to compile also the example located in the asterisk-cpp folder and I get error when liniking with the generated library:

root@debian:~/asterisk-cpp-master/asterisk-cpp/examples# ./makeTest.sh
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UserEventAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::HangupAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueStatusAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::QueueResetAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PlayDtmfAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SkypeBuddiesAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeRemoveBuddyAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::MeetMeUnmuteAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::RedirectAction' /usr/local/lib//libasteriskcpp.so: undefined reference toasteriskcpp::GetConfigResponse::GetConfigResponse(std::string const&)'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbDelAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SkypeLicenseListAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::StopMonitorAction' /usr/local/lib//libasteriskcpp.so: undefined reference toasteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::string const&)'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::IaxPeerListAction' /usr/local/lib//libasteriskcpp.so: undefined reference toasteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::string const&)'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UnpauseMonitorAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ZapRestartAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ParkedCallsAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ConfbridgeUnmuteAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ExtensionStateAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ModuleLoadAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeLicenseStatusAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::QueueLogAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ShowDialplanAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ConfbridgeMuteAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetVarAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ConfbridgeLockAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to asteriskcpp::PingResponse::PingResponse(std::string const&)' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ZapShowChannelsAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxCountAction' /usr/local/lib//libasteriskcpp.so: undefined reference toasteriskcpp::GetVarResponse::GetVarResponse(std::string const&)'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SendTextAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ZapDialOffhookAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SipShowRegistryAction' /usr/local/lib//libasteriskcpp.so: undefined reference toasteriskcpp::MailboxCountResponse::MailboxCountResponse(std::string const&)'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueSummaryAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::CoreStatusAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ModuleCheckAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ParkAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::VoicemailUsersListAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SetCdrUserFieldAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeListAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ZapTransferAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::LocalOptimizeAwayAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::QueuePauseAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::JabberSendAction' /usr/local/lib//libasteriskcpp.so: undefined reference toasteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::string const&)'
/usr/local/lib//libasteriskcpp.so: undefined reference to asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::string const&)' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ConfbridgeSetSingleVideoSrcAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeChatSendAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::MixMonitorMuteAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::CoreShowChannelsAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SipPeersAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::string const&)' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::MailboxStatusAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MonitorAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::PauseMonitorAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeUnlockAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SetVarAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::string const&)' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::DahdiShowChannelsAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbPutAction' /usr/local/lib//libasteriskcpp.so: undefined reference toasteriskcpp::CoreStatusResponse::CoreStatusResponse(std::string const&)'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapDndOnAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ZapDndOffAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStartRecordAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::QueueAddAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeBuddyAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SipShowPeerAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapHangupAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::CoreSettingsAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MeetMeMuteAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::BridgeAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStopRecordAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SkypeAddBuddyAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueuePenaltyAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::PingAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ChangeMonitorAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::DbDelTreeAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PauseMixMonitorAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ConfbridgeKickAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbGetAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::QueueRemoveAction'
/usr/local/lib//libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetConfigAction' /usr/local/lib//libasteriskcpp.so: undefined reference tovtable for asteriskcpp::StatusAction'
collect2: error: ld returned 1 exit status

Can you help me to fix this error?

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.