Malay1499 / siphon

Automatically exported from code.google.com/p/siphon
0 stars 0 forks source link

Siphon freezes on startup, takes 2 minutes to connect to SIP server #354

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I start Syphon (2.2.0), it loads and than freeze (not responding to 
any taping on the numbers or icons). After more than a minute it unfreeze 
and finally reacts to the previous taps and after a little while change 
status to "Connected" — so it takes Siphon very long time (2 minutes) to 
get connected to the server (sipnet.ru) after startup. I tested it on home 
WiFi connection.

Free version of iSip from App Store work fine - "State: Register 
Successful" immediatly after startup — but it doesn't have g729 codec I 
want to use on 3G network (haven't tried it yet though).

A detaled log of one Syphon startup in attachement. I wrote down the 
timing: taping the program icon exactly at 02:48, connected status at 2:50 
(plus several seconds).

iPhone with the latest firmware and blackra1n + cydia.

Original issue reported on code.google.com by MrProRun...@gmail.com on 8 Jan 2010 at 12:33

Attachments:

GoogleCodeExporter commented 8 years ago
iPhone 3G

Original comment by MrProRun...@gmail.com on 8 Jan 2010 at 12:35

GoogleCodeExporter commented 8 years ago
It's weird, because when we read the log file :
    01:03:12.775 : starting
    01:03:14.602 : sent register message (<2 seconds)
    01:03:14.800 : register ok (2 seconds)
    01:03:38.291 : calling to someone
    01:03:41.740 : error not found  (<3 seconds)
    01:04:03.219 : calling to someone
    01:04:05.313 : error not found  (2 seconds)
    01:04:11.146 : quit

The duration is one minute. Perhaps did you enable SIP over 3G and if the wifi 
is not
enabled, Siphon ty ro use 3G connection. And to wake up 3G connexion, Siphon 
try to
connect on google site by http. 

Original comment by samuelv0...@gmail.com on 8 Jan 2010 at 10:25

GoogleCodeExporter commented 8 years ago
Samuel, are you sure it's my log file you're reading? Mine starts with 
02:48:35.075 
and I didn't make any calls.

I made another one just in case. My actions:

A second after the time on the iPhone changes to 02:58 I tap the Siphon icon 
and 
start stopwatch on my other mobile. In two seconds the program loads and I tap 
ABC 
button. Nothing happends. 2 minutes and 4 seconds after I tapped the icon 
Siphon 
responds by opening virtual keyboard. About 5 seconds later status changes to 
"Connected". I tap Done and close virtual keyboard. Several seconds later I 
press 
Home and Siphon closes.

"Siphon over EDGE/3G" is swithed off. WiFi is on and working perfectly.

Original comment by MrProRun...@gmail.com on 9 Jan 2010 at 12:23

Attachments:

GoogleCodeExporter commented 8 years ago
And I've set googles' 8.8.8.8 as the dns server in Siphon configuration, so it 
is 
shown in the log: "Nameserver 8.8.8.8:53" 

Original comment by MrProRun...@gmail.com on 9 Jan 2010 at 12:29

GoogleCodeExporter commented 8 years ago
Siphon is in Russian if it matters. WiFi is working on my home adsl router and 
I've 
set port forwarding (4000 and 5060) to iPhone's ip adress (192.168.1.33) there.

Original comment by MrProRun...@gmail.com on 9 Jan 2010 at 12:38

GoogleCodeExporter commented 8 years ago
Sorry, I read bad log file :-( I misled by Mac OS/firefox cache.
Which Siphon version do you use ?
Could you try to remove google dns server ?
Or to define google dns server in Iphone settings and not Siphon settings ?

Original comment by samuelv0...@gmail.com on 9 Jan 2010 at 11:34

GoogleCodeExporter commented 8 years ago
Google DNS server doesn't affect it. The problem remains.
I rebooted iPhone, cleared dns settings and then startes Siphon. Same 2 minutes 
until Siphon reacts to tapping and connects.

I started the program about 15:16:(30-40 sec.). The first log file entry is 
after 
more than half a minute later, 15:17:13.567. "Request msg REGISTER" starts only 
at 
15:18:44.171.

Original comment by MrProRun...@gmail.com on 9 Jan 2010 at 12:37

Attachments:

GoogleCodeExporter commented 8 years ago
Siphon version is 2.2.0, installed from Cydia.
blackra1n + cydia + sbsettings + backgrounder

Original comment by MrProRun...@gmail.com on 9 Jan 2010 at 12:47

GoogleCodeExporter commented 8 years ago
I made screenshots of Siphon settings (sorry, Russian)
http://runr.ru/pics/i1.png
http://runr.ru/pics/i2.png
http://runr.ru/pics/i3.png
http://runr.ru/pics/i4.png
http://runr.ru/pics/i5.png
http://runr.ru/pics/i6.png

Original comment by MrProRun...@gmail.com on 9 Jan 2010 at 9:03

GoogleCodeExporter commented 8 years ago
For completeness — a video. Mainly just 2 minutes of waiting before Siphon 
responds:
http://www.youtube.com/watch?v=XcSwfXaTL2A

Original comment by MrProRun...@gmail.com on 9 Jan 2010 at 9:37

GoogleCodeExporter commented 8 years ago
I have no idea of your issue, 
1/ Could you look cpy activity when you run Siphon ? Connect with ssh on your 
iphone,
use 'top' tool and run Siphon from SpringBoard.

2/ could you try to disable backgrounder, 3G unrestrictor if you use it... 
reboot and
re-try Siphon.

Original comment by samuelv0...@gmail.com on 10 Jan 2010 at 1:51

GoogleCodeExporter commented 8 years ago
"Connect with ssh on your iphone, use 'top' tool and run Siphon from 
SpringBoard"
Could you tell me what to install on iPhone and PC to do this?

I'll try disabling other programs from Cydia.

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 2:04

GoogleCodeExporter commented 8 years ago
Uninstalled backgrounder, rebooted the phone — no effect.

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 2:24

GoogleCodeExporter commented 8 years ago
I tried top. CPU seems to be 80% idle all the time.

'Top' taking about 7-8% permanently

Siphon takes 44% right after it's started, than 0 % for 33 seconds, than 
constantly 
changing from 0 to 3 %, 1-3% since it's connected.

Sometimes Springboard up to 15-20 %

A list of processes:

  154 Siphon       1.8%  0:05.27   4    87    109  3920K    11M  7060K    73M
  141 top          7.3%  1:12.27   1    23     34   408K  6732K   888K    17M
  140 bash         0.0%  0:00.14   1    15     49   256K  6744K  1048K    19M
  139 sshd         0.0%  0:03.30   1    15     35   312K  6488K  1304K    18M
   74 MobileSafa   0.0%  0:08.84   7   101    129  7380K  9584K    11M    80M
   63 MobilePhon   0.0%  0:01.27   1    57     60  1388K  8872K  2552K    67M
   62 SCHelper     0.0%  0:00.52   3    30     45   364K  6488K   588K    17M
   57 apsd         0.0%  0:02.28   3    77     39   652K  6488K  1144K    17M
   33 notifyd      0.0%  0:01.73   2   277     29   252K  6480K   436K    17M
   32 BTServer     0.0%  0:01.37   3    81     50   508K  6488K   924K    21M
   31 CommCenter   0.0%  0:05.81   9   128     70  1036K  8224K  1864K    45M
   26 SpringBoar   2.7%  2:21.55  10   306    432  7916K    11M    23M    84M
   25 accessoryd   0.0%  0:00.26   1    41     29   336K  6480K   688K    17M
   24 configd      0.0%  0:15.50  11   241     95   916K  6488K  1944K    22M
   23 fairplayd    0.0%  0:00.36   1    34     37   352K  6476K   588K    18M
   20 mDNSRespon   0.0%  0:01.64   2    54     38   404K  6476K   852K    18M
   19 mediaserve   0.0%  0:09.29  12   180     95  1264K  8224K  2500K    39M
   18 lockdownd    0.0%  0:20.11   3    69     55  1088K  8216K  2312K    33M
   16 syslogd      0.0%  0:06.58   4    38     44   368K  6480K   584K    18M
   13 sbsettings   0.0%  0:00.26   1    35     28   376K  8204K  1172K    30M
    1 launchd      0.0%  0:02.39   3   101     42   336K  6476K   652K    19M

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 3:10

GoogleCodeExporter commented 8 years ago
Here's a list of packages installed in Cydia:

afc2add (manually installed ones)
   APT 0.7 (apt-key)
   Base structure
   Big boss's Source
   Bourne-Again SHell
   bzip2
   Core Utilities (/bin)
Cydorder
   Cydia Community Source
   Cydia Installer
   Darwin Tools
   Debian Packager
   Diff Utilities
   Erica Utilities
   Find Utilities
   GNU Privacy Guard
   grep
   gzip
Insomnia
Insomnia Toggle
   iPhone Firmware
   iSpasio
   LZMA Utils
   ModMyi.com
Mplayer
   network-cmds
OpenSHH
   PAM (Apple)
   PAM Modules
   Profile Directory
   Saurik's Source
SBSettings
sbsettingstoggles
   sed
   shell-cmds
Siphon
   Ste's Source
   system cmds
   Tape Archive
   top
   ZodTTD's Source

Everything in the list (except maybe SBSettings) I installed after I tried 
Siphon, 
so they can't possibly effect it.

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 3:45

GoogleCodeExporter commented 8 years ago
'top' was also installed manually. Missed it. No 3G unrestrictor

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 3:54

GoogleCodeExporter commented 8 years ago
I have no idea, but you could read issue 326 and
http://iphonejtag.blogspot.com/2009/11/blacksn0w-is-live.html
and (issue 223 ,  issue 220 ,  issue 155 ,  issue 230 ,  issue 303 ,  issue 313 
, 
issue 315 ,  issue 326 ,  issue 327) 

Original comment by samuelv0...@gmail.com on 10 Jan 2010 at 4:01

GoogleCodeExporter commented 8 years ago
Switched off WiFi to try to work on cellular EDGE:

Siphon responds to tapping right after it's loaded, but doesn't connect to 
server at 
all (I've waited for 10 minutes).

iSip still connects at once and works fine, even on EDGE.

I'll try looking trough the links, thanks.

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 4:31

GoogleCodeExporter commented 8 years ago
Sorry, i forgot to turn Siphon over edge/3g on.

Like iSip, Siphon connects on EDGE at once. The same problem as the one in 
issue 326

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 5:27

GoogleCodeExporter commented 8 years ago
Tried instruction by Wolfgang.Kreuzpaintner issue 220:

- turn off wifi using SBSettings. Start-up Siphon --> no crash and shows "not 
connected"
- turn on wifi using SBSettings. Siphon will now connect to the sip-provider 
and can
be used normally.

It works. Siphon responds to tapping after load, connects as soon as WiFi is on 
(Siphon over edge/3g turned off, so it doesn't try to connect on cellular).

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 6:29

GoogleCodeExporter commented 8 years ago
I tried changing DNS IP in Siphon settings to my ADSL router (192.168.1.1), 
OpenDNS 
(208.67.222.222, 208.67.220.220) and Google (8.8.8.8, 8.8.4.4), as in issue 
155, but 
no luck.

Same 2 minutes 3 seconds before unfreeze (exactly 2:03 every time) and a second 
more 
to connect.

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 7:02

GoogleCodeExporter commented 8 years ago
Oh my, I got it. I had to change DNS servers assigned to the clients in my 
router, 
and it totally worked.

I changed Primary and Secondary addresses in "DNS Servers Assigned by DHCP 
Server" 
in "DHCP setup" to Google's (from 0.0.0.0) and everything works fine now.

Anyway, iSip somehow worked even without it.

Original comment by MrProRun...@gmail.com on 10 Jan 2010 at 7:32

GoogleCodeExporter commented 8 years ago
I guess another workaround would specifying DNS in WiFi connection settings on 
iPhone manually.

Original comment by MrProRun...@gmail.com on 11 Jan 2010 at 12:13

GoogleCodeExporter commented 8 years ago
Thanks for all your trials.
I close this issue.

Original comment by samuelv0...@gmail.com on 11 Jan 2010 at 7:50