The Second Order Effect

Getting chan_gtalk and res_jabber to work on AsteriskNOW 1.50

by on Apr.23, 2010, under Tech Articles

Some of my Asterisk servers (against all reason, viagra it seems) are AsteriskNOW servers – which recently updated their asterisk16 branch to 1.6.2.6.

chan_gtalk, hygiene and res_jabber – modules for installing Jabber and Gtalk access are missing. As I’ve learned, Asterisk Modules have to be built on the exact same platform/compile time switches as the asterisk executable, so the only way I could get these modules was to recompile by source.

I had planned to ditch the AsteriskNOW packages, but I ended up modifying the packages to include these modules instead. These should install (somewhat seamlessly) over your current AsteriskNOW release. (The biggest issue is if you have other modules installed – they’ll have to be rebuilt. For Skype, install the -devel package, then rebuilt Skype from source direct from Digiums site.)

This repackage is a bit of a kludge, and will break ODBC or Speex.

Checkout my Repository – http://mirrors.geekymedia.com/centos/ – for the packages.

Below is a diff of the SPEC file. I told you it was kludgy.

19c19
< %define arelease 1_centos5 --- > %define arelease 2_centos5
23a24,28
> # Disable non functioning modules for -2 arch build
> %define _without_odbc 1
> %define _without_speex 1
>
>
314a320,338
> #  Chan Gtalk/Jabber subpackage
> #
> %{?_without_gtalk:%if 0}
> %{!?_without_gtalk:%if 1}
> %package gtalk
> Summary: Gtalk Jabber Channel module for Asterisk
> Group: Utilities/System
> Provides: asterisk-gtalk
> Provides: asterisk%{astapi}-gtalk
> BuildRequires: iksemel-devel
> Requires: iksemel
> Requires: %{name}-core = %{actversion}-%{release}
>
> %description gtalk
> Asterisk channel plugin for Google Talk, and res plugin for Jabber
> %endif
>
>
> #
539a564
> # from source/contrib/scripts
1038a1064,1076
> #  Chan Gtalk/Jabber subpackage
> #
> %{?_without_gtalk:%if 0}
> %{!?_without_gtalk:%if 1}
> %files gtalk
> %defattr(-, root, root)
> %{_libdir}/asterisk/modules/chan_console.so
> %{_libdir}/asterisk/modules/chan_gtalk.so
> %{_libdir}/asterisk/modules/chan_jingle.so
> %{_libdir}/asterisk/modules/res_jabber.so
> %endif
>
> #
1120a1159,1168
> * Fri Apr 23 2010 Rizwan Kassim  - 1.6.2.6-2
> - Created additional package for Google Talk/Jabber client
> - Because these binaries don't match up with the Asterisk Released ones - will need to upgrade as many packages as possible
> - No spec file released for skype4asterisk, so just install manually form http://downloads.digium.com/pub/telephony/skypeforasterisk/asterisk-1.6.2.0/x86-32/ after asterisk-16-devel is updated.
> - Grep asterisk log for 'compile-time' for other possible module errors.
>
> * Thu Apr 13 2010 Jason Parker  - 1.6.2.6-1
> - Update to 1.6.2.6
> - Assuming same details as in the past - Date is from SRPM http://packages.asterisk.org/centos/5/current/SRPMS/
>

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...