Skip to content
Snippets Groups Projects
Commit f161f8da authored by Tristan Matthews's avatar Tristan Matthews Committed by Guillaume Roguez
Browse files

configure: fix --without-instant_messaging

Refs #54375

Change-Id: Ic1fee5ba3f140f3ce1f8ece581a433963fc0747e
parent 7d10a8ca
No related branches found
No related tags found
No related merge requests found
...@@ -349,7 +349,6 @@ AC_ARG_WITH([instant_messaging], ...@@ -349,7 +349,6 @@ AC_ARG_WITH([instant_messaging],
dnl Fallback to older version dnl Fallback to older version
[with_instant_messaging=no]) [with_instant_messaging=no])
]); ]);
AS_IF([test "$with_instant_messaging" != "yes"], [AC_MSG_ERROR([Missing libexpat development files])], [])
AC_DEFINE_UNQUOTED([HAVE_INSTANT_MESSAGING], `if test "x$with_instant_messaging" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have instant messaging support]) AC_DEFINE_UNQUOTED([HAVE_INSTANT_MESSAGING], `if test "x$with_instant_messaging" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have instant messaging support])
AM_CONDITIONAL(BUILD_INSTANT_MESSAGING, test "x$with_instant_messaging" = "xyes" ) AM_CONDITIONAL(BUILD_INSTANT_MESSAGING, test "x$with_instant_messaging" = "xyes" )
......
...@@ -244,12 +244,14 @@ IAXVoIPLink::handleBusy(IAXCall& call) ...@@ -244,12 +244,14 @@ IAXVoIPLink::handleBusy(IAXCall& call)
call.removeCall(); call.removeCall();
} }
#if HAVE_INSTANT_MESSAGING
void void
IAXVoIPLink::handleMessage(iax_event* event, IAXCall& call) IAXVoIPLink::handleMessage(iax_event* event, IAXCall& call)
{ {
Manager::instance().incomingMessage(call.getCallId(), call.getPeerNumber(), Manager::instance().incomingMessage(call.getCallId(), call.getPeerNumber(),
std::string((const char*) event->data)); std::string((const char*) event->data));
} }
#endif
void void
IAXVoIPLink::handleRinging(IAXCall& call) IAXVoIPLink::handleRinging(IAXCall& call)
......
...@@ -94,7 +94,9 @@ class IAXVoIPLink { ...@@ -94,7 +94,9 @@ class IAXVoIPLink {
void handleRinging(IAXCall& call); void handleRinging(IAXCall& call);
void handleAnswerTransfer(iax_event* event, IAXCall& call); void handleAnswerTransfer(iax_event* event, IAXCall& call);
void handleBusy(IAXCall& call); void handleBusy(IAXCall& call);
#if HAVE_INSTANT_MESSAGING
void handleMessage(iax_event* event, IAXCall& call); void handleMessage(iax_event* event, IAXCall& call);
#endif
void handleHangup(IAXCall& call); void handleHangup(IAXCall& call);
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment