A 40 sec delay of SIP call initiation using JSSIP

384 views
Skip to first unread message

Karthik Kumar

unread,
May 4, 2021, 7:34:17 AM5/4/21
to SIP.js
Hello team,
Hope you all are well and safe!

We are using our own Web-Dialer for calling purpose with SIP credentials. We are facing an issue here i.e., after dialing the call, the call is placing a delay of 40 seconds. I had already posted regarding this few days ago. I didn't received any support.

I am again posting this. We are in a needy of urgent/immediate to fix/solve this issue ASAP.

Let me know, if any further details are require to fix the issue.

Thanks in Advance.

Eric Green

unread,
May 4, 2021, 6:20:37 PM5/4/21
to SIP.js
First of all this is SIP.js - not JSSIP. I suggest you contact JSSIP if you need help with that project.
If you do want help with this - try reading our pinned post. It contains lots of really great information about creating a post with information about your problem so that people here can provide help to you.

Karthik Kumar

unread,
May 6, 2021, 6:19:17 AM5/6/21
to SIP.js
Sorry for delaying in reply.

Yes, the issue is with SIP.js

Could you please help me out from this.

Slavik Bialik

unread,
May 6, 2021, 1:00:18 PM5/6/21
to SIP.js
Please attach logs from the console, it can be very helpful.
Anyway, try reducing the iceGatheringTimeout value... it might help.
I had a ~10 seconds of delay when making an outbound call, and reducing it helped in my case.

You'll have to do something like this in your code where you're using the "invite" method:

var inviterInviteOptions: InviterInviteOptions = {
  sessionDescriptionHandlerOptions = {
    iceGatheringTimeout: 100
  } as Web.SessionDescriptionHandlerOptions;
}

inviter.invite(inviterInviteOptions);

Karthik Kumar

unread,
May 6, 2021, 1:00:54 PM5/6/21
to sip...@googlegroups.com
Actually, I tried to capture the call log of our Web-Dialer by using Wireshark (when the call is placed). 

Herewith,  I am attaching the captured log report. Hoping this may help to solve our 40sec delay after call has placed.

Thanks in advance.

--
You received this message because you are subscribed to a topic in the Google Groups "SIP.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sip_js/V5fhGzQfCl4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sip_js+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sip_js/1a5c84ae-ec02-4c74-8e47-a10e8a592ea7n%40googlegroups.com.

Web_dialer_Capture.pcapng

Slavik Bialik

unread,
May 6, 2021, 1:13:07 PM5/6/21
to SIP.js
Can you please elaborate about where the capture is taken from? I assume it is from the PBX side, right?
Can you also take a console logs from the SIP.js client.
And what is the full flow? 
SIP.js client -- (WS)---> PBX ?
Or there's something in the middle? It is hard to understand from the capture without knowing which IP is what and the full flow.

BTW, your capture has multiple calls over there, can you please point to the relevant call (state the packet # of the first INVITE in the capture) that had the delay?

On Thursday, May 6, 2021 at 8:00:54 PM UTC+3 karthi...@gmail.com wrote:
Actually, I tried to capture the call log of our Web-Dialer by using Wireshark (when the call is placed). 

Herewith,  I am attaching the captured log report. Hoping this may help to solve our 40sec delay after call has placed.

Thanks in advance.

On May 5, 2021 3:50 AM, "Eric Green" <green...@gmail.com> wrote:
First of all this is SIP.js - not JSSIP. I suggest you contact JSSIP if you need help with that project.
If you do want help with this - try reading our pinned post. It contains lots of really great information about creating a post with information about your problem so that people here can provide help to you.

On Tuesday, May 4, 2021 at 7:34:17 AM UTC-4 karthi...@gmail.com wrote:
Hello team,
Hope you all are well and safe!

We are using our own Web-Dialer for calling purpose with SIP credentials. We are facing an issue here i.e., after dialing the call, the call is placing a delay of 40 seconds. I had already posted regarding this few days ago. I didn't received any support.

I am again posting this. We are in a needy of urgent/immediate to fix/solve this issue ASAP.

Let me know, if any further details are require to fix the issue.

Thanks in Advance.

--
You received this message because you are subscribed to a topic in the Google Groups "SIP.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sip_js/V5fhGzQfCl4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sip_js+un...@googlegroups.com.

Karthik Kumar

unread,
May 6, 2021, 1:33:10 PM5/6/21
to sip...@googlegroups.com
Thank you for your reply. 

Yes, absolutely it is from PBX side. The IP which I have connected and placed call is through 49.207.5.183
You may see that IP in the log which I have sent. In the mean while I will also try to send the console logs from SIP.js

The flow will be like this:
1. After logging into our Web-Dialer 
2. I try to place a call to our one of our Tenant which will be in our PBX.
3. So, the call should connect to our IVR for that particular Tenant immediately, then I will dial an extension number. 

The problem is here, after placing the call. No sound hearing from the Dialer till 40sec. Unable to decide whether the call is connected or not in this time period(40sec). After completion of 40sec then able to listen IVR. 

Hope you got the complete scenario.


To unsubscribe from this group and all its topics, send an email to sip_js+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "SIP.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sip_js/V5fhGzQfCl4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sip_js+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sip_js/eb529dbb-5f92-4757-bb94-2fd3595b0096n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages