Open GoogleCodeExporter opened 9 years ago
You dont need a PABX on the desktop to test this. If your monitoring with
WireShark
you would expect a REGISTER command sent immediately on Siphon startup however
it
takes 5minutes to send this out under this WiFi scenario.
Original comment by rukshan...@gmail.com
on 25 Mar 2010 at 4:41
More info.
Turns out that the 5mins or so is spent on the function
rc = getaddrinfo(nodecopy, NULL, &hint, &res);
which is in pj_getaddrinfo() in Addr_resolv_sock.c
Any idea why this function take a long time on the iphone to execute when there
is no internet connectivity
on the local WiFi?
Original comment by rukshan...@gmail.com
on 25 Mar 2010 at 8:39
How important is the call to pj_gethostip() in init_random_seed() in
pjsua_core.c ?
It seems that if i comment out these lines, it resolves the issue below:
/* Add primary IP address */
// if (pj_gethostip(pj_AF_INET(), &addr)==PJ_SUCCESS)
//seed = pj_hash_calc(seed, &addr.ipv4.sin_addr, 4);
Original comment by rukshan...@gmail.com
on 25 Mar 2010 at 8:55
I have confirmed commenting those lines out fixes this issue. Also the call to
pj_gethostip() in
init_random_seed() seems unimportant.
Samuel, what do you think?
Original comment by rukshan...@gmail.com
on 25 Mar 2010 at 8:57
Actually the fix above is invalid. The correct fix is:
In sock_common.c in pj_gethostip()
look for:
status = pj_getaddrinfo(af, pj_gethostname(), &count, &ai);
and modify to:
status = PJ_ERESOLVE; //pj_getaddrinfo(af, pj_gethostname(), &count, &ai);
That will fix this issue.
Original comment by rukshan...@gmail.com
on 26 Mar 2010 at 1:18
Would love to know how I can get a version with this fix in it! It takes
forever to
connect to my phone system using siphon!!!
Original comment by abuthema...@gmail.com
on 6 Apr 2010 at 3:45
Original issue reported on code.google.com by
rukshan...@gmail.com
on 25 Mar 2010 at 4:35