Tuesday, December 4, 2012

Asterisk 11 and chan_motif on FreePBX 2.11 (..still cooking with manual dialplans for GTalk..)

FreePBX does have chan_motif (currently GUI supports only GVoice ) with module under UNSUPPORTED category in Module Admin. But first, before getting there, we need to setup Asterisk 11 to enable
Here’s the howto, this is of course assuming that you’ve installed Asterisk 11 already (so it is now a recompile exercise here). If you need to install fresh, try my article here:
  1. # cd /usr/src
  2. # wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
  3. # cd iksemel-1.4
  4. # ./configure && make && make all && make install
  5. # cd /usr/src/asterisk*
  6. # make clean
  7. # ./configure
  8. # make menuselect (be sure that in Channel Drivers, see if the chan_motif driver is shows a * symbol.
  9. # make && make install
  10. Stop and restart asterisk # amportal kill && amportal start
Now, sign in to FreePBX
  1. Go to Admin | Module Admin
  2. Be sure to also select UNSUPPORTED as the options for repositories
  3. Lookout for the Google Voice/Chan Motif under Connectivity, install and go to that page
  4. Go to Connectivity | Google Voice [Motif]
  5. Configure happily there
image
I will update this article for use with GTALK later…since GVoice is done via FreePBX heck, why do dialplans Smile

10 comments:

Anonymous said...

Life saver! thanks

Cesar Alcazar said...

I have done step by step what the article says. Everything has ran perfectly but when I go to the Module Admin page and open the connectivity for Google Voice [Motif] I get.. "This Module Requires Asterisk mod_motif & mod_xmpp to be installed and loaded". Can you please help?

Sanjay Willie said...

Hi Cesar. When you do make menuselect does the modules show up? See item 8.

Cesar Alcazar said...

Yes, everything is exactly as the steps show. I see all the modules I need when running menuselect and everything runs with out a snag. I read on a post "http://www.freepbx.org/forum/freepbx/general-help/google-voice-module" that this might happen because of some missing library the prevented the modules from loading... Not sure at all what this means as I have been trying everything I can to figure this out... Any idea on this?

Cesar,

Cesar Alcazar said...

Hey Sanjay, after so much work I figured it out. So for some reason jabber, gtalk and extensions_custom files had .conf.old on them, I changed their names and created a new file for each with only the extension .conf and it fixed it. I was able to see the the page.

Cesar Alcazar said...

Quick question. I have everything running perfectly, have incoming and outgoing trunks to google and everything. My only problem now is, I have tried adding other google numbers but it won't work... I can't seem to add a second google number.

Hilary Herron said...

Hi Sanjay,
For some reason after step 4 I am trying to change to that asterisk directory, but it didn't seem to have installed anything.

[root@localhost src]# ls -l
total 540
drwxr-xr-x 2 root root 4096 May 11 2011 debug
drwxr-xr-x 7 root root 4096 Mar 19 16:15 freepbx-2.10.0rc1
drwxrwxrwx 7 1000 users 4096 Mar 20 13:39 iksemel-1.4
-rw-r--r-- 1 root root 517870 Jul 25 2009 iksemel-1.4.tar.gz
drwxr-xr-x 2 root root 4096 May 11 2011 kernels

The step 4 command seemed to have run correctly. Do you have any suggestions for what I might check?

-Dave

Hilary Herron said...

Hi Sanjay,
For some reason after step 4 I am trying to change to that asterisk directory, but it didn't seem to have installed anything.

[root@localhost src]# ls -l
total 540
drwxr-xr-x 2 root root 4096 May 11 2011 debug
drwxr-xr-x 7 root root 4096 Mar 19 16:15 freepbx-2.10.0rc1
drwxrwxrwx 7 1000 users 4096 Mar 20 13:39 iksemel-1.4
-rw-r--r-- 1 root root 517870 Jul 25 2009 iksemel-1.4.tar.gz
drwxr-xr-x 2 root root 4096 May 11 2011 kernels

The step 4 command seemed to have run correctly. Do you have any suggestions for what I might check?

-Dave

Hilary Herron said...

Nevermind. Apparently Asterisk NOW doesn't come with Asterisk 11. I am upgrading to Asterisk 11 now to see if that fixes my issue.

karan verma said...

Hi Sir
It is a great tutorial for asterisk and freepbx.
But i am getting a error.Whenever i run this command
'/var/lib/asterisk/bin/module_admin upgradeall'

i get this error

/usr/src/freepbx-2.11.0beta2# /var/lib/asterisk/bin/module_admin upgradeall
no repos specified, using: [standard] from last GUI settings

Up to date.

**** WARNING: ERROR IN CONFIGURATION ****
astrundir in '/etc/asterisk' is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p '

mkdir: missing operand
Try 'mkdir --help' for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.


need your help...