Re: [OpenSIPS-Users] Problem: Registration Proxy with WebRTC

2017-07-05 Thread 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 :

> Hello,
>
> I try to setup Registration proxy (opensips 2.3) like this article:
> https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/
>
> 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: SIP/2.0
> Via: SIP/2.0/WSS 192.0.2.148;branch=z9hG4bK8881457
> Max-Forwards: 70
> To: "Tester" 
> From: "Tester" ;tag=u6aro6a8mj
> Call-ID: k5uhq12e1bb93rg9igvpvv
> CSeq: 83 REGISTER
> Contact: ;reg-id=1;+sip.
> instance="";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=;branch=
> z9hG4bK8881457
> From: "Tester" ;tag=u6aro6a8mj
> To: "Tester" 
> Call-ID: k5uhq12e1bb93rg9igvpvv
> CSeq: 83 REGISTER
> Contact: ;reg-id=1;
> +sip.instance="";expires=60
> WWW-Authenticate: Digest realm="sbc.com", nonce="ee228f001f145910800
> c2916c...@sbc.com"
> 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
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Problem: Registration Proxy with WebRTC

2017-07-05 Thread Bogdan-Andrei Iancu

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:
https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/

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: SIP/2.0
Via: SIP/2.0/WSS 192.0.2.148;branch=z9hG4bK8881457
Max-Forwards: 70
To: "Tester" 
From: "Tester" ;tag=u6aro6a8mj
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: ;transport=wss>;reg-id=1;+sip.instance="";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=;branch=z9hG4bK8881457

From: "Tester" ;tag=u6aro6a8mj
To: "Tester" 
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: 
;reg-id=1;+sip.instance="";expires=60
WWW-Authenticate: Digest realm="sbc.com ", 
nonce="ee228f001f145910800c2916c...@sbc.com 
"

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
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Problem: Registration Proxy with WebRTC

2017-07-02 Thread Dragomir Haralambiev
Hello,

I try to setup Registration proxy (opensips 2.3) like this article:
https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/

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: SIP/2.0
Via: SIP/2.0/WSS 192.0.2.148;branch=z9hG4bK8881457
Max-Forwards: 70
To: "Tester" 
From: "Tester" ;tag=u6aro6a8mj
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: ;reg-id=1;+sip.instance="";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=;branch=z9hG4bK8881457
From: "Tester" ;tag=u6aro6a8mj
To: "Tester" 
Call-ID: k5uhq12e1bb93rg9igvpvv
CSeq: 83 REGISTER
Contact: ;reg-id=1;+sip.instance="";expires=60
WWW-Authenticate: Digest realm="sbc.com", nonce="
ee228f001f145910800c2916c...@sbc.com"
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
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users