[general]
static=yes
writeprotect=no
[globals]
[macro-nocall]
exten => s,1,Answer
exten => s,2,Wait(0,5)
exten => s,3,Playback(ss-noservice)
exten => s,4,hangup
[macro-oversipgate1] ; Die erste SipgateNummer - quasi ExterneMSN1
exten => s,1,SetCallerID(${ARG2})
exten => s,2,SetCIDName(${ARG3})
exten => s,3,Dial(SIP/${ARG1}@sipgate1,60,Ttr)
exten => s,104,Playtones(busy);
exten => s,105,Busy
[macro-oversipgate2] ; Die erste SipgateNummer - quasi ExterneMSN2
exten => s,1,SetCallerID(${ARG2})
exten => s,2,SetCIDName(${ARG3})
exten => s,3,Dial(SIP/${ARG1}@sipgate2,60,Ttr)
exten => s,104,Playtones(busy);
exten => s,105,Busy
[macro-oversipgate3] ; Die erste SipgateNummer - quasi ExterneMSN3
exten => s,1,SetCallerID(${ARG2})
exten => s,2,SetCIDName(${ARG3})
exten => s,3,Dial(SIP/${ARG1}@sipgate3,60,Ttr)
exten => s,104,Playtones(busy);
exten => s,105,Busy
; DIESE NUMMERN SIND TEUER, DESHALB NICHT WAEHLEN
[gesperrt]
exten => _019x.,1,Macro(nocall)
exten => _013x.,1,Macro(nocall)
exten => _900x.,1,Macro(nocall)
exten => _0088x.,1,Macro(nocall)
[shortcuts]
exten => 999100,1,Dial(Sip/123@sipgate1,30,tr)
[default]
include => gesperrt
include => fromsip
[fromsip]
exten => Sipnummer1,1,Dial(Zap/2/20,60)
exten => Sipnummer1,2,Congestion
exten => Sipnummer1,102,Busy
exten => Sipnummer2,1,Dial(Zap/2/11,60)
exten => Sipnummer2,2,Congestion
exten => Sipnummer2,102,Busy
exten => Sipnummer3,1,Dial(Zap/2/10,60)
exten => Sipnummer3,2,Congestion
exten => Sipnummer3,102,Busy
[sipout-20]
exten => _0.,1,Macro(oversipgate1,${EXTEN},Sipnummer1,ich1)
[sipout-11]
exten => _0.,1,Macro(oversipgate2,${EXTEN},Sipnummer3,ich2)
[sipout-10]
exten => _0.,1,Macro(oversipgate3,${EXTEN},Sipnummer2,FAX)
[sipout]
exten => s,1,NoOP
exten => _X.,1,Goto(sipout-${CALLERIDNUM},${EXTEN},1)
include => shortcuts
[channels]
language=de
context=sipout
switchtype=euroisdn
pridialplan=private
signalling=bri_net_ptmp
channel => 1-2
group=1
immediate=n
overlapdial=no
usecallerid=yes
[general]
port=5060
bindaddr=192.168.45.xxxx2
language=de
context=default
disallow=all
externip=xxxxx.dyndns.org
localnet=192.168.45.0/255.255.255.0
allow=gsm
allow=ilbc
allow=speex
allow=g729
allow=g726
allow=ulaw
nat=no
;srvlookup=yes
register=>Sipnummer1:[email protected]/Sipnummer1 ; sipgate 1
register=>Sipnummer2:[email protected]/Sipnummer2 ; sipgate 2
register=>Sipnummer3:[email protected]/Sipnummer3 ; sipgate 3
[sipgate1]
type=peer
username=Sipnummer1
fromuser=Sipnummer1
secret=pw1
context=default
host=sipgate.de
fromdomain=sipgate.de
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=gsm
allow=ilbc
allow=ulaw
allow=alaw
allow=g726
allow=speex
[sipgate2]
type=peer
username=Sipnummer2
fromuser=Sipnummer2
secret=pw2
context=default
host=sipgate.de
fromdomain=sipgate.de
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=gsm
allow=ilbc
allow=ulaw
allow=alaw
allow=g726
allow=speex
[sipgate3]
type=peer
username=Sipnummer3
fromuser=Sipnummer3
secret=pw3
context=default
host=sipgate.de
fromdomain=sipgate.de
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=gsm
allow=ilbc
allow=ulaw
allow=alaw
allow=g726
allow=speex
[sipout]
exten => s,1,NoOP
include => gesperrt
include => shortcuts
exten => _X.,1,Goto(sipout-${PRI_NETWORK_CID},${EXTEN},1)
[general]
static=yes
writeprotect=no
[globals]
[macro-nocall]
exten => s,1,Answer
exten => s,2,Wait(0,5)
exten => s,3,Playback(ss-noservice)
exten => s,4,hangup
[macro-oversipgate1] ; Die erste SipgateNummer - quasi ExterneMSN1
exten => s,1,SetCallerID(${ARG2})
exten => s,2,SetCIDName(${ARG3})
exten => s,3,Dial(SIP/${ARG1}@sipgate1,60,Ttr)
exten => s,104,Playtones(busy);
exten => s,105,Busy
[macro-oversipgate2] ; Die erste SipgateNummer - quasi ExterneMSN2
exten => s,1,SetCallerID(${ARG2})
exten => s,2,SetCIDName(${ARG3})
exten => s,3,Dial(SIP/${ARG1}@sipgate2,60,Ttr)
exten => s,104,Playtones(busy);
exten => s,105,Busy
[macro-oversipgate3] ; Die erste SipgateNummer - quasi ExterneMSN3
exten => s,1,SetCallerID(${ARG2})
exten => s,2,SetCIDName(${ARG3})
exten => s,3,Dial(SIP/${ARG1}@sipgate3,60,Ttr)
exten => s,104,Playtones(busy);
exten => s,105,Busy
; DIESE NUMMERN SIND TEUER, DESHALB NICHT WAEHLEN
[gesperrt]
exten => _019x.,1,Macro(nocall)
exten => _013x.,1,Macro(nocall)
exten => _900x.,1,Macro(nocall)
exten => _0088x.,1,Macro(nocall)
[shortcuts]
exten => 999100,1,Dial(Sip/173@sipgate1,30,tr)
exten => 999101,1,Dial(Sip/51@sipgate1,30,tr)
exten => 999102,1,Dial(Sip/30@sipgate1,30,tr)
exten => 999103,1,Dial(Sip/225@sipgate1,30,tr)
[fromsip]
exten => SIPGATENUMMER1,1,Dial(Zap/2/SIPGATENUMMER1,60)
exten => SIPGATENUMMER1,2,Congestion
exten => SIPGATENUMMER1,102,Busy
exten => SIPGATENUMMER2,1,Dial(Zap/2/SIPGATENUMMER2,60)
exten => SIPGATENUMMER2,2,Congestion
exten => SIPGATENUMMER2,102,Busy
exten => SIPGATENUMMER3,1,Dial(Zap/2/SIPGATENUMMER3,60)
exten => SIPGATENUMMER3,2,Congestion
exten => SIPGATENUMMER3,102,Busy
[sipout-SIPGATENUMMER1]
exten => _0.,1,Macro(oversipgate1,${EXTEN},SIPGATENUMMER1,NAME1)
[sipout-SIPGATENUMMER3]
exten => _0.,1,Macro(oversipgate2,${EXTEN},SIPGATENUMMER3,NAME2)
[sipout-SIPGATENUMMER2]
exten => _0.,1,Macro(oversipgate3,${EXTEN},SIPGATENUMMER2,NAME3)
[sipout]
include => gesperrt
include => shortcuts
exten => s,1,NoOP
exten => _X.,1,Goto(sipout-${PRI_NETWORK_CID},${EXTEN},1)
[general]
port=5060
bindaddr=192.168.xxx.xxx
language=de
context=fromsip
disallow=all
externip=xxxxx.dyndns.org
localnet=192.168.x.x/255.255.255.0
allow=gsm
allow=ilbc
allow=speex
allow=g729
allow=g726
allow=ulaw
nat=no
;srvlookup=yes
register=>SIPPGATENUMMER1:[email protected]/SIPPGATENUMMER1 ; sipgate 1
register=>SIPPGATENUMMER2:[email protected]/SIPPGATENUMMER2 ; sipgate 2
register=>SIPPGATENUMMER3:[email protected]/SIPPGATENUMMER3 ; sipgate 3
[sipgate1]
type=peer
username=SIPPGATENUMMER1
fromuser=SIPPGATENUMMER1
secret=PW1
context=sipout
host=sipgate.de
fromdomain=sipgate.de
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=gsm
allow=ilbc
allow=ulaw
allow=alaw
allow=g726
allow=speex
[sipgate2]
type=peer
username=SIPPGATENUMMER2
fromuser=SIPPGATENUMMER2
secret=PW2
context=sipout
host=sipgate.de
fromdomain=sipgate.de
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=gsm
allow=ilbc
allow=ulaw
allow=alaw
allow=g726
allow=speex
[sipgate3]
type=peer
username=SIPPGATENUMMER3
fromuser=SIPPGATENUMMER3
secret=PW3
context=sipout
host=sipgate.de
fromdomain=sipgate.de
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=gsm
allow=ilbc
allow=ulaw
allow=alaw
allow=g726
allow=speex
[channels]
language=de
context=sipout
switchtype=euroisdn
pridialplan=private
prilocaldialplan=local
signalling=bri_net_ptmp
channel => 1-2
group=1
immediate=n
overlapdial=no
usecallerid=yes