PBXes (http://www1.pbxes.com/forum/index.php)
- English (http://www1.pbxes.com/forum/board.php?boardid=16)
-- Terminal Equipment (http://www1.pbxes.com/forum/board.php?boardid=21)
--- RE: TCP settings (http://www1.pbxes.com/forum/threadid.php?threadid=1316307141)


Posted by gorstj on 18.09.2011 at 01:52:

TCP settings

I am trying to optimise the battery usage of my iphone running acrobits softphone connecting to PBXes

I am connecting using TCP to enable more efficient battery use.

Does anyone know what the maximum maximum TCP expiry is for PBXes?


Posted by Diafora on 19.09.2011 at 07:37:

RE: TCP settings

When using the Acrobits Softphone on an iPhone, the way to minimize battery drain is to use their intermediate SIP Proxy, which sends a Push notification to the iPhone, that in turn reloads their Softphone or Groundwire into an active state, in order to answer the incoming call.

Their explanation can be found here: About Push Notifications. The only drawback when using this method, is that it takes a bit longer for the iPhone to start ringing on an inbound call. But the battery savings are amazing.


Posted by gorstj on 20.09.2011 at 11:00:

RE: TCP settings

Thank you for the advice. I have tried the push service but it requires me to remember to open the softphone every x amount of time otherwise the Acrobits server will de-register me!

In the document you link to there is a way to background, in a battery friendly manner, connecting with TCP. This is how Sipdroid works with PBXes.

Does anyone know what TCP settings Sipdroid uses with PBXes?

Cheers


Posted by Diafora on 20.09.2011 at 11:35:

RE: TCP settings

The basic idea of using the Acrobits intermediate SIP Proxy, is for their iPhone App not to be loaded into memory, unless there is an incoming call which obviously needs to be answered. If the registration from their intermediate SIP Proxy towards PBXes is not being maintained, then you should inquire with them, why the registration is lost.

Connecting to PBXes via TCP through any soft-phone, will reduce the amount of re-connections, but it will not eliminate them. Your battery will drain slower, but it will drain nonetheless. On Android based phones, using SipDroid via TCP or using CSIPsimple via TCP, will drain your battery at the same rate. It's a better option than using UDP, but it cannot be compared with using an intermediate SIP Proxy, to hold the registration for their iPhone based Apps, and use Push notification to load their Apps into memory to answer incoming calls.

This is definitely not how Sipdroid works with PBXes. There is no magic solution in this situation, without using an intermediate SIP Proxy. I don't like it since it introduces an element of security risk, but it's the only way I am aware of, to reduce the battery drain and use VoIP efficiently on an iPhone.

It requires a few disparate settings in various places of the Acrobits' Apps, but it seems to work properly on the iPhones I have configured it.


Posted by montoo on 30.09.2011 at 12:30:

RE: TCP settings

Acrobits suggest as following to make work TCP...

Note for Asterisk Users: To enable TCP for Acrobits Softphone while leaving UDP as the primary protocol for other SIP clients, please add the following to sip config (you must have Asterisk 1.6):

tcpenable=yes
transport=udp,tcp


Posted by Diafora on 03.10.2011 at 07:29:

RE: TCP settings

As far as I know this has been active, since SipDroid was in Beta testing. Otherwise, there wouldn't be any support for TCP in PBXes.

On which server is your PBXes account hosted?

Powered by: Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English translation by Satelk