SIP TRunk issues

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

What are 192.168.137.1 and 192.168.0.81?

Assuming they are the server addresses, and appear to be static, why use host=dynamic and why register?

one ip is for uni kit since its shared equipment rack we have to use the specific ip and the other is for home equipment… it is my understanding i need to use register for it to connect to the other server. host=dynamic is used as that is what i was told to use, if that is not correct i had no way of determining this, hense why im on the asterisk support forum.

Are these server1 and server2? If so which is which? If not where do server1 and server2 fit in?

If you control all the servers, and they have static addresses, there is no need to use register.

Okay, host is changed to IP nd removed register strings, still having issues, these are the configs of server 1, server 2 is basicaly similar, what we need to do is make a “sample” system for an assignment, we need to make use of sip,iax trunks, i have no issue with iax trunk tht works fine, the sip trunks now register but it cant seem to find the extensions even though they are in place in the extensions.conf file

Next provide CLI output at, at least, verbosity 3.