Hi,

attached you will find a backport of chan_mobile for Callweaver 1.2.
It is based on the work done by someone here:
http://www.sigsegv.cx/sip-9.html

However, I have updated the backport with all bugfixes from the upstream 
version from the asterisk-addon trunk.

chan_mobile could be the replacement for chan_bluetooth in the future as
it provides far more features.
For the meantime I suggest to add it as an option as well.

At the moment I am also working on a version for the latest svn trunk of
Callweaver.  It is almost done.

I hope that this backport uses the correct functions to work with
Callweaver, because I realized that quite a few things have changed in
Callweaver.

Any feedback is welcome!

Best regards,
Christian

P.S. Just in case any user wants to play with this, here is a quick quide
how to add it to the current RC:

1) copy chan_mobile.c to the channels dir
2) modify Makefile.am and add:

if WANT_CHAN_MOBILE
cwmod_LTLIBRARIES               += chan_mobile.la
chan_mobile_la_SOURCES          = chan_mobile.c
chan_mobile_la_LIBADD           = ${top_builddir}/corelib/libcallweaver.la
-lbluetooth
chan_mobile_la_LDFLAGS          = -module -avoid-version -no-undefined
endif WANT_CHAN_MOBILE

3) modify configure.ac in the main dir and add:

AC_ARG_WITH([chan_mobile],
        [AC_HELP_STRING([--with-chan_mobile],[Build and install
chan_mobile (default=yes)])],,
        [with_chan_mobile="yes"])

if test "${with_chan_mobile}" = "yes" ; then
        AC_CHECK_HEADERS([bluetooth/bluetooth.h], [HAVE_BLUETOOTH_H=1])
        AC_CHECK_LIB([bluetooth], [main], [HAVE_LIBBLUETOOTH=1])
fi


AM_CONDITIONAL([WANT_CHAN_MOBILE], [test "${with_chan_mobile}" = "yes" -a
-n "${HAVE_BLUETOOTH_H}" -a -n "${HAVE_LIBBLUETOOTH}"])

4) run ./bootstrap.sh to build the new configure script and Makefile
5) run ./configure --with-chan-mobile=yes
6) make
7) make install



_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to