summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/sig_pri.c2
-rw-r--r--channels/sig_pri.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/channels/sig_pri.c b/channels/sig_pri.c
index e0d40979e..5b678c23b 100644
--- a/channels/sig_pri.c
+++ b/channels/sig_pri.c
@@ -2465,6 +2465,7 @@ int pri_send_callrerouting_facility_exec(struct sig_pri_chan *p, enum ast_channe
return res;
}
+#ifdef HAVE_PRI_SERVICE_MESSAGES
int pri_maintenance_bservice(struct pri *pri, struct sig_pri_chan *p, int changestatus)
{
int channel = PVT_TO_CHANNEL(p);
@@ -2472,5 +2473,6 @@ int pri_maintenance_bservice(struct pri *pri, struct sig_pri_chan *p, int change
return pri_maintenance_service(pri, span, channel, changestatus);
}
+#endif
#endif /* HAVE_PRI */
diff --git a/channels/sig_pri.h b/channels/sig_pri.h
index e3ef06dc1..135310371 100644
--- a/channels/sig_pri.h
+++ b/channels/sig_pri.h
@@ -256,6 +256,8 @@ void sig_pri_cli_show_span(int fd, int *dchannels, struct sig_pri_pri *pri);
int pri_send_keypad_facility_exec(struct sig_pri_chan *p, const char *digits);
int pri_send_callrerouting_facility_exec(struct sig_pri_chan *p, enum ast_channel_state chanstate, const char *destination, const char *original, const char *reason);
+#ifdef HAVE_PRI_SERVICE_MESSAGES
int pri_maintenance_bservice(struct pri *pri, struct sig_pri_chan *p, int changestatus);
+#endif
#endif /* _SIG_PRI_H */