yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] Demonic240:
I fixed it.. apparently I had to set the password under my Gmail trunk to that of my email account. Outgoing is working now! (also had to disable my dialer integration with csipsimple.
[Nexus 4 General] chdloc:
I'm able to bypass callcentric by moving the GSM codec (pre-cursor of the AMR codec) on top of iLBC in the CSS codec priority list.

This will lead to the GSM codec to be picked for incoming calls, but iLBC for outgoing calls. GSM does not sound as good as iLBC, but it is still very useable.

Interestingly, iLBC seems to work for incoming calls when using the Media5-fone SIP client (again, without iLBC in the middle). I did a little bit of digging and it appears that the problem may actually lie with CSS/pjsip rather than PBXes. A wireshark trace shows that the MIME types in the SDP exchange between CSS and PBXes differ, i.e. "iLBC" for PBXes (which follows the IETF recommendation) vs "ILBC" for CSS. Depending on how CSS/pjsip handles the SDP messages it could very well reject the iLBC codec depending on MIME type mismatch. I could also be a iLBC mode negotiation problem (20ms vs 30ms ptime).

A bug report may in in order (just as with G.726 as mentioned in an earlier post of mine)...
[Nexus 4 General] acegolfer:
Interesting observation. However, I couldn't replicate your results. Incoming call came via GV>gtalk>pbxes (with and without audio bypass) and I answered in media5 w/ iLBC codec. I could hear what the caller says but the caller cannot hear me. This is exactly the same behavior as CSS.

Back to OP setup.
[Nexus 4 General] chdloc:
You are right. I tried it again and this time it failed with media5. It seems that 1 out of 10 tries actually work and the one time that I tried just before sending out my previous post worked fine. More wireshark traces are in order because this clearly seems to be a codec negotiation issue...
[Nexus 4 General] netyang:
I tried different sip apps. only Sipdroid don't drain battery so much. Media5 sound is super, but use a lot of battery. So I decide use Sipdroid wich speex
[Nexus 4 General] acegolfer:
If you are going to use speex codec, then follow ziddey's guide (there's a link in OP) not mine. His guide doesn't involve callcentric and hence much simpler.
[Nexus 4 General] obsanity:
https://simonics.com/gvgw/

Just thought I'd share my setup which has been very good so far. I use the above server with the built in sip client on android.

What I like about this setup is true stock dialer integration. Real hardware proximity sensor support and super simple setup.

