Problem: Registration Proxy with WebRTC

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem: Registration Proxy with WebRTC

Dragomir Haralambiev
Hello,

I try to setup Registration proxy (opensips 2.3) like this article:

1. When use Zoiper all is OK
Zoiper <----> Opensips REGISTRATION Proxy <-----> SBC

2. I have problem when use WebRTC.
(Via sent-by in the response does not match UA Via host value. Dropping the response):

SIP.JS <----->Opensips REGISTRATION Proxy <-----> SBC

Here is WebSocket text messages:

REGISTER sip:<IP:Opensips> SIP/2.0
Via: SIP/2.0/WSS 192.0.2.148;branch=z9hG4bK8881457
Max-Forwards: 70
To: "Tester" <sip:555999@<IP:Opensips>>
From: "Tester" <sip:555999@<IP:Opensips>>;tag=u6aro6a8mj
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: <[hidden email];transport=wss>;reg-id=1;+sip.instance="<urn:uuid:ed6914c3-65ee-4e9a-b6e8-3fcd74cb66ac>";expires=60
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: path, gruu, outbound
User-Agent: SIP.js/0.7.8
Content-Length: 0



sip-0.7.8.js:2900 Sun Jul 02 2017 18:41:19 GMT+0300 (FLE Daylight Time) | sip.transport | received WebSocket text message:

SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS 192.0.2.148:5060;rport=53162;received=<Sip.js_IP>;branch=z9hG4bK8881457
From: "Tester" <sip:555999@<IP:Opensips>>;tag=u6aro6a8mj
To: "Tester" <sip:555999@<IP:Opensips>>
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: <sip:r0f6p7so@<Sip.js_IP>:53162;transport=wss>;reg-id=1;+sip.instance="<urn:uuid:ed6914c3-65ee-4e9a-b6e8-3fcd74cb66ac>";expires=60
WWW-Authenticate: Digest realm="sbc.com", nonce="[hidden email]"
Content-Length: 0



sip-0.7.8.js:2900 Sun Jul 02 2017 18:41:19 GMT+0300 (FLE Daylight Time) | sip.sanitycheck | Via sent-by in the response does not match UA Via host value. Dropping the response


Best regards,
Drgagomir

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem: Registration Proxy with WebRTC

Bogdan-Andrei Iancu-2
Hi Dragomir,

Do you have any idea if the "Via sent-by" reported by SIP.JS is actually about the "received" parameter returned in VIA by OpenSIPS ?

Best regards,
Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
On 07/02/2017 10:20 PM, Dragomir Haralambiev wrote:
Hello,

I try to setup Registration proxy (opensips 2.3) like this article:

1. When use Zoiper all is OK
Zoiper <----> Opensips REGISTRATION Proxy <-----> SBC

2. I have problem when use WebRTC.
(Via sent-by in the response does not match UA Via host value. Dropping the response):

SIP.JS <----->Opensips REGISTRATION Proxy <-----> SBC

Here is WebSocket text messages:

REGISTER sip:<IP:Opensips> SIP/2.0
Via: SIP/2.0/WSS 192.0.2.148;branch=z9hG4bK8881457
Max-Forwards: 70
To: "Tester" <<a class="moz-txt-link-freetext" href="sip:555999@">sip:555999@<IP:Opensips>>
From: "Tester" <<a class="moz-txt-link-freetext" href="sip:555999@">sip:555999@<IP:Opensips>>;tag=u6aro6a8mj
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: <[hidden email];transport=wss>;reg-id=1;+sip.instance="<urn:uuid:ed6914c3-65ee-4e9a-b6e8-3fcd74cb66ac>";expires=60
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: path, gruu, outbound
User-Agent: SIP.js/0.7.8
Content-Length: 0



sip-0.7.8.js:2900 Sun Jul 02 2017 18:41:19 GMT+0300 (FLE Daylight Time) | sip.transport | received WebSocket text message:

SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS 192.0.2.148:5060;rport=53162;received=<Sip.js_IP>;branch=z9hG4bK8881457
From: "Tester" <<a class="moz-txt-link-freetext" href="sip:555999@">sip:555999@<IP:Opensips>>;tag=u6aro6a8mj
To: "Tester" <<a class="moz-txt-link-freetext" href="sip:555999@">sip:555999@<IP:Opensips>>
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: <<a class="moz-txt-link-freetext" href="sip:r0f6p7so@">sip:r0f6p7so@<Sip.js_IP>:53162;transport=wss>;reg-id=1;+sip.instance="<urn:uuid:ed6914c3-65ee-4e9a-b6e8-3fcd74cb66ac>";expires=60
WWW-Authenticate: Digest realm="sbc.com", nonce="[hidden email]"
Content-Length: 0



sip-0.7.8.js:2900 Sun Jul 02 2017 18:41:19 GMT+0300 (FLE Daylight Time) | sip.sanitycheck | Via sent-by in the response does not match UA Via host value. Dropping the response


Best regards,
Drgagomir


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem: Registration Proxy with WebRTC

Dragomir Haralambiev
In reply to this post by Dragomir Haralambiev
Here is answer from JsSIP but I do not know how to setup Opensips:


=================== answer ===============
The error log does tell you what is happening:

```
JsSIP | SANITY CHECK | Via host in the response does not match UA Via host value. Dropping the respons
```

Have a look at the chapter 18.1.2 from RFC 3261:

```
18.1.2 Receiving Responses

   When a response is received, the client transport examines the top
   Via header field value.  If the value of the "sent-by" parameter in
   that header field value does not correspond to a value that the
   client transport is configured to insert into requests, the response
   MUST be silently discarded.
```

The "sent-by" parameter in the response has been altered from the one sent out from JsSIP. Your server is manipulating such a value and that makes the response to be discardes as per RFC 3261.

2017-07-02 22:20 GMT+03:00 Dragomir Haralambiev <[hidden email]>:
Hello,

I try to setup Registration proxy (opensips 2.3) like this article:

1. When use Zoiper all is OK
Zoiper <----> Opensips REGISTRATION Proxy <-----> SBC

2. I have problem when use WebRTC.
(Via sent-by in the response does not match UA Via host value. Dropping the response):

SIP.JS <----->Opensips REGISTRATION Proxy <-----> SBC

Here is WebSocket text messages:

REGISTER sip:<IP:Opensips> SIP/2.0
Via: SIP/2.0/WSS 192.0.2.148;branch=z9hG4bK8881457
Max-Forwards: 70
To: "Tester" <sip:555999@<IP:Opensips>>
From: "Tester" <sip:555999@<IP:Opensips>>;tag=u6aro6a8mj
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: <[hidden email];transport=wss>;reg-id=1;+sip.instance="<urn:uuid:ed6914c3-65ee-4e9a-b6e8-3fcd74cb66ac>";expires=60
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: path, gruu, outbound
User-Agent: SIP.js/0.7.8
Content-Length: 0



sip-0.7.8.js:2900 Sun Jul 02 2017 18:41:19 GMT+0300 (FLE Daylight Time) | sip.transport | received WebSocket text message:

SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS 192.0.2.148:5060;rport=53162;received=<Sip.js_IP>;branch=z9hG4bK8881457
From: "Tester" <sip:555999@<IP:Opensips>>;tag=u6aro6a8mj
To: "Tester" <sip:555999@<IP:Opensips>>
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: <sip:r0f6p7so@<Sip.js_IP>:53162;transport=wss>;reg-id=1;+sip.instance="<urn:uuid:ed6914c3-65ee-4e9a-b6e8-3fcd74cb66ac>";expires=60
WWW-Authenticate: Digest realm="sbc.com", nonce="[hidden email]"
Content-Length: 0



sip-0.7.8.js:2900 Sun Jul 02 2017 18:41:19 GMT+0300 (FLE Daylight Time) | sip.sanitycheck | Via sent-by in the response does not match UA Via host value. Dropping the response


Best regards,
Drgagomir


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Loading...