Help: Please guide me to install Asterisk1.8 on GoFlex

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Help: Please guide me to install Asterisk1.8 on GoFlex

Postby leshan » Fri Apr 22, 2011 11:13 pm

I was using E3000+USB+Tomato to install Asterisk1.8 and worked great.
I just got a Goflex and install Arch Linux ARM install. I followed the instruction to install samba and working well.

Now I'm trying to install Asterisk1.8 on my Arch Linux ARM install.
I used command: pacman -S asterisk to install asterisk. I also copied the five files: sip.conf, jabber.conf,extensions.conf,modules.conf,gtalk.conf. These 5 files worked for me one the E3000+USB+Tomato.

Now, on my Arch Linux ARM install, the Asterisk service starts fine. The problem is that my PAP2(SPA1001) can not connect to the asterisk service on my Arch Linux ARM install.

Would anyone help me out. Or, give me a good tutorial.
Thanks
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby leshan » Sat Apr 23, 2011 6:22 pm

$this->bbcode_second_pass_quote('mikestaszel', 'I') hope you've seen this: https://wiki.archlinux.org/index.php/Asterisk

Also, it might have something to do with /etc/hosts.allow although I didn't see anything on that wiki page about it. Arch by default blocks everything incoming except sshd (and that's a Arch Linux ARM change), so you might need to let asterisk in too.

Thank you mikestaszel. I will try the hosts file thing.
I saw the link above before. And for the new edition asterisk http://aur.archlinux.org/packages.php?ID=14879. I can't install it with local file install command.
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby leshan » Sat Apr 23, 2011 9:14 pm

$this->bbcode_second_pass_quote('mikestaszel', 'I') hope you've seen this: https://wiki.archlinux.org/index.php/Asterisk

Also, it might have something to do with /etc/hosts.allow although I didn't see anything on that wiki page about it. Arch by default blocks everything incoming except sshd (and that's a Arch Linux ARM change), so you might need to let asterisk in too.


Hi mikestaszel,
My Asterisk still doesn't work. Here is what I did.

