ERROR when receive INVITE

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

ERROR when receive INVITE

Dragomir Haralambiev
 Hello,

   I make test with WebRtc.

SIP.js ---send call to ---> (Opensips A) -----send call to ---> (Opensips B)
 
 ---------
On Opensips A is working rtpengine. This is rtpengine_offer command:
rtpengine_offer("RTP/AVP replace-session-connection replace-origin ICE=remove");

(Opensips A) send INVITE to (Opensips B)    
---------    
    INVITE sip:9999@IP(OpensipsB):5060 SIP/2.0
    Record-Route: <sip:IP(OpensipsA);r2=on;lr;ftag=nm6cghjgba;did=d68.742226a1>
    Record-Route: <sip:IP(OpensipsA):10062;transport=wss;r2=on;lr;ftag=nm6cghjgba;did=d68.742226a1>
    Via: SIP/2.0/UDP IP(OpensipsA):5060;branch=z9hG4bKe0f3.6f1642c.0;i=5
    Via: SIP/2.0/WSS 192.0.2.92;rport=60174;received=2.2.2.2;branch=z9hG4bK5728855
    Max-Forwards: 69
    To: <sip:9999@IP(OpensipsA)>
    From: "Tester" <sip:1001001@IP(OpensipsA)>;tag=nm6cghjgba
    Call-ID: 97gk9m8m3cee4ee8tuk5
    CSeq: 8401 INVITE
    Contact: <sip:jt69dt7u@2.2.2.2:60174;transport=ws;ob;nat=yes>
    Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
    Supported: outbound
    User-Agent: SIP.js/0.7.7
    Content-Type: application/sdp
    Content-Length: 942
    
    v=0
    o=- 8477435134193294206 2 IN IP4 IP(OpensipsA)
    s=-
    t=0 0
    a=msid-semantic: WMS ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD
    m=audio 52428 RTP/AVP 111 103 104 9 0 8 106 105 13 110 112 113 126
    c=IN IP4 IP(OpensipsA)
    a=rtpmap:111 opus/48000/2
    a=rtcp-fb:111 transport-cc
    a=fmtp:111 minptime=10;useinbandfec=1
    a=rtpmap:103 ISAC/16000
    a=rtpmap:104 ISAC/32000
    a=rtpmap:9 G722/8000
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:106 CN/32000
    a=rtpmap:105 CN/16000
    a=rtpmap:13 CN/8000
    a=rtpmap:110 telephone-event/48000
    a=rtpmap:112 telephone-event/32000
    a=rtpmap:113 telephone-event/16000
    a=rtpmap:126 telephone-event/8000
    a=ssrc:2918965089 cname:O5nwX3GD8YZjD0SG
    a=ssrc:2918965089 msid:ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD b6e9f7a5-930a-4578-b68b-1f3ff098db5f
    a=ssrc:2918965089 mslabel:ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD
    a=ssrc:2918965089 label:b6e9f7a5-930a-4578-b68b-1f3ff098db5f
    a=sendrecv
    a=rtcp:52429
    a=rtcp-mux

---------
Opensisp B workin without rtpengine. When receive INVITE make follow ERRORS:
---------
Apr 20 22:58:31 /usr/local/sbin/opensips[2144]: ERROR:core:parse_via: parsed so far:<SIP/2.0/>
Apr 20 22:58:31 /usr/local/sbin/opensips[2144]: ERROR:core:get_hdr_field: bad via
Apr 20 22:58:31 /usr/local/sbin/opensips[2144]: INFO:core:parse_headers: bad header field
Apr 20 22:58:31 /usr/local/sbin/opensips[2144]: ERROR:core:parse_via: bad char <W> on state 122

What I do to resolve this problem?

Best regards,
Dragomir

_______________________________________________
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: ERROR when receive INVITE

Razvan Crainea-3
Hi, Dragomir!

Most likely OpenSIPS B is too old and cannot parse WSS transport.
You could sort this out by doing topology hiding on OpenSIPS A.

Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 04/20/2017 11:52 PM, Dragomir Haralambiev wrote:
 Hello,

   I make test with WebRtc.

SIP.js ---send call to ---> (Opensips A) -----send call to ---> (Opensips B)
 
 ---------
On Opensips A is working rtpengine. This is rtpengine_offer command:
rtpengine_offer("RTP/AVP replace-session-connection replace-origin ICE=remove");

(Opensips A) send INVITE to (Opensips B)    
---------    
    INVITE sip:9999@IP(OpensipsB):5060 SIP/2.0
    Record-Route: <sip:IP(OpensipsA);r2=on;lr;ftag=nm6cghjgba;did=d68.742226a1>
    Record-Route: <sip:IP(OpensipsA):10062;transport=wss;r2=on;lr;ftag=nm6cghjgba;did=d68.742226a1>
    Via: SIP/2.0/UDP IP(OpensipsA):5060;branch=z9hG4bKe0f3.6f1642c.0;i=5
    Via: SIP/2.0/WSS 192.0.2.92;rport=60174;received=2.2.2.2;branch=z9hG4bK5728855
    Max-Forwards: 69
    To: <sip:9999@IP(OpensipsA)>
    From: "Tester" <sip:1001001@IP(OpensipsA)>;tag=nm6cghjgba
    Call-ID: 97gk9m8m3cee4ee8tuk5
    CSeq: 8401 INVITE
    Contact: [hidden email]
    Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
    Supported: outbound
    User-Agent: SIP.js/0.7.7
    Content-Type: application/sdp
    Content-Length: 942
    
    v=0
    o=- 8477435134193294206 2 IN IP4 IP(OpensipsA)
    s=-
    t=0 0
    a=msid-semantic: WMS ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD
    m=audio 52428 RTP/AVP 111 103 104 9 0 8 106 105 13 110 112 113 126
    c=IN IP4 IP(OpensipsA)
    a=rtpmap:111 opus/48000/2
    a=rtcp-fb:111 transport-cc
    a=fmtp:111 minptime=10;useinbandfec=1
    a=rtpmap:103 ISAC/16000
    a=rtpmap:104 ISAC/32000
    a=rtpmap:9 G722/8000
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:106 CN/32000
    a=rtpmap:105 CN/16000
    a=rtpmap:13 CN/8000
    a=rtpmap:110 telephone-event/48000
    a=rtpmap:112 telephone-event/32000
    a=rtpmap:113 telephone-event/16000
    a=rtpmap:126 telephone-event/8000
    a=ssrc:2918965089 cname:O5nwX3GD8YZjD0SG
    a=ssrc:2918965089 msid:ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD b6e9f7a5-930a-4578-b68b-1f3ff098db5f
    a=ssrc:2918965089 mslabel:ZSkkVOStPTOWwji5V63e72mnBS6EI5kyg2bD
    a=ssrc:2918965089 label:b6e9f7a5-930a-4578-b68b-1f3ff098db5f
    a=sendrecv
    a=rtcp:52429
    a=rtcp-mux

---------
Opensisp B workin without rtpengine. When receive INVITE make follow ERRORS:
---------
Apr 20 22:58:31 /usr/local/sbin/opensips[2144]: ERROR:core:parse_via: parsed so far:<SIP/2.0/>
Apr 20 22:58:31 /usr/local/sbin/opensips[2144]: ERROR:core:get_hdr_field: bad via
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: bad header field
Apr 20 22:58:31 /usr/local/sbin/opensips[2144]: ERROR:core:parse_via: bad char <W> on state 122

What I do to resolve this problem?

Best regards,
Dragomir


_______________________________________________
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
Loading...