Last active
August 29, 2018 21:51
-
-
Save bstump/09fabc591a492e6ed69b69adc0bdfb4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create new SIP UA | |
let ua = new SIP.UA({ | |
uri: [FROM_SIP_URI], | |
authorizationUser:[FROM_SIP_USER], | |
password: [FROM_SIP_PASS], | |
register: true | |
}); | |
ua.start(); | |
let session = ua.invite([SIP_URI], { | |
'extraHeaders': [ | |
'X-Location-Lat: XX.XXXXXX', | |
'X-Location-Lng: -XX.XXXXXX' | |
], | |
sessionDescriptionHandlerOptions: { | |
constraints: { | |
audio: true, | |
video: false | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Aug 29 2018 17:50:05 GMT-0400 (Eastern Daylight Time) | sip.transport | received WebSocket text message: | |
INVITE sip:c6ppfpiv@173.21.40.64:65372;transport=ws;nat=yes;aor=bob%40sidebardev.onsip.com SIP/2.0 | |
Record-Route: <sip:199.7.175.183:443;transport=wss;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.183;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.103;lr;ftag=1311466868;did=229.51137ea2;ns=1;pr=3> | |
Record-Route: <sip:199.7.173.100;lr;ftag=1311466868;nc=1;did=229.ac0509a> | |
Call-ID: ee3a781d8afcb93299ee82950627a4be@192.168.86.24 | |
CSeq: 7096 INVITE | |
From: "curtis" <sip:curtis@sidebardev.onsip.com>;tag=1311466868 | |
To: <sip:bob@sidebardev.onsip.com> | |
Via: SIP/2.0/WSS 199.7.175.183:443;branch=z9hG4bK0111.ac2b9de.0 | |
Via: SIP/2.0/UDP 199.7.175.103:5060;rport=5060;received=199.7.175.103;branch=z9hG4bK0111.838bf1a2.0 | |
Via: SIP/2.0/UDP 199.7.173.100:5060;branch=z9hG4bK0111.0a36c6f2.0 | |
Via: SIP/2.0/UDP 192.168.86.24:39265;received=173.21.40.64;branch=z9hG4bK6f97e90868b6b3d71fb748e3a8407949323737;rport=39265 | |
Max-Forwards: 67 | |
Contact: "curtis" <sip:curtis*173.21.40.64!39265_n@199.7.173.100;transport=udp;gr> | |
Content-Type: application/sdp | |
Content-Length: 818 | |
v=0 | |
o=- 1535579403132 1535579403134 IN IP4 192.168.86.24 | |
s=- | |
c=IN IP4 199.7.175.75 | |
t=0 0 | |
m=audio 56084 UDP/TLS/RTP/SAVPF 96 97 3 0 8 127 | |
a=rtpmap:96 GSM-EFR/8000 | |
a=rtpmap:97 AMR/8000 | |
a=rtpmap:3 GSM/8000 | |
a=rtpmap:0 PCMU/8000 | |
a=rtpmap:8 PCMA/8000 | |
a=rtpmap:127 telephone-event/8000 | |
a=fmtp:127 0-15 | |
a=sendrecv | |
a=rtcp:56085 | |
a=rtcp-mux | |
a=setup:actpass | |
a=fingerprint:sha-1 87:45:F9:B9:35:0C:68:BD:B4:DE:87:30:7F:DA:E3:D1:56:DE:00:22 | |
a=ice-ufrag:p3iYk4ux | |
a=ice-pwd:vGZsTpSWsgszXJmwFGdQ8T2Z3M | |
a=candidate:6Om0RUO6UJTEySAK 1 UDP 2130706431 199.7.175.75 56084 typ host | |
a=candidate:oOucptUQ0zwxfUX6 1 UDP 2130706175 2620:104:2032::204b 53892 typ host | |
a=candidate:6Om0RUO6UJTEySAK 2 UDP 2130706430 199.7.175.75 56085 typ host | |
a=candidate:oOucptUQ0zwxfUX6 2 UDP 2130706174 2620:104:2032::204b 53893 typ host | |
sip.min.js:1 Wed Aug 29 2018 17:50:05 GMT-0400 (Eastern Daylight Time) | sip.sipmessage | header "Content-Disposition" not present | |
sip.min.js:1 Wed Aug 29 2018 17:50:05 GMT-0400 (Eastern Daylight Time) | sip.transport | sending WebSocket message: | |
SIP/2.0 100 Trying | |
Via: SIP/2.0/WSS 199.7.175.183:443;branch=z9hG4bK0111.ac2b9de.0 | |
Via: SIP/2.0/UDP 199.7.175.103:5060;rport=5060;received=199.7.175.103;branch=z9hG4bK0111.838bf1a2.0 | |
Via: SIP/2.0/UDP 199.7.173.100:5060;branch=z9hG4bK0111.0a36c6f2.0 | |
Via: SIP/2.0/UDP 192.168.86.24:39265;received=173.21.40.64;branch=z9hG4bK6f97e90868b6b3d71fb748e3a8407949323737;rport=39265 | |
To: <sip:bob@sidebardev.onsip.com> | |
From: "curtis" <sip:curtis@sidebardev.onsip.com>;tag=1311466868 | |
Call-ID: ee3a781d8afcb93299ee82950627a4be@192.168.86.24 | |
CSeq: 7096 INVITE | |
Supported: outbound | |
User-Agent: SIP.js/0.11.3 | |
Content-Length: 0 | |
sip.min.js:1 Wed Aug 29 2018 17:50:05 GMT-0400 (Eastern Daylight Time) | sip.dialog | new UAS dialog created with status EARLY | |
sip.min.js:1 Wed Aug 29 2018 17:50:05 GMT-0400 (Eastern Daylight Time) | sip.transport | sending WebSocket message: | |
SIP/2.0 180 Ringing | |
Record-Route: <sip:199.7.175.183:443;transport=wss;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.183;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.103;lr;ftag=1311466868;did=229.51137ea2;ns=1;pr=3> | |
Record-Route: <sip:199.7.173.100;lr;ftag=1311466868;nc=1;did=229.ac0509a> | |
Via: SIP/2.0/WSS 199.7.175.183:443;branch=z9hG4bK0111.ac2b9de.0 | |
Via: SIP/2.0/UDP 199.7.175.103:5060;rport=5060;received=199.7.175.103;branch=z9hG4bK0111.838bf1a2.0 | |
Via: SIP/2.0/UDP 199.7.173.100:5060;branch=z9hG4bK0111.0a36c6f2.0 | |
Via: SIP/2.0/UDP 192.168.86.24:39265;received=173.21.40.64;branch=z9hG4bK6f97e90868b6b3d71fb748e3a8407949323737;rport=39265 | |
To: <sip:bob@sidebardev.onsip.com>;tag=l22qtmafhm | |
From: "curtis" <sip:curtis@sidebardev.onsip.com>;tag=1311466868 | |
Call-ID: ee3a781d8afcb93299ee82950627a4be@192.168.86.24 | |
CSeq: 7096 INVITE | |
Contact: <sip:c6ppfpiv@n5pk8552pleh.invalid;transport=ws> | |
Supported: outbound | |
User-Agent: SIP.js/0.11.3 | |
Content-Length: 0 | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.dialog | dialog ee3a781d8afcb93299ee82950627a4be@192.168.86.24l22qtmafhm1311466868 changed to CONFIRMED state | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | SessionDescriptionHandlerOptions: {"constraints":{},"peerConnectionOptions":{}} | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | initPeerConnection | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | New peer connection created | |
app.js?id=5b4efa87f323738edaab:6697 ******** ACCEPTED ******** | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | track added | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | acquiring local media | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | acquired local media streams | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | RTCIceGatheringState changed: gathering | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:4115082273 1 udp 2122260223 192.168.86.31 56872 typ host generation 0 ufrag 3/za network-id 1 network-cost 10 | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:1947150997 1 udp 1686052607 173.21.40.64 56872 typ srflx raddr 192.168.86.31 rport 56872 generation 0 ufrag 3/za network-id 1 network-cost 10 | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | RTCIceGatheringState changed: complete | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.transport | sending WebSocket message: | |
SIP/2.0 200 OK | |
Record-Route: <sip:199.7.175.183:443;transport=wss;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.183;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.103;lr;ftag=1311466868;did=229.51137ea2;ns=1;pr=3> | |
Record-Route: <sip:199.7.173.100;lr;ftag=1311466868;nc=1;did=229.ac0509a> | |
Via: SIP/2.0/WSS 199.7.175.183:443;branch=z9hG4bK0111.ac2b9de.0 | |
Via: SIP/2.0/UDP 199.7.175.103:5060;rport=5060;received=199.7.175.103;branch=z9hG4bK0111.838bf1a2.0 | |
Via: SIP/2.0/UDP 199.7.173.100:5060;branch=z9hG4bK0111.0a36c6f2.0 | |
Via: SIP/2.0/UDP 192.168.86.24:39265;received=173.21.40.64;branch=z9hG4bK6f97e90868b6b3d71fb748e3a8407949323737;rport=39265 | |
To: <sip:bob@sidebardev.onsip.com>;tag=l22qtmafhm | |
From: "curtis" <sip:curtis@sidebardev.onsip.com>;tag=1311466868 | |
Call-ID: ee3a781d8afcb93299ee82950627a4be@192.168.86.24 | |
CSeq: 7096 INVITE | |
Contact: <sip:c6ppfpiv@n5pk8552pleh.invalid;transport=ws> | |
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER | |
Supported: outbound | |
User-Agent: SIP.js/0.11.3 | |
Content-Type: application/sdp | |
Content-Length: 1059 | |
v=0 | |
o=- 7298581639945678909 2 IN IP4 127.0.0.1 | |
s=- | |
t=0 0 | |
a=msid-semantic: WMS FjwyfVl5HW4JrsPeypHd0W6IBhHd1t0ULuyK | |
m=audio 56872 UDP/TLS/RTP/SAVPF 0 8 127 | |
c=IN IP4 173.21.40.64 | |
a=rtcp:9 IN IP4 0.0.0.0 | |
a=candidate:4115082273 1 udp 2122260223 192.168.86.31 56872 typ host generation 0 network-id 1 network-cost 10 | |
a=candidate:1947150997 1 udp 1686052607 173.21.40.64 56872 typ srflx raddr 192.168.86.31 rport 56872 generation 0 network-id 1 network-cost 10 | |
a=ice-ufrag:3/za | |
a=ice-pwd:yV0Kh9n1cepVFgwvO/y/9uJS | |
a=ice-options:trickle | |
a=fingerprint:sha-256 EE:4F:94:5C:1A:66:A8:E1:DB:2A:1E:84:F7:4F:6C:2C:79:59:4F:29:BB:1D:FA:32:D9:C5:D0:E7:59:D2:FA:2A | |
a=setup:active | |
a=mid:audio | |
a=sendrecv | |
a=rtcp-mux | |
a=rtpmap:0 PCMU/8000 | |
a=rtpmap:8 PCMA/8000 | |
a=rtpmap:127 telephone-event/8000 | |
a=ssrc:1601485105 cname:JONhp92wRwTeKSOu | |
a=ssrc:1601485105 msid:FjwyfVl5HW4JrsPeypHd0W6IBhHd1t0ULuyK aebf3af7-c8a9-45f3-ae14-fa96f569f01b | |
a=ssrc:1601485105 mslabel:FjwyfVl5HW4JrsPeypHd0W6IBhHd1t0ULuyK | |
a=ssrc:1601485105 label:aebf3af7-c8a9-45f3-ae14-fa96f569f01b | |
sip.min.js:1 Wed Aug 29 2018 17:50:10 GMT-0400 (Eastern Daylight Time) | sip.transport | received WebSocket text message: | |
ACK sip:c6ppfpiv@173.21.40.64:65372;transport=ws SIP/2.0 | |
Record-Route: <sip:199.7.175.183:443;transport=wss;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.183;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.103;lr;ftag=1311466868;did=229.51137ea2;ns=1;pr=3;pr=3> | |
Record-Route: <sip:199.7.173.100;lr;ftag=1311466868;did=229.ac0509a;nc=1> | |
Call-ID: ee3a781d8afcb93299ee82950627a4be@192.168.86.24 | |
CSeq: 7096 ACK | |
Via: SIP/2.0/WSS 199.7.175.183:443;branch=z9hG4bK0111.ac2b9de.2 | |
Via: SIP/2.0/UDP 199.7.175.103:5060;rport=5060;received=199.7.175.103;branch=z9hG4bK0111.838bf1a2.2 | |
Via: SIP/2.0/UDP 199.7.173.100:5060;branch=z9hG4bK0111.0a36c6f2.2 | |
Via: SIP/2.0/UDP 192.168.86.24:39265;rport=39265;received=173.21.40.64;branch=z9hG4bKc904b2e9f8b08a3352c7cb5064736932323737 | |
From: "curtis" <sip:curtis@sidebardev.onsip.com>;tag=1311466868 | |
To: <sip:bob@sidebardev.onsip.com>;tag=l22qtmafhm | |
Max-Forwards: 67 | |
Content-Length: 0 | |
sip.min.js:1 Wed Aug 29 2018 17:50:20 GMT-0400 (Eastern Daylight Time) | sip.transport | received WebSocket text message: | |
BYE sip:c6ppfpiv@173.21.40.64:65372;transport=ws SIP/2.0 | |
Record-Route: <sip:199.7.175.183:443;transport=wss;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.183;r2=on;lr;ftag=1311466868> | |
Record-Route: <sip:199.7.175.103;lr;ftag=1311466868;did=229.51137ea2;ns=1;pr=3;pr=3> | |
Record-Route: <sip:199.7.173.100;lr;ftag=1311466868;did=229.ac0509a;nc=1> | |
Via: SIP/2.0/WSS 199.7.175.183:443;branch=z9hG4bK1111.9e49de31.0 | |
Via: SIP/2.0/UDP 199.7.175.103:5060;rport=5060;received=199.7.175.103;branch=z9hG4bK1111.b7743783.0 | |
Via: SIP/2.0/UDP 199.7.173.100:5060;branch=z9hG4bK1111.45f7a4f4.0 | |
Via: SIP/2.0/UDP 192.168.86.24:39265;rport=39265;received=173.21.40.64;branch=z9hG4bK7d080758b5d07e8070470159ebd735db323737 | |
CSeq: 7097 BYE | |
To: <sip:bob@sidebardev.onsip.com>;tag=l22qtmafhm | |
From: "curtis" <sip:curtis@sidebardev.onsip.com>;tag=1311466868 | |
Call-ID: ee3a781d8afcb93299ee82950627a4be@192.168.86.24 | |
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER | |
Supported: outbound | |
User-Agent: SIP.js/0.11.3 | |
Max-Forwards: 67 | |
Content-Length: 0 | |
sip.min.js:1 Wed Aug 29 2018 17:50:20 GMT-0400 (Eastern Daylight Time) | sip.transport | sending WebSocket message: | |
SIP/2.0 200 OK | |
Via: SIP/2.0/WSS 199.7.175.183:443;branch=z9hG4bK1111.9e49de31.0 | |
Via: SIP/2.0/UDP 199.7.175.103:5060;rport=5060;received=199.7.175.103;branch=z9hG4bK1111.b7743783.0 | |
Via: SIP/2.0/UDP 199.7.173.100:5060;branch=z9hG4bK1111.45f7a4f4.0 | |
Via: SIP/2.0/UDP 192.168.86.24:39265;rport=39265;received=173.21.40.64;branch=z9hG4bK7d080758b5d07e8070470159ebd735db323737 | |
To: <sip:bob@sidebardev.onsip.com>;tag=l22qtmafhm | |
From: "curtis" <sip:curtis@sidebardev.onsip.com>;tag=1311466868 | |
Call-ID: ee3a781d8afcb93299ee82950627a4be@192.168.86.24 | |
CSeq: 7097 BYE | |
Supported: outbound | |
User-Agent: SIP.js/0.11.3 | |
Content-Length: 0 | |
sip.min.js:1 Wed Aug 29 2018 17:50:20 GMT-0400 (Eastern Daylight Time) | sip.inviteservercontext | closing INVITE session ee3a781d8afcb93299ee82950627a4be@192.168.86.241311466868 | |
sip.min.js:1 Wed Aug 29 2018 17:50:20 GMT-0400 (Eastern Daylight Time) | sip.invitecontext.sessionDescriptionHandler | closing PeerConnection | |
sip.min.js:1 Wed Aug 29 2018 17:50:20 GMT-0400 (Eastern Daylight Time) | sip.dialog | dialog ee3a781d8afcb93299ee82950627a4be@192.168.86.24l22qtmafhm1311466868 deleted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In log.txt, after line 50 is where I ended the call / session.