Asterisk Server

Hello, i need to make calls from one asterisk server extension to another asterisk serverextension, how to i make this in the dial patterns?

Ex: i have an asterisk server with this network 192.168.158.91 and another with this network 192.168.158.92, the first one i configured an extension 1000 so that the second one should log on into the first one.

now what i want is to make calls between the extensions of the two server.

Put this in your extensions.conf:

[sip]
exten => 1000,1,Dial(SIP/1000)
exten => 2000,1,Dial(SIP/2000)

then you’ll have an extension 1000 and one for 2000 (one for each IP that you listed).

Now in sip.conf you’ll need to identify the phones or softphones at those IP’s. so put in this and you should be able to make one call from one phone to another. hope this helps…?

[1000]
type=friend
host=dynamic
defaultip=192.168.158.91
username=1000
secret=
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=1000 ; Mailbox for message waiting indicator
context=sip
callerid=“user1”

[2000]
type=friend
host=dynamic
defaultip=192.168.158.92
username=2000
secret=
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=2000 ; Mailbox for message waiting indicator
context=sip
callerid=“user2”