<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi, Dragomir!<br>
<br>
Most likely OpenSIPS B is too old and cannot parse WSS transport.<br>
You could sort this out by doing topology hiding on OpenSIPS A.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 04/20/2017 11:52 PM, Dragomir
Haralambiev wrote:<br>
</div>
<blockquote
cite="mid:CADzurOKAAj1HncoqhmHH_4O2Uoz=z3ByJS9+OFQOPn8VzK1btg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div> Hello,</div>
<div><br>
</div>
<div> I make test with WebRtc.</div>
<div><br>
</div>
<div>SIP.js ---send call to ---> (Opensips A) -----send call
to ---> (Opensips B)</div>
<div> </div>
<div> ---------</div>
<div>On Opensips A is working rtpengine. This is rtpengine_offer
command:</div>
<div>rtpengine_offer("RTP/AVP replace-session-connection
replace-origin ICE=remove");</div>
<div><br>
</div>
<div>(Opensips A) send INVITE to (Opensips B) </div>
<div>--------- </div>
<div> INVITE sip:9999@IP(OpensipsB):5060 SIP/2.0</div>
<div> Record-Route:
<sip:IP(OpensipsA);r2=on;lr;ftag=nm6cghjgba;did=d68.742226a1></div>
<div> Record-Route:
<sip:IP(OpensipsA):10062;transport=wss;r2=on;lr;ftag=nm6cghjgba;did=d68.742226a1></div>
<div> Via: SIP/2.0/UDP
IP(OpensipsA):5060;branch=z9hG4bKe0f3.6f1642c.0;i=5</div>
<div> Via: SIP/2.0/WSS
192.0.2.92;rport=60174;received=2.2.2.2;branch=z9hG4bK5728855</div>
<div> Max-Forwards: 69</div>
<div> To: <sip:9999@IP(OpensipsA)></div>
<div> From: "Tester"
<sip:1001001@IP(OpensipsA)>;tag=nm6cghjgba</div>
<div> Call-ID: 97gk9m8m3cee4ee8tuk5</div>
<div> CSeq: 8401 INVITE</div>
<div> Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:jt69dt7u@2.2.2.2:60174;transport=ws;ob;nat=yes"><sip:jt69dt7u@2.2.2.2:60174;transport=ws;ob;nat=yes></a></div>
<div> Allow:
ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER</div>
<div> Supported: outbound</div>
<div> User-Agent: SIP.js/0.7.7</div>
<div> Content-Type: application/sdp</div>
<div> Content-Length: 942</div>
<div> </div>
<div> v=0</div>
<div> o=- 8477435134193294206 2 IN IP4 IP(OpensipsA)</div>
<div> s=-</div>
<div> t=0 0</div>
<div> a=msid-semantic: WMS
ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD</div>
<div> m=audio 52428 RTP/AVP 111 103 104 9 0 8 106 105 13 110
112 113 126</div>
<div> c=IN IP4 IP(OpensipsA)</div>
<div> a=rtpmap:111 opus/48000/2</div>
<div> a=rtcp-fb:111 transport-cc</div>
<div> a=fmtp:111 minptime=10;useinbandfec=1</div>
<div> a=rtpmap:103 ISAC/16000</div>
<div> a=rtpmap:104 ISAC/32000</div>
<div> a=rtpmap:9 G722/8000</div>
<div> a=rtpmap:0 PCMU/8000</div>
<div> a=rtpmap:8 PCMA/8000</div>
<div> a=rtpmap:106 CN/32000</div>
<div> a=rtpmap:105 CN/16000</div>
<div> a=rtpmap:13 CN/8000</div>
<div> a=rtpmap:110 telephone-event/48000</div>
<div> a=rtpmap:112 telephone-event/32000</div>
<div> a=rtpmap:113 telephone-event/16000</div>
<div> a=rtpmap:126 telephone-event/8000</div>
<div> a=ssrc:2918965089 cname:O5nwX3GD8YZjD0SG</div>
<div> a=ssrc:2918965089
msid:ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD
b6e9f7a5-930a-4578-b68b-1f3ff098db5f</div>
<div> a=ssrc:2918965089
mslabel:ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD</div>
<div> a=ssrc:2918965089
label:b6e9f7a5-930a-4578-b68b-1f3ff098db5f</div>
<div> a=sendrecv</div>
<div> a=rtcp:52429</div>
<div> a=rtcp-mux</div>
<div><br>
</div>
<div>---------</div>
<div>Opensisp B workin without rtpengine. When receive INVITE
make follow ERRORS:</div>
<div>---------</div>
<div>Apr 20 22:58:31 /usr/local/sbin/opensips[2144]:
ERROR:core:parse_via: parsed so far:<SIP/2.0/></div>
<div>Apr 20 22:58:31 /usr/local/sbin/opensips[2144]:
ERROR:core:get_hdr_field: bad via</div>
<div>Apr 20 22:58:31 /usr/local/sbin/opensips[2144]:
<a class="moz-txt-link-freetext" href="INFO:core:parse_headers">INFO:core:parse_headers</a>: bad header field</div>
<div>Apr 20 22:58:31 /usr/local/sbin/opensips[2144]:
ERROR:core:parse_via: bad char <W> on state 122</div>
<div><br>
</div>
<div>What I do to resolve this problem?</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Dragomir</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>