[Sussex] re : asterisk

Simon Chappell s.chappell at isnsuk.com
Sat Mar 6 13:11:36 UTC 2004


A bit more on the asterisk front..
I have 3 working budget 101's working over VPN's ok..
I have installed the X100P(or winmodem if you beleive the hype) and done 
the modprobe zaptel wcfxo..
My problem is that I cannot get the sip phones to dial out and/or the 
incoming line to ring on the phones..
If anyone has a minute to look at my configs it would be greatly appreciated

/etc/zaptel.conf
fxsks=1
loadzone=uk
defaultzone=uk

/etc/asterisk/zapata.conf
[channels]
language=en
context=inbound-analog
signalling=fxs_ks
usecallerid=yes
echocancel=yes
echocancelwhenbridged=yes
channel => 1

/etc/asterisk/sip.conf
[channels]
language=en
context=inbound-analog
[general]

port = 5060           ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
allow=all             ; Allow all codecs
allow=ulaw
allow=alaw
allow=g729
externip=62.188.201.126
localmask=255.0.0.0
localnet=10.0.0.0
;context = sip ; Send SIP callers that we don't know about here
context = bogon-calls ; Send SIP callers that we don't know about here
;register =>  264368:fer4rr1 at fwd.pulver.com/1000

;[fwd.pulver.com]
;nat=yes
;type=friend
;secret=
;username=264368
;host=fwd.pulver.com


[2000]

type=friend           ; This device takes and makes calls
username=2000         ; Username on device
secret=9overthruster7 ; Password for device
host=dynamic          ; This host is not on the same IP addr every time
context=from-sip      ; Inbound calls from this host go here
;context=local-extensions      ; Inbound calls from this host go here
mailbox=100           ; Activate the message waiting light if this
dtmfmode=rfc2833

[2001]                ; Duplicate of 2000, except with different auth data
type=friend
username=2001
secret=asdf89843
host=dynamic
context=from-sip      ; Inbound calls from this host go here
;nat=yes
;canreinvite=no
mailbox=101
dtmfmode=rfc2833

[2002]                ; Duplicate of 2000, except with different auth data
type=friend
username=2002
secret=asdfr99
host=dynamic
context=from-sip
mailbox=102
dtmfmode=rfc2833

With this in the extensions.conf I get the you have no caller id warning 
but get no further
/etc/asterisk/extensions.conf
####snip#####

[landline]
exten => _9.,1,Dial(Zap/1/${EXTEN:2000})


;[inbound-analog]
;exten => s,1,Zapateller(answer|nocallerid)
;exten => s,2,NoOp
;exten => s,2,Macro(record-on,${PHONE1},${CALLERIDNUM})
;exten => s,3,PrivacyManager
;exten => s,4,Dial(${PHONE1},15,Ttm)
;exten => s,5,Answer
;exten => s,6,Wait(1)
;exten => s,7,Playback(new/hello)
;exten => s,8,Playback(new/marisa-john-not-in-momnt)
;exten => s,9,Playback(new/theyre-rattlesnake-wrstling)
;exten => s,10,Voicemail(u${PHONE1VM})
;exten => s,11,Hangup
;exten => s,108,Wait(2)
;exten => s,109,Voicemail(b${PHONE1VM})
;exten => s,110,Hangup


Many thanks

Simon










More information about the Sussex mailing list