$this->bbcode_second_pass_code('', '
pacman -S asterisk
pacman -S libxml2
')
Now Asterisk service starts fine on Arch Linux ARM install

I added the following line to /etc/hosts.allow .
$this->bbcode_second_pass_code('', '
ALL: 192.168.1.0/255.255.255.0
')

SIP.CONF
$this->bbcode_second_pass_code('', '
[general]
context=default ; Default context for incoming calls
allowoverlap=no ; Disable overlap dialing support. (Default is yes)
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
tcpenable=yes ; Enable server for incoming TCP connections (default is no)
tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls

[101]
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
alwaysauthreject=yes
qualify=yes
username=101
secret=1234
type=friend
callerid="Your Name<101>"
host=dynamic
context=outbound
outgoinglimit=1
incominglimit=1
canreinvite=no
')

MODULES.CONF
$this->bbcode_second_pass_code('', '
[modules]
autoload=no
load => format_pcm.so ; uLaw/ALaw
load => codec_ulaw.so ; mu-Law
load => format_g726.so ; Raw G.726
load => codec_g726.so ; g-726
load => format_gsm.so ; Raw gsm
load => codec_gsm.so ; gsm Coder/Decoder
load => app_dial.so ; Dialing
load => app_macro.so ; Extension Macros
load => app_playback.so ; Sound File Playback
load => app_mixmonitor.so ; Record calls
load => app_setcallerid.so ; Set CallerID
load => app_disa.so ; DISA
load => app_transfer.so ; Transfer calls
load => func_timeout.so ; Adjust timeout;
load => func_callerid.so ; Caller ID
load => func_logic.so ; GotoIf() and friends
load => func_strings.so ; String handling
load => pbx_config.so ; dialplan
load => pbx_spool.so ; call files work
load => chan_sip.so ; SIP
load => chan_gtalk.so ; Gtalk
load => res_jabber.so ; sign in Gtalk
load => res_musiconhold.so ; Music-on-Hold
load => func_shell.so ; Execute shell
load => func_channel.so ; channel information
load => cdr_csv.so ; call record
load => res_rtp_asterisk.so ; rtp, for 1.8
load => app_exec.so ; system command
load => app_system.so ; system command
load => func_global.so ; use global variables
load => func_math.so ; math func. for multi GV accounts
')

EXTENSION.CONF
$this->bbcode_second_pass_code('', '
[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=Zap/G2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)

[default]
exten => s,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten => s,n,Dial(SIP/101,10)
exten => s,n, Hangup
exten => 101, 1, Dial(SIP/101, 10)

[google-in]
exten => Your_GV@gmail.com, 1, GotoIf(${DB_EXISTS(gv_dialout/channel)}?bridged)
exten => Your_GV@gmail.com, n, NoOp(Callerid ${CALLERID(name)})
exten => Your_GV@gmail.com, n, Set(CALLERID(num)=${SHIFT(CALLERID(name),@)})
exten => Your_GV@gmail.com, n, Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten => Your_GV@gmail.com, n, Dial(SIP/101, 180, D(:1))
exten => Your_GV@gmail.com, n(bridged),Bridge(${DB_DELETE(gv_dialout/channel)}, p)

[outbound]
include => seven-digit
include => custom-international
include => local-devices
include => tollfree
include => talk-gmail-outbound
include => talk-numeric-outbound
include => dial-uri

[custom-international]
exten => _01186X.,1,Set(CALLERID(num)=${1Your_GV#})
exten => _01186X.,n,Dial(SIP/${EXTEN}@nonoh,50,trg)
exten => _01186X.,n,Hangup

[local-devices]
exten => _1, 1, Dial(SIP/101,10)
exten => 101, 1, Dial(SIP/101,10)

[tollfree]
exten => _411, 1, Dial(SIP/18004664411@proxy.ideasip.com,60)
exten => _1800NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
exten => _1888NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
exten => _1877NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
exten => _1866NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)

[seven-digit]
exten => _NXXXXXX,1,Set(CALLERID(dnid)=1Your_AreaCode${CALLERID(dnid)})
exten => _NXXXXXX,n,Goto(1Your_AreaCode${EXTEN},1)
exten => _NXXNXXXXXX,1,Set(CALLERID(dnid)=1${CALLERID(dnid)})
exten => _NXXNXXXXXX,n,Goto(1${EXTEN},1)

[talk-gmail-outbound]
exten => _[a-z].@gmail.com,1,Dial(Gtalk/Your_GV/${EXTEN}@gmail.com)
exten => _[A-Z].@gmail.com,1,Dial(Gtalk/Your_GV/${EXTEN}@gmail.com)

[talk-numeric-outbound]
exten => _1NXXNXXXXXX,1,Dial(Gtalk/Your_GV/${EXTEN}@voice.google.com)
exten => _+1NXXNXXXXXX,1,Dial(Gtalk/Your_GV/${EXTEN}@voice.google.com)

[gv-agi-outbound]
exten => _1NXXNXXXXXX,1,AGI(google-voice-dialout.agi)
exten => _+1NXXNXXXXXX,1,AGI(google-voice-dialout.agi)

[dial-uri]
exten => _[a-z].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
exten => _[A-Z].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
exten => _X.,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
')
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby pepedog » Sat Apr 23, 2011 10:03 pm

Don't you need pygooglevoice ?
pacman -S python-pip
pip install pygooglevoice

That is beside the point, have you searched google for "spa1001 asterisk"?
I will get it running with a basic config

It might be better to start it with this, until you fix problems
asterisk -vvvvc
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby leshan » Sat Apr 23, 2011 10:36 pm

$this->bbcode_second_pass_quote('pepedog', 'D')on't you need pygooglevoice ?
pacman -S python-pip
pip install pygooglevoice

That is beside the point, have you searched google for "spa1001 asterisk"?
I will get it running with a basic config

It might be better to start it with this, until you fix problems
asterisk -vvvvc


Thanks pepedog
After running asterisk -vvvvc, I got
$this->bbcode_second_pass_code('', '
Unable to open AMI configuration manager.conf, or configuration is invalid. Asterisk management interface (AMI) disabled.
Can't find indications config file indications.conf.
Could not load features.conf
Could not find valid ccss.conf file. Using cc_max_requests default
31 modules will be loaded.
Error loading module 'chan_gtalk.so': /usr/lib/asterisk/modules/chan_gtalk.so: cannot open shared object file: No such file or directory
Error loading module 'res_jabber.so': /usr/lib/asterisk/modules/res_jabber.so: cannot open shared object file: No such file or directory
Error loading module 'chan_gtalk.so': /usr/lib/asterisk/modules/chan_gtalk.so: cannot open shared object file: No such file or directory
Module 'chan_gtalk.so' could not be loaded.
Error loading module 'res_jabber.so': /usr/lib/asterisk/modules/res_jabber.so: cannot open shared object file: No such file or directory
Module 'res_jabber.so' could not be loaded.
No music on hold classes configured, disabling music on hold.
The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
Cannot find variable 'SIPPEER' in tree 'description'
Cannot find variable 'SIPCHANINFO' in tree 'description'
unable to load config: cdr.conf
')
Looks like some module were missed in the original installation. I then found that the .conf files under /etc/asterisk were named .conf.default.
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm
Top

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby pepedog » Sun Apr 24, 2011 7:58 pm

I am recompiling asterisk as per this info
http://forums.digium.com/viewtopic.php?f=1&t=76909&sid=59baa909f1fff9b9e109113d3a364f37
Will give info when done.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby leshan » Sun Apr 24, 2011 8:57 pm

$this->bbcode_second_pass_quote('pepedog', 'I') am recompiling asterisk as per this info
http://forums.digium.com/viewtopic.php?f=1&t=76909&sid=59baa909f1fff9b9e109113d3a364f37
Will give info when done.

Thanks.
I switched to Debian and use the instruction. Asterisk is working perfectly on my GoFlex Net.
I will switch back to Arch Linux ARM install once you finish the new package.
I also have problem about mysql
viewtopic.php?f=15&t=1074

I found that samba transfer file faster in Arch Linux ARM install than in Debian squeeze.
write:
Arch Linux ARM install: 30-35Mbps
Debian: 10-13Mbps
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm
Top

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby pepedog » Sun Apr 24, 2011 9:47 pm

You can upgrade with this (might pay to backup /etc/asterisk first)
$this->bbcode_second_pass_code('', 'pacman -U http://myplugbox.com/bunghole/asterisk/asterisk-1.8.2.3-2-arm.pkg.tar.xz')
I have passed calls extension to extension.

I saw your mysql post, have you created the root/admin password, or do you need to have server running for that?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby leshan » Sun Apr 24, 2011 11:13 pm

$this->bbcode_second_pass_quote('pepedog', 'Y')ou can upgrade with this (might pay to backup /etc/asterisk first)
$this->bbcode_second_pass_code('', 'pacman -U http://myplugbox.com/bunghole/asterisk/asterisk-1.8.2.3-2-arm.pkg.tar.xz')
I have passed calls extension to extension.

I saw your mysql post, have you created the root/admin password, or do you need to have server running for that?


Hi,
pepedog, I'm still on debian now. But I tried to install on the NAND Arch Linux ARM install and got the following error:

error: failed retrieving file 'curl-7.21.4-2-arm.pkg.tar.xz' from plugboxlinux.org : Not Found
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm
Top

Re: Help: Please guide me to install Asterisk1.8 on GoFlex

Postby pepedog » Mon Apr 25, 2011 12:16 am

Not a specialist in NAND but don't think you can do that.
You have to have system how you want on USB, then use tools to create a new ubi image (I think)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests