Hi, here are the sip conf and dialplan for my server 2, i get a sip turnk connection registered, but apart from that nothing else seems to work, i can call an extension on server 2 but it refuses to leave the actual server if i try to call a server 1 connection. (Server one config very similar as this is a uni project)
[globals]
[general]
autofallthrough=yes
[default]
[phones]
include =>remote
;extensions
exten => 2001,1,Verbose([0]<someone is calling 2001>)
exten => 2001,n,dial(SIP/2001)
exten => 2001,n,hangup
exten => 2002,1,Verbose([0]<someone is calling 2002>)
exten => 2002,n,dial(SIP/2002)
exten => 2002,n,hangup
exten => 2004,1,Verbose([0]<someone is calling 2004>)
exten => 2004,n,dial(IAX2/2004)
exten => 2004,n,hangup
[internal]
;location of extensions starting with 2
exten => _2XXX,1,Verbose([0]<someone is calling 2001>)
exten => _2XXX,n,dial(SIP/${EXTEN},30)
exten => _2XXX,n,hangup
[remote]
;location of extensions starting with 1
exten => _1XXX,1,Verbose([0]<someone is calling 1001>)
exten => _1XXX,n,dial(SIP/SRV1/${EXTEN})
exten => _1XXX,n,hangup
;location of where to find extensions
[SRV1_incoming]
include=> remote
[SRV2_incoming]
include=> internal
[general]
;register sip trunk with server 1
;register=SRV2:welcome@192.168.137.1/SRV2
register=SRV2:welcome@192.168.0.81/SRV2
; register detail of server 1
[SRV1]
type=friend
secret=welcome
context=SRV1_incoming
host=dynamic
disallow=all
allow=ulaw
; register detail of server 2
[SRV2]
type=friend
secret=welcome
context=SRV2_incoming
host=dynamic
disallow=all
allow=ulaw
;register extension 2001
[2001]
type=friend
context=phones
host=dynamic
;register extension 2002
[2002]
type=friend
context=phones
host=dynamic
lorddc
Newsterisk
Posts: 5
Joined: Fri Apr 13, 2012 10:18 am