Hi all,
I’ve Configured 2 Astersik Servers A & B. and 2 softphones SP1 & SP2 for those 2 Servers.
SP1 <-------------> Asterisk A
SP2 <-------------> Asterisk B
But How to communicate those 2 Softphones through their respective Servers on
SIP channesls???
Please help me on this scenario…
[quote=“mallikarjun”]Hi all,
I’ve Configured 2 Astersik Servers A & B. and 2 softphones SP1 & SP2 for those 2 Servers.
SP1 <-------------> Asterisk A
SP2 <-------------> Asterisk B
But How to communicate those 2 Softphones through their respective Servers on
SIP channesls???
Please help me on this scenario…[/quote]
Google is your friend.
yusuf
July 8, 2007, 11:17am
3
Hi,
in sip.conf on A:
[serverB]
type=friend
host=a.b.c.d (IP of B)
allow=all (or alaw, whatever)
qualify=yes
context=sip
in sip.conf on B:
[serverA]
type=friend
host=w.x.y.z (IP of A)
allow=all (or alaw, whatever)
qualify=yes
context=sip
to send a call from A to B:
in extensions.conf on A
exten => 1X.,1,Dial(SIP/serverB/${EXTEN})
…
then deal with the inconming call on B. and Vice Versa
Hello,
I have the same scenario, but it does not work yet. It’s my configuration:
In ServerA:
sip.conf
[userA]
type=friend
username=userA
host=dynamic
context=test
[serverB]
type=friend
host=@B
context=sip
extensions.conf
[test]
include => sip
exten => 1234,1,Dial(SIP/userA)
[sip]
include => test
exten => 4321,1,Dial(SIP/serverB/${EXTEN})
In serverB:
sip.conf
[userB]
type=friend
username=userB
host=dynamic
context=test
[serverA]
type=friend
host=@A
context=sip
extensions.conf
[test]
include => sip
exten => 4321,1,Dial(SIP/userB)
[sip]
include => test
exten => 1234,1,Dial(SIP/serverA/${EXTEN})
When I use userA to dial 4321, userB receives the message INVITE and rings, but when userB answers the phone, both of userA and B hung up. I verified with wireshark, there were 2 INVITEs coming from 2 directions, I don’t understand why there was an INVITE coming from serverB to serverA.
Do you have any ideas?
Thanks,