Happy new year too, It seems there are some problem with pj_getaddrinfo on some devices or some network/DNS configurations. We had this discussions on this list some months ago. To fix your issue, you need to modify a little bit pj_gethostip function in sock_common.c - replace line 789 : status = pj_getaddrinfo(af, pj_gethostname(), &count, &ai); - by : status = PJ_ERESOLVE; I believe if you use DNS resolution of pjsip, you shouldn't have this issue. Samuel Le 31/12/10 14:30, Joe Meade a ?crit : > Happy new year, all. > > I'm running pjsip on iOS and it seems that pjsua_start() is taking far > too long to complete on the device. So long, in fact, the app is shut > down by iOS during startup. > > The slowest part is shown in the log clip below. The two IP addresses > are the Wi-Fi and Cell addresses of the phone. As you can see, it > takes over 30s to set up the ICE transport. FYI: the same code runs in > the iOS simulator very quickly (< 1s). > > Should this take so long and how might I speed this up? > > Thanks much! > > * 08:17:24.615 icetp00 Creating ICE stream transport with 2 > component(s)* > > * 08:17:29.626 icetp00 Comp 1: host candidate > 192.168.6.203:54599 <http://192.168.6.203:54599> added* > > * 08:17:29.626 icetp00 Comp 1: host candidate > 10.122.234.175:54599 <http://10.122.234.175:54599> added* > > * 08:17:34.634 icetp00 Comp 2: host candidate > 192.168.6.203:57465 <http://192.168.6.203:57465> added* > > * 08:17:34.634 icetp00 Comp 2: host candidate > 10.122.234.175:57465 <http://10.122.234.175:57465> added* > > * 08:17:34.634 icetp00 ICE stream transport created* > > * 08:17:34.634 icetp01 Creating ICE stream transport with 2 > component(s)* > > * 08:17:39.642 icetp01 Comp 1: host candidate > 192.168.6.203:52850 <http://192.168.6.203:52850> added* > > * 08:17:39.642 icetp01 Comp 1: host candidate > 10.122.234.175:52850 <http://10.122.234.175:52850> added* > > * 08:17:44.651 icetp01 Comp 2: host candidate > 192.168.6.203:63443 <http://192.168.6.203:63443> added* > > * 08:17:44.651 icetp01 Comp 2: host candidate > 10.122.234.175:63443 <http://10.122.234.175:63443> added* > > * 08:17:44.651 icetp01 ICE stream transport created* > > * 08:17:44.651 icetp02 Creating ICE stream transport with 2 > component(s)* > > * 08:17:49.659 icetp02 Comp 1: host candidate > 192.168.6.203:60979 <http://192.168.6.203:60979> added* > > * 08:17:49.659 icetp02 Comp 1: host candidate > 10.122.234.175:60979 <http://10.122.234.175:60979> added* > > * 08:17:54.668 icetp02 Comp 2: host candidate > 192.168.6.203:53529 <http://192.168.6.203:53529> added* > > * 08:17:54.668 icetp02 Comp 2: host candidate > 10.122.234.175:53529 <http://10.122.234.175:53529> added* > > * 08:17:54.668 icetp02 ICE stream transport created* > > * 08:17:54.668 icetp03 Creating ICE stream transport with 2 > component(s)* > > * 08:17:59.676 icetp03 Comp 1: host candidate > 192.168.6.203:52140 <http://192.168.6.203:52140> added* > > * 08:17:59.676 icetp03 Comp 1: host candidate > 10.122.234.175:52140 <http://10.122.234.175:52140> added* > > * 08:18:04.684 icetp03 Comp 2: host candidate > 192.168.6.203:62326 <http://192.168.6.203:62326> added* > > * 08:18:04.684 icetp03 Comp 2: host candidate > 10.122.234.175:62326 <http://10.122.234.175:62326> added* > > * 08:18:04.684 icetp03 ICE stream transport created* > > > -- > Joe Meade > > > _______________________________________________ > Visit our blog:http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110101/e917844f/attachment.html>