sipml5 call delay

1,381 views
Skip to first unread message

Александр Степаненко

unread,
Feb 20, 2015, 7:05:21 AM2/20/15
to doub...@googlegroups.com

I got a vm with asterisk in my local network, the configuration is as in https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5.

When making a call from PhonerLite to sipml client there is a delay (it also happens when asterisk before nat) (as shown on a screenshot 1)

Everything else works fine - rtp packets run, no call termination.

When making a call from sipml to PhonerLite, there is a delay before making a call (kind of some preparation of sipml), but PhonerLite accepts call a lot faster (screenshot 2)

Is it an issue or misconfiguration? How can I solve it?
screenshot 1.png
screenshot 2.png

Mamadou DIOP

unread,
Feb 20, 2015, 7:15:15 AM2/20/15
to doub...@googlegroups.com
This is the time Chrome (or FF) is taking to gather the ICE candidates. It depends on the number of Network cards on your PC. For SIP we have to wait until the end of the process before sending the INVITE. There is a draft (trickle ICE) to allow sending the candidates later but not supported by any known SIP product. There are many threads on discuss-webrtc about this problem.

--
You received this message because you are subscribed to the Google Groups "discuss-doubango" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<screenshot 1.png><screenshot 2.png>

Александр Степаненко

unread,
Feb 20, 2015, 7:23:07 AM2/20/15
to doub...@googlegroups.com
Thanks a lot for response. Is there a way to reduce this time?

пятница, 20 февраля 2015 г., 14:15:15 UTC+2 пользователь Mamadou написал:

Дмитрий Кутузов

unread,
Feb 20, 2015, 9:50:15 AM2/20/15
to doub...@googlegroups.com
Is it really necessary to do ICE candidates gathering with only SIP calls with Asterisk server? What is the real purpose of ICE?
Thanks

пятница, 20 февраля 2015 г., 15:15:15 UTC+3 пользователь Mamadou написал:

Mamadou DIOP

unread,
Feb 20, 2015, 10:07:17 AM2/20/15
to doub...@googlegroups.com
On Feb 20, 2015, at 3:50 PM, Дмитрий Кутузов <dmit...@gmail.com> wrote:

Is it really necessary to do ICE candidates gathering with only SIP calls with Asterisk server? What is the real purpose of ICE?
Thanks
ICE (https://tools.ietf.org/html/rfc5245) is for NAT traversal and it’s required by WebRTC.

Aleksandr Stepanenko

unread,
Feb 20, 2015, 12:21:50 PM2/20/15
to doub...@googlegroups.com
But I have asterisk in my subnet, there is not nat, how can I avoid that gathering?
Thanks

пятница, 20 февраля 2015 г., 17:07:17 UTC+2 пользователь Mamadou написал:

Mamadou DIOP

unread,
Feb 24, 2015, 12:52:08 PM2/24/15
to doub...@googlegroups.com
Use empty ice servers array (http://sipml5.org/docgen/symbols/SIPml.Stack.Configuration.html#ice_servers) to skip reflexive and relayed candidates. As you don't seem to know what ICE is I cannot explain how to skip useless host candidates.

mojt...@rabbit.co.th

unread,
Jul 22, 2016, 5:54:04 PM7/22/16
to discuss-doubango
Perfect answer, and one more thing, can you please explain me why we need STUN ?
Reply all
Reply to author
Forward
0 new messages