yusuf77tr / siphon

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

Option to change the UDP keep alive interval #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
20090104-01 version -- downloaded from cydia

I'm running asterisk server 1.6 at my home. I'm using siphon to connect to
the server. The siphon registers and I get a connected message at the top
right corner.

But I see that every 15seconds, a UDP message is send from the phone to the
server of 2bytes. Then, there is an exchange happens after every 4 messages
(that is after 1 min). This 15 second message transfer is really killing
the battery life when I'm running siphon in foreground or background.

Is there anyway to customize or increase this interval ?

Thanks
Mudit
--------
16:50:06.695188 IP mobile-032-157-084-164.mycingular.net.sip >
192.168.123.4.sip: SIP, length: 2
16:50:21.701318 IP mobile-032-157-084-164.mycingular.net.sip >
192.168.123.4.sip: SIP, length: 2
16:50:36.718366 IP mobile-032-157-084-164.mycingular.net.sip >
192.168.123.4.sip: SIP, length: 2
16:50:53.606943 IP mobile-032-157-084-164.mycingular.net.sip >
192.168.123.4.sip: SIP, length: 2
16:50:54.752853 IP 192.168.123.4.sip >
mobile-032-157-084-164.mycingular.net.sip: SIP, length: 552
16:50:55.071646 IP mobile-032-157-084-164.mycingular.net.sip >
192.168.123.4.sip: SIP, length: 947
======

Original issue reported on code.google.com by mwa...@gmail.com on 22 Jan 2009 at 12:59

GoogleCodeExporter commented 8 years ago
Issue 131 has been merged into this issue.

Original comment by samuelv0...@gmail.com on 22 Jan 2009 at 7:44

GoogleCodeExporter commented 8 years ago
In all cases, SIP client must keep the open connection between him and server. 
Like
that it can receive the call. Otherwise if the connection is down, the server 
can't
send INVITE message.

If you want to get Siphon in background, I believe that you want to receive 
calls,
isn't it?

Certainly, it's possible to increase the interval. But the WiFi connection stay
open/active, and the battery life will be killing too.

I don't know if there are a good solution for that.

Moreover if Apple refuses the applications in background, it is for that.

Original comment by samuelv0...@gmail.com on 22 Jan 2009 at 7:50

GoogleCodeExporter commented 8 years ago
The problem is whether its foreground or background, siphon still takes too 
much CPU
and resources which depletes the battery very fast. Even if I've my phone in 
sleep
mode with siphon running in background (wifi disabled, mail disabled, ssh 
disabled,
etc etc), I don't get more 3-4 hours of standby time. I think siphon should act 
more
like the Phone application which really sips power. Otherwise I may only want 
to want
to run siphon to make calls but not receive them.

BTW, thanks a ton for a great app. I was using Truphone with hacks earlier but 
that
was horrible .. 80% cpu usage. This is so much better.

Original comment by mwa...@gmail.com on 22 Jan 2009 at 2:54

GoogleCodeExporter commented 8 years ago
It's possible ;-)

struct : pjsua_acc_config
/**
 * Set the interval for periodic keep-alive transmission for this account.
 * If this value is zero, keep-alive will be disabled for this account.
 * The keep-alive transmission will be sent to the registrar's address,
 * after successful registration.
 *
 * Default: 15 (seconds)
 */
 unsigned ka_interval;

Original comment by samuelv0...@gmail.com on 29 Jan 2009 at 11:50

GoogleCodeExporter commented 8 years ago
so we will see it in next version :) ???

Original comment by mwa...@gmail.com on 29 Jan 2009 at 11:58

GoogleCodeExporter commented 8 years ago
2.0.3

Original comment by samuelv0...@gmail.com on 1 Feb 2009 at 5:03

GoogleCodeExporter commented 8 years ago
thanks !!!!

Original comment by mwa...@gmail.com on 1 Feb 2009 at 5:04