2007-11-06 02:50:28 +00:00
|
|
|
$OpenBSD: patch-pjlib_include_pj_config_h,v 1.2 2007/11/06 02:50:28 deanna Exp $
|
import pjsua 0.7.0
pjsua is an open source command line SIP user agent that is used as
the reference implementation for PJSIP and PJMEDIA. It has many
features, such as:
* Mutiple identities/account registrations
* Concurrent calls and conference (unlimited number, but only up
to 254 sources can be mixed to a single destination)
* Call features: call hold, call transfer (attended or unattended,
with or without refersub).
* SIP Presence/SIMPLE with PIDF and XPIDF support. PUBLISH support.
* Instant messaging and message composing indication
* DTMF digits transmission/receipt (RFC 2833)
* WAV file playing, streaming, and recording.
* Accoustic echo cancellation (AEC).
* Auto-answer, auto-play file, auto-loop RTP
* Support SIP UDP, TCP, and TLS transports. Support for DNS SRV
resolution.
* NAT traversal with rport and STUN.
* Tone generation.
* Codecs: PCMA, PCMU, GSM, Speex (including wideband/16KHz and
ultra-wideband/32KHz), L16 (8-48KHz, mono or stereo), and iLBC.
* Adaptive jitter buffer, adaptive silence detection, and packet
lost concealment audio features.
With lots of testing and help from todd@, sthen@, jakemsr@, jolan@ and
Benny Prijono.
ok todd@ sthen@
2007-10-27 04:34:23 +00:00
|
|
|
--- pjlib/include/pj/config.h.orig Thu May 3 09:31:21 2007
|
2007-11-06 02:50:28 +00:00
|
|
|
+++ pjlib/include/pj/config.h Sat Nov 3 17:39:38 2007
|
import pjsua 0.7.0
pjsua is an open source command line SIP user agent that is used as
the reference implementation for PJSIP and PJMEDIA. It has many
features, such as:
* Mutiple identities/account registrations
* Concurrent calls and conference (unlimited number, but only up
to 254 sources can be mixed to a single destination)
* Call features: call hold, call transfer (attended or unattended,
with or without refersub).
* SIP Presence/SIMPLE with PIDF and XPIDF support. PUBLISH support.
* Instant messaging and message composing indication
* DTMF digits transmission/receipt (RFC 2833)
* WAV file playing, streaming, and recording.
* Accoustic echo cancellation (AEC).
* Auto-answer, auto-play file, auto-loop RTP
* Support SIP UDP, TCP, and TLS transports. Support for DNS SRV
resolution.
* NAT traversal with rport and STUN.
* Tone generation.
* Codecs: PCMA, PCMU, GSM, Speex (including wideband/16KHz and
ultra-wideband/32KHz), L16 (8-48KHz, mono or stereo), and iLBC.
* Adaptive jitter buffer, adaptive silence detection, and packet
lost concealment audio features.
With lots of testing and help from todd@, sthen@, jakemsr@, jolan@ and
Benny Prijono.
ok todd@ sthen@
2007-10-27 04:34:23 +00:00
|
|
|
@@ -120,6 +120,10 @@
|
|
|
|
* RTEMS
|
|
|
|
*/
|
|
|
|
# include <pj/compat/os_rtems.h>
|
|
|
|
+
|
|
|
|
+#elif defined(__OpenBSD__)
|
|
|
|
+# include <pj/compat/os_openbsd.h>
|
|
|
|
+
|
|
|
|
#else
|
|
|
|
# error "Please specify target os."
|
|
|
|
#endif
|
2007-11-06 02:50:28 +00:00
|
|
|
@@ -133,6 +137,28 @@
|
|
|
|
* Autoconf configured
|
|
|
|
*/
|
|
|
|
#include <pj/compat/m_auto.h>
|
|
|
|
+
|
|
|
|
+#elif defined(__OpenBSD__)
|
|
|
|
+#include <sys/param.h>
|
|
|
|
+#include <machine/endian.h>
|
|
|
|
+#define PJ_M_NAME MACHINE
|
|
|
|
+#if defined(__LP64__)
|
|
|
|
+#define PJ_POOL_ALIGNMENT 8
|
|
|
|
+#else
|
|
|
|
+#define PJ_POOL_ALIGNMENT 4
|
|
|
|
+#endif
|
|
|
|
+#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
+#define PJ_HAS_PENTIUM 1
|
|
|
|
+#else
|
|
|
|
+#define PJ_HAS_PENTIUM 0
|
|
|
|
+#endif
|
|
|
|
+#if _BYTE_ORDER == _LITTLE_ENDIAN
|
|
|
|
+#define PJ_IS_LITTLE_ENDIAN 1
|
|
|
|
+#define PJ_IS_BIG_ENDIAN 0
|
|
|
|
+#else
|
|
|
|
+#define PJ_IS_LITTLE_ENDIAN 0
|
|
|
|
+#define PJ_IS_BIG_ENDIAN 1
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#elif defined (PJ_M_I386) || defined(_i386_) || defined(i_386_) || \
|
|
|
|
defined(_X86_) || defined(x86) || defined(__i386__) || \
|