rendered paste body; this the sip.conf for asterisk 1
[general]
canreinvite=no
dissallow=all
allow=ulaw
allow=alaw
allow=gsm
register => asterisk1:welcome@192.168.43.158
; This is the first phone for server 1
[1]
type=friend
callerid="Ast1Ext1"<1>
username=1
secret=welcome
nat=no
host=dynamic
canreinvite=yes
qualify=no
mailbox=1
context=internal
; This is the second phone for server 1
[2]
secret=welcome
type=friend
nat=no
host=dynamic
canreinvite=yes
username=2
qualify=no
callerid="Ast1Ext2"<2>
mailbox=2
context=internal
[asterisk2]
type=friend
username=asterisk2
secret=welcome
nat=no
host=dynamic
context=internal
; extensions.conf for asterisk 1
[internal]
exten => 1,1,Dial(SIP/1)
exten => 2,1,Dial(SIP/2)
exten => _81,1,Dial(SIP/${EXTEN:1}@asterisk2)
; This is the sip for asterisk 2
[general]
canreinvite=no
dissallow=all
allow=ulaw
allow=alaw
allow=gsm
register => asterisk2:welcome@192.168.43.157
; First phone for this asterisk server 2
[1]
type=friend
callerid="Ast2Ext1"<1>
username=1
secret=welcome
nat=no
host=dynamic
canreinvite=yes
qualify=no
mailbox=1
context=internal
; Second phone for the asterisk server 2
[2]
type=friend
callerid="Ast2Ext2"<2>
username=2
secret=welcome
nat=no
host=dynamic
canreinvite=yes
qualify=no
mailbox=2
context=internal
; Config for asterisk server 1
[asterisk1]
type=friend
username=asterisk1
secret=welcome
nat=no
host=dynamic
context=internal
; Externsions.conf for asterisk 2
[internal]
exten => 1,1,Dial(SIP/1)
exten => 2,1,Dial(SIP/2)
exten => _8X,1,Dial(SIP/${EXTEN:1}@asterisk1)