Generate sip call between 2 linux system

Want to generate sip call between 2 linux system using X-lite.On one system i have loaded Asterisk code with xlite running & on the other only xlite softphone exist .Do i have to installed asterisk there also .
Kindly help how to genrate call between thes 2 system

you just need asterisk on one system. I’m going to copy and paste some code (which I shared on another reply, double dipping sorry!) which you can use for two files you must edit in your asterisk directory.

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

[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”

Now just setup your x-lite with username 1000, , server the IP on your asterisk machine, and then the other x-lite as username 2000, and same server and you should be in business! -kaito

Thanks Kaito
For replying
As per your saying i did the same as u said , iam dialing from asterisk to user 1000(192.168.1.4 8 ) it is ringing i.e. its own number.but when iam dialing to user 2000(192.168.1.40) from asterisk ,in xlite iam finding one message display CALLER ID:2000@192.168.1.48 that IP suppose to be asterisk server.
On the other side (user 2000 ) on xlite it showing logging time out

On extension file i have put
[sip]
exten => 1000,1,Dial(SIP/1000)
exten => 2000,1,Dial(SIP/2000)

On sip file

[1000]
type=friend
host=dynamic
defaultip=192.168.1.48
username=1000
secret = password
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.1.40
username=2000
secret = password
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=2000 ; Mailbox for message waiting indicator
context=sip
callerid=“user2”

On xlite asterisk side(1000)
Display Name, username ,authoization user=1000
password=password
Domain/realm, SIP Proxy,outbound proxy =192.168.1.48

On usr side(2000)
Display Name, username ,authoization user=2000
password=password
Domain/realm, SIP Proxy,outbound proxy =192.168.1.40

Kindly tell where i am getting wrong

Looks to me like the problem is that you have two different domain/realms on the X-lite softphones.

Your softphones should all be logging on to the IP of the Asterisk server.

Thanks it worked

One more thing need to be asked I have one DIGUM card TE120P that is ported onto my server now. How can i connect with to the client .Do i hve to do the same process or something else