How to make calls to WCS 5 from external SIP user agent

Shaun

New Member
Hi, I am trying to setup a call between a software SIP user agent we current own to WCS 5 server. How do I do the following:

1) Configure the WCS 5 server (if needed) to state an IP address similar to the following "sip: DNS: port_number" which I can make calls to using my software SIP user agent

2) Issue unique SIP addresses for the software SIP user agent to dial in

3) Setting up of a WebRTC stream with WCS 5 and our software SIP user agent
 

Max

Administrator
Staff member
Hello
You need an intermediate SIP server which works as SIP registrar server.
WCS itself does not contain registrar server.
Once you have such server, for example OpenSIPs, Asterisk, etc, you will able to register two clients on your registrar server: 1) Web client from WCS end 2) Softphone from SIP end.
Example
1. Web phone registers on the intermediary PBX and gets sip uri
2. Softphone registers on the PBX and gets sip uri
3. You make a call from your softphone to WCS web client.
Example
WCS is 192.168.1.2
PBX is is 192.168.1.3
Softphone is 192.168.1.4
When web client is registered on the pbx, it has uri: sip:user1@192.168.1.3 and this address can be used as a callee number.
We use OpenSIPs for testing.
 

Shaun

New Member
Hello
You need an intermediate SIP server which works as SIP registrar server.
WCS itself does not contain registrar server.
Once you have such server, for example OpenSIPs, Asterisk, etc, you will able to register two clients on your registrar server: 1) Web client from WCS end 2) Softphone from SIP end.
Example
1. Web phone registers on the intermediary PBX and gets sip uri
2. Softphone registers on the PBX and gets sip uri
3. You make a call from your softphone to WCS web client.
Example
WCS is 192.168.1.2
PBX is is 192.168.1.3
Softphone is 192.168.1.4
When web client is registered on the pbx, it has uri: sip:user1@192.168.1.3 and this address can be used as a callee number.
We use OpenSIPs for testing.
Hi Max, thanks for your response. Would you consider bareSIP to be a PBX? basically bareSIP is the following:http://creytiv.com/baresip.html
Baresip is a portable and modular SIP User-Agent with audio and video support.

I basically can make calls from bareSIP through the terminal by dialing a specific uri: sip:user@IP_ADDRESS. So I would need to setup something like OpenSIP and have bareSIP dial OpenSIP and have OpenSIP communicate with WCS?
 

Max

Administrator
Staff member
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.
 
Top