Just put in your Google voice info (I'd suggest 2 factor authentication token) and just add a new account with generated user/password/server into internet calling option in android's dialer.

It uses UDP and PCMU codec. Not the greatest but it may work well for most. I know I didn't see much difference between codecs.

Works for incoming/outgoing and there is no software to install and nothing more to configure.

I still want to thank op for posting the info. It was certainly educational.

BTW, consider donating for this guy if you're going to use the server if you're still using it after a while.

Also, main reason to use this over pbxes.org is that pbxes.org free account has a 30 minute re-try on network failure and simonics re-tries constantly until it gets a hold of your client.

Sent from my Nexus 4
[Nexus 4 General] Pkt_Lnt:
I appreciate the explanations of the settings here, thanks.

For me it still comes back to the Audio Implementation setting:

OpenSL-ESS has no latency but echo I just cannot get acceptable, unless I drop the speaker to -1.0 db and the mic to -10.0 db, and others cannot hear me.

Java has some latency, but the echo is almost negligible, with the speaker at 0 dp and the mic at -3 db. I experimented with mic source and nothing works better on echo test than the voice_communications.
[Nexus 4 General] MkVsTheWorld:
I am unable to make any outbound calls using this setup. However, I am able to receive inbound calls just fine. Anytime I try dialing out, I get a female voice that says "Your call cannot be completed as dialed, please try your call again later." Any ideas on what I did wrong?
[Nexus 4 General] korgmotif:
I may still be doing something wrong, and maybe it's not actually using iLBC, but here's a screenshot of an incoming call via gmail gtalk app to my Google Voice number, with that info box selected. at least here it says iLBC for codec. If I select PCMU as the codec, where it says iLBC will change to PCMU. The blurred area is my IP address.

Only thing I did in PBXes was use sipdroid to set it up and then select audio bypass - yes, under my extension. For csipsimple (latest nightly), I used the wizard to add the pbxes account. (Compact SIP doesn't work for me, causes pbxes not to register.)

BTW, is there any way to enable encryption for these calls?
[Nexus 4 General] acegolfer:
Just like the other guy who asked for help yesterday, your gtalk trunk is not set up properly in pbxes.
[Nexus 4 General] MkVsTheWorld:
My Gtalk trunk username and password matches my Gmail/GV account, unless there is some different password I should be using for GV. Could this be an Outbound Routing setting issue?
[Nexus 4 General] chdloc:
I ran some wireshark traces and I believe I found the issue. I'm still suspecting codec negotiation inconsistencies that lead CSipSimple (and possibly other Sip clients that rely on webRTC) to miss the boat in the Tx codec selection. (Rx always works for me.)

I filed a bug report on the CSipSimple project page as ID #2179, http://code.google.com/p/csipsimple/issues/detail?id=2179

Let's see what happens...
[Nexus 4 General] marty331:
Google Voice Text Messages....popup notification anyone?

Check this thread...

http://xdaforums.com/showthread.php?t=1437603
[Nexus 4 General] osi13:
If you absolutely hate using the Google Voice application for text messages, because it totally sucks, try the "Google Voice SMS Integration" app. It's got horrible ratings, but it does indeed work correctly, and it allows you to send and receive text messages though the native MMS application. Once installed, send a test message through the MMS application to verify that you're sending messages via your GV number.

If it fails, and the message is transmitted with your T-Mobile #, check out this post, and install the MMS.apk posted there.

I can confirm that this method above works for me, using MMS.apk posted above, and I am on the Jan 03 build of Paranoid Android.

There is one caveat with this set up, however. You cannot reply though the native notification pop up, if you do, the message will be sent with your T-Mobile #. Maybe using the application posted by marty331, and the SMS Integration app will allow you to use notification pop ups. I'll test this later.
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

I had bad luck with that app. It will NOT display a notification when a text is received.
[Nexus 4 General] osi13:
Use the apk that has been posted. You will definitely receive a notification.
[Nexus 4 General] bluespire:
Not entirely accurate. You can indeed send SMS via the native app, but this may be where the app requires root access to work properly. It works just fine on my GNote. I send AND receive via native MMS app.
[Nexus 4 General] Pkt_Lnt:
He means the pop up / quick reply feature of the native message app.

My Gnex is fully integrated with GV, GV Integration, and native message app, as long as I reply from the main screen of the app, and not from the pop up / quick reply part of the app. If I do, recipients get two SMS, one from my GV number and one from my actual phone number. My GV number is what people have known for years.
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

I tried that MMS apk, no joy. It will not give ANY notification for an SMS.
[Nexus 4 General] bluespire:
Oh. I never used that feature.
[Nexus 4 General] tsuda:
Interesting thread. I have tried most of the setups in the OP...

#1. GrooveIP: agreed sucks on 3g

#2. Talkatone: works much better on iPhone than Android

#3. Vonage: can't use, need incoming calls

#4. Pbxes/Sipdroid: the most reliable combo, I have used this with voip.ms for the past year until CM10 broke Sipdroid on my GS2 T989. Tried to compile my own Sipdroid but no luck. I am in Canada and I do have a GV number, but don't want all my friends to call me long distance.

#5. Simonics - not tried, probably need compressed codec

#6. Asterisk - Running PIAF in VMware on 7x24 server at home which is configured with various trunks including Skype and GV and an IVR with DISA. Half the phones at home are registered with this server as my hobby pet project :) It's not open to the internet because I'm concerned about security (note the callcentric hacking fiasco). So it is accessed through DIDs.

Regarding CSipSimple, I've used it for almost 2 years. I have the latest Jan 15 Play store version installed. The call quality is high with G729, but it drains battery randomly from time to time, even in airplane mode. I only use it for outgoing calls.

Has anyone used Lumicall? It's based on sipdroid and supports G.729. It also supports TLS and PPT to address those with privacy concerns, e.g. you can connect it to your own Asterisk server over TLS.
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

Does anyone know if you cab set CSS to ring with a dialer that looks like a jelly bean dialer instead of the gingerbread look?

That's for receiving calls only.
[Nexus 4 General] tsuda:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

If you update the app from the play store, isn't the latest version already using the ICS/jb style dialer?
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

OK I tried this and still get the gingerbread dialer when receiving calls.
[Nexus 4 General] Pkt_Lnt:
My dialer is holo, first is CSS dialer, second is native dialer.
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

Mine looks the same for dialing out but receiving calls it rings with something that looks like it's from gingerbread.
[Nexus 4 General] ziddey:
My Callcentric DID hasn't been working right the past few days for some reason. Had to revert to google chat trunk in pbxes, while I wait for the trouble ticket. Click2dial works, but the DID is otherwise unreachable it seems.

update:

Hello,

We were able to replicate the issue and are forwarding this ticket to our Provisioning Department. They will update this ticket during the normal business hours (Monday - Friday 9:00AM to 5:00PM EST).

We apologize for the inconvenience and appreciate your patience.

Thank you
[Nexus 4 General] Pkt_Lnt:
You can change the source and recompile. It is a GNU GPL project.

http://code.google.com/p/csipsimple/

I get the mailing list and the nightly builds, all the developer focus is on adding features and squashing bugs. Appearance is not something that I see mentioned, and I doubt it is a high priority on the list.
[Nexus 4 General] ziddey:
I found Llama, https://play.google.com/store/apps/details?id=com.kebab.Llama, an app like Tasker that's free and has a workaround solution for toggling airplane mode for JB4.2 (requires root).

It seems to be a little buggy, but if you can make through the setup, it should work well. I've just installed it now, so will have to see how it performs in the coming days. It may benefit a lot of you on the $30 TMO plan in automation, saving battery, and preventing double ringing.

Here are the rudimentary events I have set currently:

1. At Home - enable WiFi

2. When your phone connects to %AP% - enable Airplane Mode and enable WiFi

3. When your phone disconnects from %AP% - disable Airplane Mode

4. Upon leaving Home - disable WiFi

When you first run Llama, have it learn your home area for some time. As you walk around your house / toggle 2g/3g, it should find most/all the cell towers in your area. We use this to drive our events. This is similar to Y5 battery saver, except Y5 automatically learns all cell towers as long as you're connected to a certain wifi AP. The benefit of using llama is that it won't constantly fight with disabling wifi when it doesn't recognize any cell towers.

Event 2 requires re-enabling wifi after AP since enabling AP will automatically disable wifi. Plane Mode Tweaker allows for wifi to remain on, but it's listed as incompatible with the N4. I haven't tried installing the apk manually or seeing how it's implemented, but I suspect it may be possible to apply the same tweaks, and not require this extra step.

Again, I'll have to see over the next few days how well this setup works. The "danger" that I can see is that if you leave too "quickly" and are out of the home area when event 3 is triggered, you may out of the home area already, and so event 4 won't be triggered. It does seem to have a memory of your location when in airplane mode though, so it may work just fine. If not, a tweak to the event may be necessary-- Not in Areas condtion, although this may result in wifi being killed immediately in foreign areas (same problem with Y5).

All in all, it seemed to like stalling out a lot while I was setting it up, but after everything is in place, everything appears to be working fine.
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

That's what I need! Awesome. Looks like my nights will be busy next week.
[Nexus 4 General] ziddey:
Callcentric supports G729 I believe, so csipsimple could be set to connect to callcentric directly for incoming calls. Setting pbxes for outgoing only shouldn't maintain a connection, so there shouldn't be any battery life penalty. Prioritizing G729 will fail negotiation with pbxes, so it'll fall back to iLBC for outgoing calls.

I just came across http://www.broadbandreports.com/forum/r27436448-Free-SIP-account-that-support-TCP-and-G729-

It looks like callcentric only supports UDP, but that thread has some good discussion on keep alive packets.

I gave csipsimple another go now that I got my N4, but still went right back to sipdroid until I can do more testing. I've been wanting to use it over sipdroid since I first started using voip, but I just haven't been able to get it to perform acceptably.
[Nexus 4 General] antivirus6613:
So I followed this guide to a tee and got everything working on my GNote 2 T889. While using csipsimple around my house on wifi I notice that the call quality is decent so I can hold a good conversation. However, when I head outside there are a lot of sound quality issues that really are bugging me now. The main thing is I call and I can hear them and then all of a sudden I can't hear anything...making me hangup the call and then have to redial.

Just don't see this as a stable solution, unless someone has any tips/tricks to tweak the settings to get good quality calls?
[Nexus 4 General] acegolfer:
osi claims battery drain is about the same between TCP and UDP and he decided to use UDP.

My take is as long as the battery lasts a day before I can recharge it overnight, it really doesn't matter. 15-hr battery life and 30-hr battery life will have the same recharging schedule (once a day) for most people.

I'd like to hear your battery life results. Most people don't know what KA is and hence doesn't experiment with it.
[Nexus 4 General] acegolfer:
Too bad it didn't work for you. As stated in OP, this method is very YMMV. If you don't have a good 3g connection, then you are not a good candidate to rely on VoIP.

But if you can get other VoIP solution to work over 3g, then there's a hope. You need to spend hours tweaking your setup. osi posted his csip setup earlier, which will be a good start.
[Nexus 4 General] chdloc:
As G.729 is a royalty-bearing codec (an expensive one at that, cf. media5-fone in-app purchase) I highly doubt that you will find a free solution that supports it end-to-end. pbxes does not offer it in its SDP invite unless you are a Pro user.

If Callcentric indeed offers G.729 for free (in a transcoding setup), they will not do it for long.

CSS may be in a legal gray zone for offering G.729...
[Nexus 4 General] Pkt_Lnt:
I use Voip.ms and CSipSimple with G.729 for my wifi calls and it works well. The status in CSS verifies it in use, and it is one of three codec choices at voip.ms, along with GSM and G.711, although I disabled G.711 in my voip.ms settings.

That said, I am on the premium plan with voip.ms at a whopping $0.0125 / min, I have spent just under $15 total for the service (including DID) since August 2012.

My routing is GV -> voip.ms DID -> CSipSimple (if registered) -> TMo cell number (if not registered or busy) -> GV voicemail after 25 seconds

I'm about to setup a Sip2Sip account to get the iLBC codec so that calls will route to Sip2Sip between voip.ms and CSipSimple. I do not use Sip over 3G because I only go over my 100 monthly minutes ($30/100min/5Gig) about twice a year, and then by less than 15 minutes.
[Nexus 4 General] acegolfer:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

G279 vs ilbc

I agree that g729 is a great codec. However, being not free doesn't necessarily mean g729 is better than ilbc. If so, then you should also conclude ios is better than android.

Instead, one should objectively test both codecs and decide what's better for you. For some, g729 may be superior and warrant paying for the license.
[Nexus 4 General] Lockeskidney:
just finished setting this all up. not bad
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

Osi

I uninstalled CSS then reinstalled from the playstore. Then I reinstalled GV SMS I. Then I replaced my MMS.apk with the one from the link, rebooted and BOOM it works!
[Nexus 4 General] Lockeskidney:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

Anyone know why when someone calls my Google voice number it asks for their name?
[Nexus 4 General] Pkt_Lnt:
Go to the GV settings via browser and turn off call screening.
[Nexus 4 General] kuosiong:
Thanks for all the instructions on setting up incoming and outgoing calls! Works perfectly for me.

I am having trouble entering a string of digits (e.g. credit card number, SSN etc) after I place a call. After I bring up the dialpad and enter the first digit, the dialpad disappears and I cannot enter any more numbers.

Any ideas on how to solve this problem would be much appreciated.
[Nexus 4 General] marty331:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

Maybe reinstall CSS? What version are you on?
[Nexus 4 General] kuosiong:
I have tried reinstalling but the problem is still there. I am on the latest nightly build version 0.04-05 r2093.
[Nexus 4 General] MkVsTheWorld:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

Can anyone get past Step 4 when trying to dial out? I keep getting an automated response that my call cannot be completed as dialed.
[Nexus 4 General] tsuda:
Re: [GUIDE] Free VOIP calls w/ iLBC codec (better than G729?)

It's a bug. Just go back one screen and then bring up the dial pad again.

I have the same problem when dialing a number by T9 code. I have to go back to the dial pad and then hit txt to go back to the T9 entry screen to get the keyboard back.
[Nexus 4 General] acegolfer:
I'm confident that callcentric call forwarding to sip is free. I went ahead and also changed my wife's setup to push gv calls.
[Nexus 4 General] bluespire:
Not sure if you know how to do this (I can theorize how to do it), but could you estimate how many more mAh's this eats up in standby, or perhaps how much extran battery % using "extra battery stats" app (the one that was written by the XDA member)? This way the measurement is phone independent.
[Nexus 4 General] whahn1983:
For those of you who have tried this method, is the call quality better than using the Vonage app?
[Nexus 4 General] bluespire:
That was answered a page ago, I believe. The answer? Quality is about the same, but unable to integrate into Android as this method provides.
[Nexus 4 General] acegolfer:
Couldn't find such app. Can you double check the name?
[Nexus 4 General] bluespire:
Play Store
[Nexus 4 General] acegolfer:
Sounds like a great app. Unfortunately it's not free.

If you are going to use any VoIP, then registering to pbxes thru TCP connection will be the most battery efficient.

http://code.google.com/p/sipdroid/wiki/NewStandbyTechnique

My phone easily lasts 16 hours with normal use. I haven't tested any longer because I recharge every night.
[Nexus 4 General] Pkt_Lnt:
XDA version is free.

http://xdaforums.com/showthread.php?t=1179809
[Nexus 4 General] bluespire:
How many minutes of talking do you typically do? Are you always on cell, or is a good % of your talking on Wifi?
[Nexus 4 General] acegolfer:
Thanks.

I installed BBS but not sure how to calculate mA. If you already have a VOIP provider, why not install csipsimple (or any VOIP client of your choice) and see how much battery it consumes?
[Nexus 4 General] Pkt_Lnt:
There is button for that. :D
[Nexus 4 General] danlo:
The setups on the pbxes/callcentric side have been great so far. However, I see my csipsimple setup being less than ideal. Every now and then I see the VOIP setup go inactive (usually when I don't have signal for a while, i.e. in the subway), and the only way for me to get it back to active is to restart the phone. Anybody see this issue on their side?
[Nexus 4 General] cobyman7035:
does this apply to users in canada or its only USA? thanks
[Nexus 4 General] acegolfer:
Sorry to hear that. It never happened to me and I'm not an expert on csipsimple. Does it also happen to other SIP client apps? csipsimple has a nice a support forum. You may get a better answer from it.

https://groups.google.com/forum/?fromgroups#!forum/csipsimple-users
[Nexus 4 General] acegolfer:
The only obstacle that I can think of is getting the Google Voice number as it's not offered in Canada atm. All you need is a US number to get a GV number.
[Nexus 4 General] acegolfer:
I finally had some spare time to rewrite the whole instructions.

Updated the OP.
[Nexus 4 General] bluespire:
Could you post a screenshot of your account settings in CSIPsimple? Apparently, a lot of ppl, including me, are having a very hard time getting it to register with PBXes.
[Nexus 4 General] acegolfer:
Can you register with pbxes using sipdroid?
[Nexus 4 General] danlo:
I ended up buying Media5. It looks like this is happening when I use port 53 (my work's WiFi blocks port 5060). I'll report back on how storable this app is.
[Nexus 4 General] bluespire:
Yes. I got the account created that way. But I don't like SIPdroid. I can't seem to get the right settings to register with cSIP, and the template they have doesn't seem to work. I'm using expert mode and trying everything I can think of.
[Nexus 4 General] acegolfer:
I did some battery life testing. I'll share my results with N4.

protocol / connection / battery consumption per hour

TCP / wifi / 0.27%

TCP / 3g / 2.77%

UDP / wifi / 0.55%

UDP / 3g / 5.54%

To summarize,

1. 3g connection consumes 10 times more battery than wifi.

2. UDP consumes twice more than TCP.