I’ve quite happily managed to get all of our SIP devices phoning each other, and leaving voicemail, but I’m a bit stumped when it comes to phoning externally… my set up is UK ISDN2e, a QuadBRI card, Bristuff .2.0-RC8q (hence Asterisk 1.0.10)
All i’m trying to do is get my sip phones to phone any external number. My zaptel.conf is:
loadzone=uk
defaultzone=uk
qozap span definitions
most of the values should be bogus because we are not really zaptel
span=1,1,3,ccs,ami
span=2,0,3,ccs,ami
span=3,0,3,ccs,ami
span=4,0,3,ccs,ami
bchan=1,2
dchan=3
bchan=4,5
dchan=6
My zapata.conf is:
[channels]
;
; Default language
;
;language=en
;
; Default context
;
;
switchtype = euroisdn
; p2mp TE mode (for connecting ISDN lines in point-to-multipoint mode)
signalling = bri_cpe_ptmp
; p2p TE mode (for connecting ISDN lines in point-to-point mode)
;signalling = bri_cpe
; p2mp NT mode (for connecting ISDN phones in point-to-multipoint mode)
;signalling = bri_net_ptmp
; p2p NT mode (for connecting an ISDN pbx in point-to-point mode)
;signalling = bri_net
pridialplan = dynamic
prilocaldialplan = local
nationalprefix = 0
internationalprefix = 00
usecallingpres=yes
echocancel = yes
echocancelwhenbridged = yes
echotraining = 100
context=isdn-incoming
group = 1
; S/T port 1-4
channel => 1-2
channel => 4-5
My sip.conf is:
[general]
context=isdn-incoming ; Default context for incoming calls
recordhistory=yes ; Record SIP history by default
; (see sip history / sip no history)
;realm=mydomain.tld ; Realm for digest authentication
; defaults to “asterisk”
; Realms MUST be globally unique according to RFC 3261
; Set this to your host name or domain name
port=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)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
localnet=10.0.75.0/255.255.255.0; All RFC 1918 addresses are local networks
[310]
type=friend
context=default
secret=test2
language=uk
host=dynamic
dtmfmode=info
callerid=John <310>
username=310
mailbox=310
restrictcid=no
[311]
type=friend
context=default
username=311
secret=rootbeer
language=uk
host=dynamic
dtmfmode=info
callerid=Ross <311>
mailbox=311
rsetrictcid=no
And my extensions.conf is:
[general]
static=yes
writeprotect=no
autofallthrough=yes
[default]
; ### Default Context ###
include => sip-phones
exten => 310,1,Dial(SIP/310|15)
exten => 310,2,Voicemail(u317)
exten => 310,102,Voicemail(b317)
exten => 311,1,Dial(SIP/311|15)
exten => 311,2,Voicemail(u311)
exten => 311,102,Voicemail(b311)
[isdn-incoming]
exten => _X.,1,Dial(SIP/phone${EXTEN},60)
exten => _X.,2,Hangup
[sip-phones]
exten => _9.,1,Dial(ZAP/g1/${EXTEN},60)
exten => _9.,2,Hangup
can anyone cast their eyes over these and give me a little help please?
Thanks in advance.
John