[Asterisk-Users] Asterisk running on OpenBSD 3.3
John Todd
jtodd at loligo.com
Wed Oct 15 00:52:29 MST 2003
I'm a pretty big fan of OpenBSD for various reasons, and I have been itching to get Asterisk running on that platform, since it is what the rest of my network has as it's base operating system. I have apparently been asleep at the wheel, since I didn't hear that Asterisk is now successfully compiling and running under OpenBSD 3.3 (3.4 as well, but I have not tested). A quick search of the archives didn't have any glowing announcements in big flashing letters, so I figure I'll put one up for everyone to use in their keyword searches.
There are only trivial patches required in the Makefile to get it working under 3.3, and the CC line patch is not even necessary for 3.4 (according to Thorsten Lockert, the principal driving force behind getting this to work on OpenBSD).
Patch /usr/src/asterisk/Makefile with these trivial patches:
--- Makefile~ Wed Oct 15 07:16:08 2003
+++ Makefile Wed Oct 15 07:16:08 2003
@@ -22,7 +22,7 @@
PROC=$(shell uname -m)
endif
# Pentium Pro Optimize
-#PROC=i686
+PROC=i686
# Pentium & VIA processors optimize
#PROC=i586
@@ -204,7 +204,7 @@
fi
asterisk: editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a $(OBJS)
- $(CC) $(DEBUG) -o asterisk -Wl,-E $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a
+ $(CC) $(DEBUG) -o asterisk $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a
subdirs:
for x in $(SUBDIRS); do $(MAKE) -C $$x || exit 1 ; done
Then, use "gmake" to compile and you should be on your way.
I compiled and ran Asterisk as of this evening's CVS on my OpenBSD 3.3 system, and placed SIP calls through it from my 7960 to a remote IAX host (7960 -> SIP -> * -> IAX2 -> PRI/PSTN) using ILBC, LPC10, gsm, and G711. No problems on any of them, but ADPCM sounded a bit static-y (which may be normal - I rarely use it). In other words: IT WORKS.
Now, to get those Zap drivers moved over to *BSD.... :-)
Glitches:
- safe_asterisk didn't work as expected, though Asterisk did launch (errored out on a TTY problem)
- there are no console messages during dialplan progression (perhaps related to first bug?)
- speex support does not work with 1.1 or 1.0.2 of libspeex for OpenBSD, apparently (more details if anyone wants them)
Notes: Again, thanks to Thorsten Lockert for putting a lot of time into the code. Also, Jim Mercer is working on FreeBSD and other patches, so everyone give them both a hand where possible to make Asterisk more ubiquitous and to help welcome new O/S users into the Asterisk community.
JT
More information about the asterisk-users
mailing list