Skip to content

No audio when overwriting "peerConnectionOptions" in "sessionDescriptionHandlerOptions" #484

Closed

Description

@VadimDez

I'm using version 0.8.4 and I found that if I try to overwrite peerConnectionOptions - I get no audio on both caller and callee. But once I remove peerConnectionOptions from sessionDescriptionHandlerOptions seems to be working.

My sessionDescriptionHandlerOptions:

{
  constraints: {
    audio: true,
    video: false
  },
  peerConnectionOptions: {
    iceCheckingTimeout: 501
  }
}

Working sessionDescriptionHandlerOptions:

{
  constraints: {
    audio: true,
    video: false
  }
}

Maybe the same problem as #480
Am I missing something?
Let me know if you need more info.

Activity

  1. egreenmachine commented on Nov 21, 2017

    @egreenmachine
    Collaborator

    Can you include logs? The iceCheckingTimeout may be too low and you are not getting any usable candidates.

  2. VadimDez commented on Nov 22, 2017

    @VadimDez
    ContributorAuthor

    I've done identical calls with two different configs :

    {
      constraints: {
        audio: true,
        video: false
      }
    }
    

    and

    {
      constraints: {
        audio: true,
        video: false
      },
      peerConnectionOptions: {
        iceCheckingTimeout: 5000
      }
    }
    

    Both logs look the same like this with difference that the second has no audio in both directions

    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | configuration parameters after validation:
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · viaHost: "xxx.yyy.zzz.2"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · uri: sip:[email protected]
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · wsServers: [{"ws_uri":"wss://wshost.example.com/sip","sip_uri":"<sip:wshost.example.com;transport=ws;lr>","weight":0,"status":0,"scheme":"WSS"}]
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · custom: {}
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · displayName: ""
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · password: NOT SHOWN
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · registerExpires: 115
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · register: true
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · registrarServer: sip:xxx.yyy.zzz.1
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · wsServerMaxReconnection: 3
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · wsServerReconnectionTimeout: 4
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · connectionRecoveryMinInterval: 2
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · connectionRecoveryMaxInterval: 30
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · keepAliveInterval: 0
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · extraSupported: []
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · usePreloadedRoute: false
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · userAgentString: "SIP.js/0.8.4"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · noAnswerTimeout: 60000
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · traceSip: true
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · hackViaTcp: false
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · hackIpInContact: "xxx.yyy.zzz.2"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · hackWssInTransport: false
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · hackAllowUnregisteredOptionTags: false
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · sessionDescriptionHandlerFactoryOptions: {"constraints":{"audio":true,"video":false},"peerConnectionOptions":{"iceCheckingTimeout":5000}}
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · contactName: "USER"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · contactTransport: "wss"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · forceRport: false
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · autostart: true
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · autostop: true
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · rel100: "none"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · replaces: "none"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · sessionDescriptionHandlerFactory: function defaultFactory(session, options) {
                return new SessionDescriptionHandler(session, options);
              }
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · authenticationFactory: undefined
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · allowLegacyNotifications: false
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · authorizationUser: "USER"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · instanceId: "uuid#1"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · sipjsId: "hbeee"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | · hostportParams: "xxx.yyy.zzz.1"
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | user requested startup...
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.transport | connecting to WebSocket wss://wshost.example.com/sip
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.transport | WebSocket wss://wshost.example.com/sip connected
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.ua | connection state set to 0
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    REGISTER sip:xxx.yyy.zzz.1 SIP/2.0
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;branch=z9hG4bK5140165
    Max-Forwards: 70
    To: <sip:[email protected]>
    From: <sip:[email protected]>;tag=5mk8ni9rs2
    Call-ID: 5gb9gi64ltt343bslbnsni
    CSeq: 8815 REGISTER
    Contact: <sip:[email protected];transport=wss>;reg-id=1;+sip.instance="<urn:uuid:uuid#1>";expires=115
    Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
    Supported: path, gruu, outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 401 Unauthorized
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;received=xxx.yyy.zzz.3;branch=z9hG4bK5140165
    To: <sip:[email protected]>;tag=aacbbf593ab7b204894456d70da2402d.a738
    From: <sip:[email protected]>;tag=5mk8ni9rs2
    Call-ID: 5gb9gi64ltt343bslbnsni
    CSeq: 8815 REGISTER
    WWW-Authenticate: Digest realm="example.com", nonce="nonce#1"
    Server: server
    Content-Length: 0
    
    
    
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    REGISTER sip:xxx.yyy.zzz.1 SIP/2.0
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;branch=z9hG4bK1039921
    Max-Forwards: 70
    To: <sip:[email protected]>
    From: <sip:[email protected]>;tag=5mk8ni9rs2
    Call-ID: 5gb9gi64ltt343bslbnsni
    CSeq: 8816 REGISTER
    Authorization: Digest algorithm=MD5, username="USER", realm="example.com", nonce="nonce#1", uri="sip:xxx.yyy.zzz.1", response="6912b8e0b2263a0ceca5673ec17390b8"
    Contact: <sip:[email protected];transport=wss>;reg-id=1;+sip.instance="<urn:uuid:uuid#1>";expires=115
    Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
    Supported: path, gruu, outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Wed Nov 22 2017 08:48:55 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 200 OK
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;received=xxx.yyy.zzz.3;branch=z9hG4bK1039921
    To: <sip:[email protected]>;tag=aacbbf593ab7b204894456d70da2402d.da0e
    From: <sip:[email protected]>;tag=5mk8ni9rs2
    Call-ID: 5gb9gi64ltt343bslbnsni
    CSeq: 8816 REGISTER
    Contact: <sip:[email protected]:9060>;expires=120;received="sip:xxx.yyy.zzz.2:9060"
    Server: server
    Content-Length: 0
    
    
    
    Wed Nov 22 2017 08:49:03 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | acquiring local media
    Wed Nov 22 2017 08:49:03 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | acquired local media streams
    RTCSessionDescription {type: "offer", sdp: "v=0
    ↵o=- 533546081904681560 2 IN IP4 127.0.0.1
    ↵s=…6920 label:label#1
    ↵"}
    Wed Nov 22 2017 08:49:03 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | RTCIceGatheringState changed: gathering
    Wed Nov 22 2017 08:49:03 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:2515367273 1 udp 2122260223 10.4.4.1 60908 typ host generation 0 ufrag Hjt+ network-id 4 network-cost 50
    Wed Nov 22 2017 08:49:03 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:3151682787 1 udp 2122194687 192.168.28.35 58576 typ host generation 0 ufrag Hjt+ network-id 2
    Wed Nov 22 2017 08:49:03 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:3899101272 1 udp 2122129151 169.254.27.100 51213 typ host generation 0 ufrag Hjt+ network-id 3
    Wed Nov 22 2017 08:49:03 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:4195043151 1 udp 2122063615 192.168.85.157 51556 typ host generation 0 ufrag Hjt+ network-id 1 network-cost 10
    Wed Nov 22 2017 08:49:04 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:3681454489 1 tcp 1518280447 10.4.4.1 9 typ host tcptype active generation 0 ufrag Hjt+ network-id 4 network-cost 50
    Wed Nov 22 2017 08:49:04 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:4116258835 1 tcp 1518214911 192.168.28.35 9 typ host tcptype active generation 0 ufrag Hjt+ network-id 2
    Wed Nov 22 2017 08:49:04 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:2799987880 1 tcp 1518149375 169.254.27.100 9 typ host tcptype active generation 0 ufrag Hjt+ network-id 3
    Wed Nov 22 2017 08:49:04 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:3028859839 1 tcp 1518083839 192.168.85.157 9 typ host tcptype active generation 0 ufrag Hjt+ network-id 1 network-cost 10
    Wed Nov 22 2017 08:49:04 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | RTCIceGatheringState changed: complete
    Wed Nov 22 2017 08:49:04 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    INVITE sip:[email protected] SIP/2.0
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;branch=z9hG4bK7811664
    Max-Forwards: 70
    To: <sip:[email protected]>
    From: <sip:[email protected]>;tag=hq889jm0kb
    Call-ID: hbeeedoca2005ute7uro
    CSeq: 3351 INVITE
    Contact: <sip:[email protected];transport=wss;ob>
    Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
    Supported: outbound
    User-Agent: SIP.js/0.8.4
    Content-Type: application/sdp
    Content-Length: 2121
    
    v=0
    o=- 533546081904681560 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE audio
    a=msid-semantic: WMS msid#1
    m=audio 60908 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
    c=IN IP4 10.4.4.1
    a=rtcp:9 IN IP4 0.0.0.0
    a=candidate:2515367273 1 udp 2122260223 10.4.4.1 60908 typ host generation 0 network-id 4 network-cost 50
    a=candidate:3151682787 1 udp 2122194687 192.168.28.35 58576 typ host generation 0 network-id 2
    a=candidate:3899101272 1 udp 2122129151 169.254.27.100 51213 typ host generation 0 network-id 3
    a=candidate:4195043151 1 udp 2122063615 192.168.85.157 51556 typ host generation 0 network-id 1 network-cost 10
    a=candidate:3681454489 1 tcp 1518280447 10.4.4.1 9 typ host tcptype active generation 0 network-id 4 network-cost 50
    a=candidate:4116258835 1 tcp 1518214911 192.168.28.35 9 typ host tcptype active generation 0 network-id 2
    a=candidate:2799987880 1 tcp 1518149375 169.254.27.100 9 typ host tcptype active generation 0 network-id 3
    a=candidate:3028859839 1 tcp 1518083839 192.168.85.157 9 typ host tcptype active generation 0 network-id 1 network-cost 10
    a=ice-ufrag:Hjt+
    a=ice-pwd:icepwd#1
    a=ice-options:trickle
    a=fingerprint:sha-256 sha#2
    a=setup:actpass
    a=mid:audio
    a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
    a=sendrecv
    a=rtcp-mux
    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:764116920 cname:cname#1
    a=ssrc:764116920 msid:msid#1 label#1
    a=ssrc:764116920 mslabel:msid#1
    a=ssrc:764116920 label:label#1
    
    
    Wed Nov 22 2017 08:49:04 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 100 Giving a try
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;received=xxx.yyy.zzz.3;branch=z9hG4bK7811664
    To: <sip:[email protected]>
    From: <sip:[email protected]>;tag=hq889jm0kb
    Call-ID: hbeeedoca2005ute7uro
    CSeq: 3351 INVITE
    Server: OpenSIPS (2.3.2 (x86_64/linux))
    Content-Length: 0
    
    
    
    Wed Nov 22 2017 08:49:05 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 180 Ringing
    Call-ID: hbeeedoca2005ute7uro
    CSeq: 3351 INVITE
    From: <sip:[email protected]>;tag=hq889jm0kb
    To: <sip:[email protected]>;tag=sip+4+41770002+43663f87
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;received=xxx.yyy.zzz.3;branch=z9hG4bK7811664
    Record-Route: <sip:10.111.222.240;r2=on;lr;ftag=hq889jm0kb>
    Record-Route: <sip:xxx.yyy.zzz.1;r2=on;lr;ftag=hq889jm0kb>
    Record-Route: <sip:xxx.yyy.zzz.2:9060;r2=on;lr;did=c51.c56bf553>
    Record-Route: <sip:xxx.yyy.zzz.2:9443;transport=wss;r2=on;lr;did=c51.c56bf553>
    Content-Length: 0
    Supported: replaces
    Contact: <sip:contact#[email protected]:5060;transport=udp>
    Server: server
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
    P-Asserted-Identity: "Kunde" <sip:[email protected]>
    
    
    
    Wed Nov 22 2017 08:49:05 GMT+0100 (CET) | sip.dialog | new UAC dialog created with status EARLY
    Wed Nov 22 2017 08:49:07 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 200 OK
    Call-ID: hbeeedoca2005ute7uro
    CSeq: 3351 INVITE
    From: <sip:[email protected]>;tag=hq889jm0kb
    To: <sip:[email protected]>;tag=sip+4+41770002+43663f87
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;received=xxx.yyy.zzz.3;branch=z9hG4bK7811664
    Record-Route: <sip:10.111.222.240;r2=on;lr;ftag=hq889jm0kb>
    Record-Route: <sip:xxx.yyy.zzz.1;r2=on;lr;ftag=hq889jm0kb>
    Record-Route: <sip:xxx.yyy.zzz.2:9060;r2=on;lr;did=c51.c56bf553>
    Record-Route: <sip:xxx.yyy.zzz.2:9443;transport=wss;r2=on;lr;did=c51.c56bf553>
    Content-Length: 471
    Supported: replaces
    Contact: <sip:contact#[email protected]:5060;transport=udp>
    Content-Type: application/sdp
    Server: server
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
    P-Asserted-Identity: "Kunde" <sip:[email protected]>
    Accept: application/sdp, application/dtmf-relay
    
    v=0
    o=root 104210032081666 104210032081666 IN IP4 xxx.yyy.zzz.2
    s=-
    c=IN IP4 xxx.yyy.zzz.2
    t=0 0
    m=audio 40044 RTP/SAVPF 9 110
    a=rtpmap:9 G722/8000
    a=rtpmap:110 telephone-event/48000
    a=ptime:20
    a=sendrecv
    a=rtcp:40044
    a=rtcp-mux
    a=setup:active
    a=fingerprint:sha-1 qwerty...
    a=ice-ufrag:LTd5uM4Z
    a=ice-pwd:icepwd#
    a=candidate:esOwkRwm9gXuQdMh 1 UDP 2130706431 xxx.yyy.zzz.2 40044 typ host
    
    
    Wed Nov 22 2017 08:49:07 GMT+0100 (CET) | sip.dialog | dialog dialog#1  changed to CONFIRMED state
    Wed Nov 22 2017 08:49:07 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    ACK sip:contact#[email protected]:5060;transport=udp SIP/2.0
    Route: <sip:xxx.yyy.zzz.2:9443;transport=wss;r2=on;lr;did=c51.c56bf553>
    Route: <sip:xxx.yyy.zzz.2:9060;r2=on;lr;did=c51.c56bf553>
    Route: <sip:xxx.yyy.zzz.1;r2=on;lr;ftag=hq889jm0kb>
    Route: <sip:10.111.222.240;r2=on;lr;ftag=hq889jm0kb>
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;branch=z9hG4bK5608141
    Max-Forwards: 70
    To: <sip:[email protected]>;tag=sip+4+41770002+43663f87
    From: <sip:[email protected]>;tag=hq889jm0kb
    Call-ID: hbeeedoca2005ute7uro
    CSeq: 3351 ACK
    Supported: outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Wed Nov 22 2017 08:49:07 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | Using deprecated stream API
    Wed Nov 22 2017 08:49:07 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | stream added
    Wed Nov 22 2017 08:49:07 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | track added
    Wed Nov 22 2017 08:49:12 GMT+0100 (CET) | sip.inviteclientcontext | terminating Session
    Wed Nov 22 2017 08:49:12 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    BYE sip:contact#[email protected]:5060;transport=udp SIP/2.0
    Route: <sip:xxx.yyy.zzz.2:9443;transport=wss;r2=on;lr;did=c51.c56bf553>
    Route: <sip:xxx.yyy.zzz.2:9060;r2=on;lr;did=c51.c56bf553>
    Route: <sip:xxx.yyy.zzz.1;r2=on;lr;ftag=hq889jm0kb>
    Route: <sip:10.111.222.240;r2=on;lr;ftag=hq889jm0kb>
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;branch=z9hG4bK4096383
    Max-Forwards: 70
    To: <sip:[email protected]>;tag=sip+4+41770002+43663f87
    From: <sip:[email protected]>;tag=hq889jm0kb
    Call-ID: hbeeedoca2005ute7uro
    CSeq: 3352 BYE
    Supported: outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Wed Nov 22 2017 08:49:12 GMT+0100 (CET) | sip.inviteclientcontext | closing INVITE session hbeeedoca2005ute7urohq889jm0kb
    Wed Nov 22 2017 08:49:12 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | closing PeerConnection
    Wed Nov 22 2017 08:49:12 GMT+0100 (CET) | sip.dialog | dialog dialog#1 deleted
    Wed Nov 22 2017 08:49:12 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 200 OK
    Call-ID: hbeeedoca2005ute7uro
    CSeq: 3352 BYE
    From: <sip:[email protected]>;tag=hq889jm0kb
    To: <sip:[email protected]>;tag=sip+4+41770002+43663f87
    Via: SIP/2.0/WSS xxx.yyy.zzz.2;received=xxx.yyy.zzz.3;branch=z9hG4bK4096383
    Content-Length: 0
    Supported: replaces
    Contact: <sip:contact#[email protected]:5060;transport=udp>
    Server: server
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
    
  3. egreenmachine commented on Nov 22, 2017

    @egreenmachine
    Collaborator

    I need both sets of logs. Working and not working to track this down.

  4. VadimDez commented on Nov 23, 2017

    @VadimDez
    ContributorAuthor

    working audio and no overwrite

    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | configuration parameters after validation:
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · viaHost: "xxx.yyy.zzz.1"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · uri: sip:[email protected]
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · wsServers: [{"ws_uri":"wss://xxx.yyy.zzz.7/sip","sip_uri":"<sip:xxx.yyy.zzz.7;transport=ws;lr>","weight":0,"status":0,"scheme":"WSS"}]
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · custom: {}
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · displayName: ""
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · password: NOT SHOWN
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · registerExpires: 115
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · register: true
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · registrarServer: sip:xxx.yyy.zzz.2
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · wsServerMaxReconnection: 3
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · wsServerReconnectionTimeout: 4
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · connectionRecoveryMinInterval: 2
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · connectionRecoveryMaxInterval: 30
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · keepAliveInterval: 0
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · extraSupported: []
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · usePreloadedRoute: false
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · userAgentString: "SIP.js/0.8.4"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · noAnswerTimeout: 60000
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · traceSip: true
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · hackViaTcp: false
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · hackIpInContact: "xxx.yyy.zzz.1"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · hackWssInTransport: false
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · hackAllowUnregisteredOptionTags: false
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · sessionDescriptionHandlerFactoryOptions: {"constraints":{"audio":true,"video":false}}
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · contactName: "USER"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · contactTransport: "wss"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · forceRport: false
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · autostart: true
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · autostop: true
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · rel100: "none"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · replaces: "none"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · sessionDescriptionHandlerFactory: function defaultFactory(session, options) {
                return new SessionDescriptionHandler(session, options);
              }
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · authenticationFactory: undefined
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · allowLegacyNotifications: false
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · authorizationUser: "USER"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · instanceId: "16390064-96c6-4be2-be98-915b21254459"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · sipjsId: "9l5o1"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | · hostportParams: "xxx.yyy.zzz.2"
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | user requested startup...
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.transport | connecting to WebSocket wss://xxx.yyy.zzz.7/sip
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.transport | WebSocket wss://xxx.yyy.zzz.7/sip connected
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.ua | connection state set to 0
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    REGISTER sip:xxx.yyy.zzz.2 SIP/2.0
    Via: SIP/2.0/WSS xxx.yyy.zzz.1;branch=z9hG4bK957348
    Max-Forwards: 70
    To: <sip:[email protected]>
    From: <sip:[email protected]>;tag=jrnco5kkds
    Call-ID: callid#1
    CSeq: 737 REGISTER
    Contact: <sip:[email protected];transport=wss>;reg-id=1;+sip.instance="<urn:uuid:16390064-96c6-4be2-be98-915b21254459>";expires=115
    Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
    Supported: path, gruu, outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Thu Nov 23 2017 16:04:39 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 200 OK
    Via: SIP/2.0/WSS xxx.yyy.zzz.1;received=xxx.yyy.zzz.8;branch=z9hG4bK957348
    To: <sip:[email protected]>;tag=eee541634ceba5cf73355586fb6c886e.a8ea
    From: <sip:[email protected]>;tag=jrnco5kkds
    Call-ID: callid#1
    CSeq: 737 REGISTER
    Contact: <sip:[email protected]:9060>;expires=120
    Server: server
    Content-Length: 0
    
    
    
    Thu Nov 23 2017 16:04:46 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    INVITE sip:[email protected];transport=wss SIP/2.0
    Record-Route: <sip:xxx.yyy.zzz.1:9443;transport=wss;r2=on;lr;did=ffe.6aeb2915>
    Record-Route: <sip:xxx.yyy.zzz.1:9060;r2=on;lr;did=ffe.6aeb2915>
    Record-Route: <sip:xxx.yyy.zzz.2;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Record-Route: <sip:xxx.yyy.zzz.6;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Via: SIP/2.0/WSS xxx.yyy.zzz.1:9443;branch=z9hG4bKfcde.39fb4d1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.2:5060;branch=z9hG4bKfcde.762b08a1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.3:5160;rport=5160;received=xxx.yyy.zzz.3;branch=z9hG4bK+b2685b6ddf77804dbb0300166fac0cec1+sip+1+a64dea22
    From: "UserB" <sip:[email protected]>;tag=xxx.yyy.zzz.3+1+f074b91c+ce448afc
    To: <sip:[email protected]>
    CSeq: 102 INVITE
    Expires: 180
    Content-Length: 674
    Supported: replaces
    Contact: <sip:contact#[email protected]:5160;transport=udp>
    Content-Type: application/sdp
    Max-Forwards: 66
    Call-ID: callid#[email protected]
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
    X-Asterisk-RINGTONE: 1
    X-Asterisk-FMC: --102--
    P-Asserted-Identity: "UserB" <sip:[email protected]>
    
    v=0
    o=root 50302671910213 50302671910213 IN IP4 xxx.yyy.zzz.5
    s=-
    c=IN IP4 xxx.yyy.zzz.1
    t=0 0
    m=audio 42374 UDP/TLS/RTP/SAVPF 9 97
    a=rtpmap:9 G722/8000
    a=rtpmap:97 opus/48000/2
    a=fmtp:97 maxplaybackrate=8000;useinbandfec=1
    a=ptime:20
    a=sendrecv
    a=rtcp:42375
    a=rtcp-mux
    a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:C6OTkNE3yXPDcDGGDJFBGa2QZjgGSPqwlZExa7QV
    a=setup:actpass
    a=fingerprint:sha-1 sha1
    a=ice-ufrag:vu0WeiQJ
    a=ice-pwd:pwd#1
    a=candidate:esOwkRwm9gXuQdMh 1 UDP 2130706431 xxx.yyy.zzz.1 42374 typ host
    a=candidate:esOwkRwm9gXuQdMh 2 UDP 2130706430 xxx.yyy.zzz.1 42375 typ host
    
    
    Thu Nov 23 2017 16:04:46 GMT+0100 (CET) | sip.sipmessage | header "Content-Disposition" not present
    Thu Nov 23 2017 16:04:46 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    SIP/2.0 100 Trying
    Via: SIP/2.0/WSS xxx.yyy.zzz.1:9443;branch=z9hG4bKfcde.39fb4d1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.2:5060;branch=z9hG4bKfcde.762b08a1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.3:5160;rport=5160;received=xxx.yyy.zzz.3;branch=z9hG4bK+b2685b6ddf77804dbb0300166fac0cec1+sip+1+a64dea22
    To: <sip:[email protected]>
    From: "UserB" <sip:[email protected]>;tag=xxx.yyy.zzz.3+1+f074b91c+ce448afc
    Call-ID: callid#[email protected]
    CSeq: 102 INVITE
    Supported: outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Thu Nov 23 2017 16:04:46 GMT+0100 (CET) | sip.dialog | callid#[email protected]+1+f074b91c+ce448afc | new UAS dialog created with status EARLY
    Thu Nov 23 2017 16:04:46 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    SIP/2.0 180 Ringing
    Record-Route: <sip:xxx.yyy.zzz.1:9443;transport=wss;r2=on;lr;did=ffe.6aeb2915>
    Record-Route: <sip:xxx.yyy.zzz.1:9060;r2=on;lr;did=ffe.6aeb2915>
    Record-Route: <sip:xxx.yyy.zzz.2;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Record-Route: <sip:xxx.yyy.zzz.6;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Via: SIP/2.0/WSS xxx.yyy.zzz.1:9443;branch=z9hG4bKfcde.39fb4d1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.2:5060;branch=z9hG4bKfcde.762b08a1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.3:5160;rport=5160;received=xxx.yyy.zzz.3;branch=z9hG4bK+b2685b6ddf77804dbb0300166fac0cec1+sip+1+a64dea22
    To: <sip:[email protected]>;tag=a85bcdm8e4
    From: "UserB" <sip:[email protected]>;tag=xxx.yyy.zzz.3+1+f074b91c+ce448afc
    Call-ID: callid#[email protected]
    CSeq: 102 INVITE
    Contact: <sip:[email protected];transport=wss>
    Supported: outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.dialog | callid#[email protected]+1+f074b91c+ce448afc | dialog callid#[email protected]+1+f074b91c+ce448afc  changed to CONFIRMED state
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | acquiring local media
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | Using deprecated stream API
    LoggerFactory.print @ sip.js?24e2:783
    LoggerFactory.(anonymous function) @ sip.js?24e2:800
    Logger.(anonymous function) @ sip.js?24e2:794
    peerConnection.onaddstream @ sip.js?24e2:8835
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | stream added
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | track added
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | acquired local media streams
    RTCSessionDescription {type: "answer", sdp: "v=0
    ↵o=- 846847118891064506 2 IN IP4 127.0.0.1
    ↵s=…6080 label:label#1
    ↵"}
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | RTCIceGatheringState changed: gathering
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | ICE candidate received: candidate:2515367273 1 udp 2122260223 xxx.yyy.zzz.12 58987 typ host generation 0 ufrag I5n7 network-id 4 network-cost 50
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | ICE candidate received: candidate:1559221709 1 udp 2122194687 xxx.yyy.zzz.11 52508 typ host generation 0 ufrag I5n7 network-id 2
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | ICE candidate received: candidate:2079206585 1 udp 2122129151 xxx.yyy.zzz.10 54062 typ host generation 0 ufrag I5n7 network-id 3
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | ICE candidate received: candidate:2160792623 1 udp 2122063615 xxx.yyy.zzz.9 58591 typ host generation 0 ufrag I5n7 network-id 1 network-cost 10
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | RTCIceGatheringState changed: complete
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    SIP/2.0 200 OK
    Record-Route: <sip:xxx.yyy.zzz.1:9443;transport=wss;r2=on;lr;did=ffe.6aeb2915>
    Record-Route: <sip:xxx.yyy.zzz.1:9060;r2=on;lr;did=ffe.6aeb2915>
    Record-Route: <sip:xxx.yyy.zzz.2;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Record-Route: <sip:xxx.yyy.zzz.6;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Via: SIP/2.0/WSS xxx.yyy.zzz.1:9443;branch=z9hG4bKfcde.39fb4d1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.2:5060;branch=z9hG4bKfcde.762b08a1.0
    Via: SIP/2.0/UDP xxx.yyy.zzz.3:5160;rport=5160;received=xxx.yyy.zzz.3;branch=z9hG4bK+b2685b6ddf77804dbb0300166fac0cec1+sip+1+a64dea22
    To: <sip:[email protected]>;tag=a85bcdm8e4
    From: "UserB" <sip:[email protected]>;tag=xxx.yyy.zzz.3+1+f074b91c+ce448afc
    Call-ID: callid#[email protected]
    CSeq: 102 INVITE
    Contact: <sip:[email protected];transport=wss>
    Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
    Supported: outbound
    User-Agent: SIP.js/0.8.4
    Content-Type: application/sdp
    Content-Length: 1237
    
    v=0
    o=- 846847118891064506 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=msid-semantic: WMS mslabel#1
    m=audio 58987 UDP/TLS/RTP/SAVPF 9 97
    c=IN IP4 xxx.yyy.zzz.12
    a=rtcp:9 IN IP4 0.0.0.0
    a=candidate:2515367273 1 udp 2122260223 xxx.yyy.zzz.12 58987 typ host generation 0 network-id 4 network-cost 50
    a=candidate:1559221709 1 udp 2122194687 xxx.yyy.zzz.11 52508 typ host generation 0 network-id 2
    a=candidate:2079206585 1 udp 2122129151 xxx.yyy.zzz.10 54062 typ host generation 0 network-id 3
    a=candidate:2160792623 1 udp 2122063615 xxx.yyy.zzz.9 58591 typ host generation 0 network-id 1 network-cost 10
    a=ice-ufrag:I5n7
    a=ice-pwd:pwd#2
    a=ice-options:trickle
    a=fingerprint:sha-256 sha256
    a=setup:active
    a=mid:audio
    a=sendrecv
    a=rtcp-mux
    a=rtpmap:9 G722/8000
    a=rtpmap:97 opus/48000/2
    a=fmtp:97 maxplaybackrate=8000;useinbandfec=1
    a=ptime:20
    a=ssrc:3867986080 cname:/iGSqqlLrXPnDcNy
    a=ssrc:3867986080 msid:mslabel#1 label#1
    a=ssrc:3867986080 mslabel:mslabel#1
    a=ssrc:3867986080 label:label#1
    
    
    
    Thu Nov 23 2017 16:04:48 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    ACK sip:[email protected];transport=wss SIP/2.0
    Record-Route: <sip:xxx.yyy.zzz.2;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Record-Route: <sip:xxx.yyy.zzz.6;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Via: SIP/2.0/WSS xxx.yyy.zzz.1:9443;branch=z9hG4bKfcde.39fb4d1.2
    Via: SIP/2.0/UDP xxx.yyy.zzz.2:5060;branch=z9hG4bKfcde.762b08a1.2
    Via: SIP/2.0/UDP xxx.yyy.zzz.3:5160;rport=5160;received=xxx.yyy.zzz.3;branch=z9hG4bK+145119f234ad7105da742e7f6de22f1a1+sip+1+a64dea23
    Call-ID: callid#[email protected]
    From: "UserB" <sip:[email protected]>;tag=xxx.yyy.zzz.3+1+f074b91c+ce448afc
    To: <sip:[email protected]>;tag=a85bcdm8e4
    CSeq: 102 ACK
    Contact: <sip:contact#[email protected]:5160;transport=udp>
    Content-Length: 0
    Max-Forwards: 66
    User-Agent: user-agent
    
    
    
    Thu Nov 23 2017 16:04:52 GMT+0100 (CET) | sip.inviteservercontext | callid#[email protected]+1+f074b91c+ce448afc | terminating Session
    Thu Nov 23 2017 16:04:52 GMT+0100 (CET) | sip.transport | sending WebSocket message:
    
    BYE sip:contact#[email protected]:5160;transport=udp SIP/2.0
    Route: <sip:xxx.yyy.zzz.1:9443;transport=wss;r2=on;lr;did=ffe.6aeb2915>
    Route: <sip:xxx.yyy.zzz.1:9060;r2=on;lr;did=ffe.6aeb2915>
    Route: <sip:xxx.yyy.zzz.2;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Route: <sip:xxx.yyy.zzz.6;r2=on;lr;ftag=xxx.yyy.zzz.3+1+f074b91c+ce448afc>
    Via: SIP/2.0/WSS xxx.yyy.zzz.1;branch=z9hG4bK740129
    Max-Forwards: 70
    To: <sip:[email protected]>;tag=xxx.yyy.zzz.3+1+f074b91c+ce448afc
    From: <sip:[email protected]>;tag=a85bcdm8e4
    Call-ID: callid#[email protected]
    CSeq: 103 BYE
    Supported: outbound
    User-Agent: SIP.js/0.8.4
    Content-Length: 0
    
    
    
    Thu Nov 23 2017 16:04:52 GMT+0100 (CET) | sip.inviteservercontext | callid#[email protected]+1+f074b91c+ce448afc | closing INVITE session callid#[email protected]+1+f074b91c+ce448afc
    Thu Nov 23 2017 16:04:52 GMT+0100 (CET) | sip.invitecontext.sessionDescriptionHandler | callid#[email protected]+1+f074b91c+ce448afc | closing PeerConnection
    Thu Nov 23 2017 16:04:52 GMT+0100 (CET) | sip.dialog | callid#[email protected]+1+f074b91c+ce448afc | dialog callid#[email protected]+1+f074b91c+ce448afc deleted
    Thu Nov 23 2017 16:04:52 GMT+0100 (CET) | sip.transport | received WebSocket text message:
    
    SIP/2.0 200 OK
    Call-ID: callid#[email protected]
    CSeq: 103 BYE
    From: <sip:[email protected]>;tag=a85bcdm8e4
    To: <sip:[email protected]>;tag=xxx.yyy.zzz.3+1+f074b91c+ce448afc
    Via: SIP/2.0/WSS xxx.yyy.zzz.1;received=xxx.yyy.zzz.8;branch=z9hG4bK740129
    Content-Length: 0
    Supported: replaces
    Contact: <sip:contact#[email protected]:5160;transport=udp>
    Server: server
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
    
  5. jlaine commented on Nov 24, 2017

    @jlaine
    Contributor

    I am really puzzled by this issue. Do you pass any options when calling accept ()?

  6. jlaine commented on Nov 24, 2017

    @jlaine
    Contributor

    Actually re-reading the issue description I think I have the answer to my question. Correct me if I'm wrong but as far as I can tell you are passing the peerConnectionOptions as part of the call to accept(), not in the sessionDescriptionHandlerFactoryOptions when creating the UA, right?

    If so, this causes the peer connection to be torn down and recreated, which might be why you are experiencing these issues. Could you try passing the peerConnectionOptions you want at the UA construction, inside sessionDescriptionHandlerFactoryOptions and report back whether this changes the behaviour?

    Eric : I'm really not comfortable with these two blocks of code, especially the one in setDescription:

    if (options.peerConnectionOptions) {

    if (options.peerConnectionOptions) {

    I have a feeling that this can result in tearing down the peer connection and setting it up again without notifying the remote party. As a result you may end up with a different view of which peer connection should be used to exchange media.

  7. VadimDez commented on Nov 24, 2017

    @VadimDez
    ContributorAuthor

    I did set sessionDescriptionHandlerOptions in both UA(), in invite() and in accept().
    Issue is fixed if i remove options with sessionDescriptionHandlerOptions from invite() and accept() and keep it only in UA().
    Thanks!

  8. jlaine commented on Nov 24, 2017

    @jlaine
    Contributor

    Ok at the very least we need to update the documentation, but I'm also not convinced that it's a good idea to offer peerConnectionOptions in accept / invite

  9. egreenmachine commented on Nov 24, 2017

    @egreenmachine
    Collaborator

    Agreed. Those options should at a minimum compare to what we already have and then determine if it should tear down the peer connection or not.

    Documentation ticket for myself: https://gitlab.com/onsip/sipjs.com/issues/6

  10. jlaine commented on Nov 27, 2017

    @jlaine
    Contributor

    Eric, before we invest additional resources and complexify the code even more : how confident are we that the usecase which was addressed by allowing the PC to be re-created actually still works? As we've already had two reports of this codepath breaking "normal" usecases, I'd say we need to have a really good justification for retaining this code, and at least one unit test which illustrates/verifies the code works as expected.

  11. VandendriesscheWard commented on Apr 3, 2019

    @VandendriesscheWard

    I did set sessionDescriptionHandlerOptions in both UA(), in invite() and in accept().
    Issue is fixed if i remove options with sessionDescriptionHandlerOptions from invite() and accept() and keep it only in UA().
    Thanks!

    @jlaine How did you do this? In the documentation, I only find the option "sessionDescriptionHandlerFactoryOptions". I can't find the possibility to add the "sessionDescriptionHandlerOptions " in the constructor of the UA. (I get same error, no audio)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions