Please take a look at this phone example:
https://wcs5-eu.flashphoner.com/demo2/phone
When you connect using this phone, WCS creates a server-side softphone which listens a SIP port.
Example:
Code:
sip:12345@192.168.1.5:30000
Here 192.168.1.5 is WCS IP.
Here listening port is 30000
Second will be 30001, etc.
So if you know the port you can call from your bare SIP client to WCS user, using this sip URI: sip:12345@192.168.1.5:30000
To share this port, WCS sends REGISTER message to port 5060
Example:
WCS sends REGISTER request to port 5060
Code:
REGISTER sip:sip.com;lr SIP/2.0
Call-ID: 0eed3dcc17570ac80ab48fc7bf3080f8@46.101.108.90
CSeq: 1 REGISTER
From: <sip:005@sip.com>;tag=a6c6dbc5
To: <sip:005@sip.com>
Via: SIP/2.0/UDP 46.101.108.90:30000;branch=z9hG4bK2992e5e77ad50147056dc29f323b1a0b
Max-Forwards: 70
User-Agent: WebCallServer
Allow: MESSAGE,REFER,NOTIFY,CANCEL,ACK,UPDATE,INVITE,OPTIONS,INFO,BYE
Contact: <sip:005@46.101.108.90:30000>;expires=3600
Expires: 3600
Authorization: Digest username="005",realm="sip.com",uri="sip:sip.com",nonce="",response=""
Content-Length: 0
Here you can see that WCS says its port in the Contact header
Code:
Contact: <sip:005@46.101.108.90:30000>;expires=3600
Then WCS receives SIP response 200 OK from port 5060:
Code:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 46.101.108.90:30000;branch=z9hG4bK2af45b834ae8d8f2ac322ce39d32c150
From: <sip:005@sip.com>;tag=a6c6dbc5
To: <sip:005@sip.com>;tag=B72D8A02
Call-ID: 0eed3dcc17570ac80ab48fc7bf3080f8@46.101.108.90
CSeq: 2 REGISTER
Expires: 3598
Contact: <sip:005@46.101.108.90:30000>;expires=3600
Event: registration
Date: Thu, 19 Jan 2017 13:52:32 GMT
Allow: PUBLISH,SUBSCRIBE
Supported: path,gruu
Allow-Events: presence,message-summary,reg,dialog,line-seize,keep-alive,refer
Server: CommuniGatePro/6.1.15f
Content-Length: 0
Thus server says that it got the contact.
Therefore you have to either: handle the REGISTER request manually on port 5060 to get the contact.
Or you can install a SIP registrar like OpenSIPs which will do that for you.
Finally, if you know the contact, you can call from your bare SIP to WCS. But you should know the contact and port.