 by leshan » Sat Apr 23, 2011 9:14 pm
by 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/AsteriskAlso, 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)
')