[Asterisk-code-review] chan ooh323: IPTOS MINCOST is not defined on Solaris. (asterisk[13])
Alexander Traud
asteriskteam at digium.com
Sat Jun 23 01:41:22 CDT 2018
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/9288
Change subject: chan_ooh323: IPTOS_MINCOST is not defined on Solaris.
......................................................................
chan_ooh323: IPTOS_MINCOST is not defined on Solaris.
Furthermore, <sys/sockio.h> is required for SIOCGIF*.
ASTERISK-27938
Change-Id: Idc9153ece769944765b66122efb11728d8d8ebde
---
M addons/chan_ooh323.c
M addons/ooh323c/src/ooSocket.c
2 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/88/9288/1
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c
index fe3ccac..9e0da81 100644
--- a/addons/chan_ooh323.c
+++ b/addons/chan_ooh323.c
@@ -3045,7 +3045,11 @@
else if (!strcasecmp(v->value, "reliability"))
gTOS = IPTOS_RELIABILITY;
else if (!strcasecmp(v->value, "mincost"))
+#ifdef IPTOS_MINCOST
gTOS = IPTOS_MINCOST;
+#else
+ gTOS = 0x02;
+#endif
else if (!strcasecmp(v->value, "none"))
gTOS = 0;
else
diff --git a/addons/ooh323c/src/ooSocket.c b/addons/ooh323c/src/ooSocket.c
index 9a34205..31c3732 100644
--- a/addons/ooh323c/src/ooSocket.c
+++ b/addons/ooh323c/src/ooSocket.c
@@ -17,6 +17,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#ifdef SOLARIS
+#include <sys/sockio.h>
+#endif
+
#include "asterisk/io.h"
#include "asterisk/lock.h"
#include "asterisk/utils.h"
--
To view, visit https://gerrit.asterisk.org/9288
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc9153ece769944765b66122efb11728d8d8ebde
Gerrit-Change-Number: 9288
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180623/35533680/attachment.html>
More information about the asterisk-code-review
mailing list