For getting Status code for Trying and Ringing

35 views
Skip to first unread message

kevin ladani

unread,
Sep 30, 2021, 6:13:56 AMSep 30
to JsSIP
Hi My Self Kevin,
How to get Status code like 100 and 180 from response when i call with any number from below response in my console.

browser.js:183 JsSIP:WebSocketInterface received WebSocket message +13s
browser.js:183 JsSIP:Transport received text message:INVITE sip:rpj7...@127.0.0.1:55702;transport=WS SIP/2.0
Via: SIP/2.0/WS 127.0.0.1:8088;rport;branch=z9hG4bKPjacdc2b28-994d-49de-b3af-f3f7740afb93;alias
From: "F200" <sip:2...@XXXXX.com>;tag=95bffc6b-992b-48dd-83e1-23a2473e271e
To: <sip:rpj7...@127.0.0.1>
Contact: <sip:aste...@XXXXX.com:5060;transport=ws>
Call-ID: 3290aa94-d410-4bb5-ad10-b72e9a05ce04
CSeq: 3467 INVITE
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER
Supported: 100rel, replaces, norefersub
P-Asserted-Identity: "F200" <sip:2...@XXXXX.com>
Max-Forwards: 70
User-Agent: Asterisk PBX 16.8.0-7.5.1.rl.101706.4465cf5
Content-Type: application/sdp
Content-Length:   935

v=0
...trimmed ordinary-looking incoming SDP
a=mid:audio-0
 +13s
browser.js:183 JsSIP:Transport send() +1ms
browser.js:183 JsSIP:Transport sending message:SIP/2.0 100 Trying
... trimmed 100 trying body....
 +0ms
browser.js:183 JsSIP:WebSocketInterface send() +6ms
browser.js:183 JsSIP:RTCSession new +3m
browser.js:183 JsSIP:RTCSession init_incoming() +1ms
browser.js:183 JsSIP:Dialog new UAS dialog created with status EARLY +3m
browser.js:183 JsSIP:RTCSession newRTCSession() +0ms
App.js:348 {id: 0.5232762505149955, remoteExt: "800", time: 1591730563324, state: "incoming", session: RTCSession}
browser.js:183 JsSIP:Transport send() +3ms
browser.js:183 JsSIP:Transport sending message:SIP/2.0 180 Ringing
... TRIMMED 180 Ringing body ....
Content-Length: 0

 +0ms
browser.js:183 JsSIP:WebSocketInterface send() +3ms
browser.js:183 JsSIP:RTCSession session progress +2ms
browser.js:183 JsSIP:RTCSession emit "progress" +0ms
.... session.answer called here ...
browser.js:183 JsSIP:RTCSession answer() +501ms
browser.js:183 JsSIP:Dialog dialog 3290aa94-d410-4bb5-ad10-b72e9a05ce04sgb1kgc5mc95bffc6b-992b-48dd-83e1-23a2473e271e  changed to CONFIRMED state +503ms
browser.js:183 JsSIP:RTCSession emit "peerconnection" +1ms
browser.js:183 JsSIP:WebSocketInterface received WebSocket message +2s
browser.js:183 JsSIP:Transport received text message:

 +2s
common.js:114 JsSIP:ERROR:Parser parseMessage() | error parsing first line of SIP message: "" +15s
debug @ common.js:114
./node_modules/jssip/lib-es5/Parser.js.exports.parseMessage @ Parser.js:29
onTransportData @ UA.js:950
_onData @ Transport.js:303
_onMessage @ WebSocketInterface.js:151

kevin ladani

unread,
Oct 4, 2021, 4:44:12 AMOct 4
to JsSIP
Hello All Please give me solution for above my qoustion. or give me sample code for this.
Reply all
Reply to author
Forward
0 new messages