mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-03 11:58:36 +00:00
freetdm: Fix compilation with old libpri.h where AOC is not available
This commit is contained in:
parent
004ebe4f12
commit
542e7153fc
@ -2249,6 +2249,7 @@ static int handle_facility_aoc_e(const struct pri_subcmd_aoc_e *aoc_e)
|
|||||||
ftdm_log(FTDM_LOG_INFO, "AOC-E:\n%s", tmp);
|
ftdm_log(FTDM_LOG_INFO, "AOC-E:\n%s", tmp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Handler for libpri facility events
|
* \brief Handler for libpri facility events
|
||||||
@ -2275,6 +2276,7 @@ static int on_facility(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_ev
|
|||||||
int res = -1;
|
int res = -1;
|
||||||
|
|
||||||
switch (sub->cmd) {
|
switch (sub->cmd) {
|
||||||
|
#ifdef HAVE_LIBPRI_AOC
|
||||||
case PRI_SUBCMD_AOC_S: /* AOC-S: Start of call */
|
case PRI_SUBCMD_AOC_S: /* AOC-S: Start of call */
|
||||||
res = handle_facility_aoc_s(&sub->u.aoc_s);
|
res = handle_facility_aoc_s(&sub->u.aoc_s);
|
||||||
break;
|
break;
|
||||||
@ -2293,6 +2295,7 @@ static int on_facility(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_ev
|
|||||||
sub->u.aoc_request_response.charging_request,
|
sub->u.aoc_request_response.charging_request,
|
||||||
sub->u.aoc_request_response.charging_response);
|
sub->u.aoc_request_response.charging_response);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
ftdm_log(FTDM_LOG_DEBUG, "FACILITY subcommand %d is not implemented, ignoring\n", sub->cmd);
|
ftdm_log(FTDM_LOG_DEBUG, "FACILITY subcommand %d is not implemented, ignoring\n", sub->cmd);
|
||||||
}
|
}
|
||||||
@ -2303,7 +2306,6 @@ static int on_facility(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_ev
|
|||||||
ftdm_log(FTDM_LOG_DEBUG, "Caught Event on span %d %u (%s)\n", ftdm_span_get_id(spri->span), event_type, lpwrap_pri_event_str(event_type));
|
ftdm_log(FTDM_LOG_DEBUG, "Caught Event on span %d %u (%s)\n", ftdm_span_get_id(spri->span), event_type, lpwrap_pri_event_str(event_type));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Handler for libpri dchan up event
|
* \brief Handler for libpri dchan up event
|
||||||
|
Loading…
x
Reference in New Issue
Block a user