yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] marksatterfield:
Do you have an idea of how long the phone lasts if using standard calling, that is, without csipsimple?

---------- Post added at 05:49 AM ---------- Previous post was at 05:36 AM ----------

Okay, here's the issue.

I performed 7a instead of 7b, the instructions identify as an "either or" situation (the word "Alternatively").

So... what happens is that I didn't have an outbound trunk that worked.

Now I added the outbound CallCentric trunk in 7b, and I get to a voice from Call Centric that says no can do. But at least I'm getting out of PBXES. So now I need to figure out what I did wrong in CallCentric.

Anyway, the instructions need to be updated to say, "You must perform step 7b to allow outbound calls". Or I think so at this time.

One more question: What does Ace mean by "log in pbxes.org, go to Trunk>Gtalk and make the necessary changes"? I don't have a Trunk GTalk in pbxes. I only have SIP & ENUM
[Nexus 4 General] acegolfer:
Correct, you can follow either 7a or 7b for receiving incoming calls from pbxes. Why do you claim it's for outbound calls?

OP uses gtalk as the outbound trunk. But if you are using callcentric trunk for outbound, then you need a paid account at callcentric to make outbound calls.

The OP instruction is correct. Apparently, you missed steps 3 and 4. Those 2 steps are needed to create a free pbxes account with gtalk trunk (which you don't have) for outbound calls.
[Nexus 4 General] marksatterfield:
You and Ace are right. The "add a gtalk trunk" option does not appear after you create the pbxes account. I had to create brand new accounts. Once I followed OP Ace's instructions, it works fine.

On "Why do you claim it's for outbound calls?", I was only saying that if I do 7b, I can at least get to the CallCentric servers. But you guys are right, it is not necessary since gtalk is being used.

Thank you for your patience, everyone. So is there a way to create a gtalk trunk after creating the pbxes account? Or adding a second gtalk trunk?
[Nexus 4 General] acegolfer:
You can, but it's not free. You must upgrade your pbxes to a premium account.
[Nexus 4 General] bloodyduster:
I did steps 1 and 2 in the quote above and used x=10, but the results are not what I expected if CSS is not running. If CSS is running and registered, the call transfer to ext 600 just fine after 10s. However, if I disconnect from CSS (to simulate a bad 3g area where I have no data connection), my cell number does not ring at all. I checked the call monitor at pbxes.org and find that ext 600 doesn't even get triggered.

Is this normal? I only want to use the cell minutes if data is not available. This doesn't accomplish the task because I never get notified if I'm in a bad 3g area.

edit: made some corrections
[Nexus 4 General] acegolfer:
Here's an idea. Instead of "if no answer", input your cell number in "if busy" line under call forwarding. I think if the extension is not registered, it will be considered as busy and ring your cell number instead. But I could be wrong.
[Nexus 4 General] bloodyduster:
Thanks, this did the trick. I kept the field "if no answer", but used my cell number instead of the extension number. I also added my cell number to the field "if busy" and it worked wonderfully.

I have another question and hope that you can help me with. If the call gets forwarded to my cell number, the caller ID shown is my GV number. Is there any way to make it so that it keeps the original caller's number and not my GV number?
[Nexus 4 General] Dhinchak:
I followed all the steps (and had chosen 7a), but I get the same problem -> when I try to make a call from cipsimple dialer, I also get "your call cannot be completed at this time. Please try again later". I logged into the application specific password setting from google, and it says that I do not have any specific clients registered that require this feature. Also it says that feature is available only if a 2-step verification is enabled.

If you have any ideas, I would greatly thankful for any pointers.

Here's my pbxes call log (for privacy, I have replaced my 10 digit another working cell number to abcdefghijk).

Date	Time	Caller ID Number	Destination	IP	Trunk	Context	App	Duration	Recording

2013-01-09	07:14:45	200	*98	me42036d0.*tmodns.net	from-internal-cont	Hangup	00:00:53

2013-01-09	07:13:51	"Sipdroid" <200>	abcdefghijk	me42036d0.*tmodns.net	from-internal-cont	ResetCDR	00:00:05

2013-01-09	06:02:41	"18453718600" <18453718600>	200	pbxe*s.org	ext-local	VoiceMail	00:00:15

2013-01-09	02:33:42	"Sipdroid" <200>	abcdefghijk	me42036d0.*tmodns.net	from-internal-cont	ResetCDR	00:00:05

2013-01-09	02:14:23	"Sipdroid" <200>	abcdefghijk	me42036d0.*tmodns.net	from-internal-cont	ResetCDR	00:00:05

2013-01-09	02:03:09	"Sipdroid" <200>	1abcdefghijk	me42036d0.*tmodns.net	from-internal-cont	Playback	00:00:05

2013-01-09	02:00:36	"Sipdroid" <200>	abcdefghijk	me42036d0.*tmodns.net	from-internal-cont	ResetCDR	00:00:05

Pasted from <https://www2.pbxes.com/config.php?display=23>
[Nexus 4 General] macnolias:
Well like some sort of lunatic I deleted the gtalk trunk from pbxes. Would someone please glance at your working settings and help me with my blanks I'd greatly appreciate it. It does appear the routing stayed in place though at least.

gtalk trunk sip fields needed

dtmfmode:

audio bypass:

sendrpid:

SIP server or proxy:

domain:

register:
[Nexus 4 General] acegolfer:
You two have the same problem. You need gtalk trunk to make the outgoing call.

It will be far easier to start from scratch. Go to pbxes.org and delete the account. Then follow steps 3 and 4 in op.
[Nexus 4 General] macnolias:
Yes yes I do realize that now. This is one day down the drain for sure! Well I could never make calls using sipdroid so I skipped over that step. I can receive calls to my google voice number no problem. When trying to make an outbound call it says my call can't be completed as dialed... I'm also wondering if a titanium backup restore might have caused an issue

The top one is using sipdroid and the bottom is using the phone dialer going through pbxes.

2013-01-09	21:30:03	"Sipdroid" <200>	9544856333	mad5536d0.*tmodns.net	from-internal-cont	ResetCDR	00:00:05

2013-01-09	21:30:02	200	9544856333	mad5536d0.*tmodns.net	ext-par2	Hangup	(00:00:05)

2013-01-09	21:29:35	"Sipdroid" <200>	9544856333	mad5536d0.*tmodns.net	from-internal-cont	ResetCDR	00:00:05
[Nexus 4 General] acegolfer:
If you can't make an outgoing phone call from sipdroid in step 4, then do not proceed to step 5. You will be compounding the problems without resolving any.
[Nexus 4 General] acegolfer:
Put your cell number in extension>call forwarding>if busy line. If your sip client is not registered, your cell will ring instead.

I don't know how you can trigger a call forwarding when you have a weak 3g, though. pbxes/csip is not that smart. Can tasker do this?
[Nexus 4 General] pedxing:
Yes that would work great actually.

http://www1.pbxes.com/wiki/index.php/Codes

Unconditional call forward is *21*destination.

Set up a tasker profile with a variable checking the signal strength ...%cellsig i think. Dial the above with your cell number if less than x.

I'd add some sort of timer so it's not switching too much when in a borderline area. Just leave on forwarding until good signal exists for x number of minutes.

There is also a tasker plugin for csipsimple that works fine. You can include the registration command in the task if you want to control that part manually.

If the question is " can tasker do xyz?" Assume the answer is yes. :thumbup::D
[Nexus 4 General] acegolfer:
Nice.

Can tasker do this instead, which is a better setup?

If signal strength is strong, kill the native phone app and register with sip. (Note this is different from airplane mode)

If weak, kill the sip client and run the native phone app.
[Nexus 4 General] swaggerwocky:
I've yet to get my N4 and use this VoIP setup, but is it correct to assume that the former method would use up minutes? If acegolfer's way could work, that would seem to be the ideal method.
[Nexus 4 General] macnolias:
I believe titanium backup was the culprit. When restoring my n7 to my n4 I believe something got fked up and a long story short I did a factory reset on the phone and went the the steps and I'm up and running great. I even got a great voice number ending in ***** 1.

Many thanks ace!
[Nexus 4 General] Dhinchak:
I am not sure if you had the same problem that I had, but I think my issue stemmed from having multiple gmail accounts. I couldnt figure out how to make Sipdroid to change the default google voice username it chooses -- even though I was logged in with a different username in google voice. Reverting back to pbxes login where the pbxes username matched the google voice resovled the issue, but now I am stuck with the solution that I have to store my password corresponding to real google account in pbxes. A factory reset would have been the alternate path since when we start fresh, we can use a single email id for gmail accounts, get the VOIP setup done, and then add the other email accounts.

I am very new to this, and my statements above are just my observations/speculations in case somebody else runs into the problem as well.

Many thanks to OP.
[Nexus 4 General] netyang:
Thank you for your information. I try to use media5-fone too. can you tell which values of "register timer" and "keep alive" do you set?

thank you.
[Nexus 4 General] pedxing:
I'm not sure if you can prevent incoming calls if the cell radio is turned on. If it's not turned on and there's no WiFi...then you'll get nothing of course. I think you'd have to do something at the Google voice or pbxes level to reroute the call to sip if registered and cell if not. So if the signal is good, register sip and in the same task route calls to the sip number. If not, forward to the cell number. If you're on gv this should work using groove forwarder plugin from Google play. If people know and call the cell number directly, you'd have to mess with call forwarding at the carrier level. (A dialer task in tasker). But in principle it could work.
[Nexus 4 General] faux123:
I have modified my kernel to include G711 support. Not sure how to test this since I don't have VOIP account and I don't use it.

http://faux.androidro.ms/mako/beta/mako-jb-kernel-004b06.zip

check for me to see if native G711 support makes any difference for VOIP or not.
[Nexus 4 General] bluespire:
What is more important to me is, HOW do "I" do this to my kernel? I am already using a customer one from a developer.
[Nexus 4 General] ziddey:
To my knowledge, the native SIP client will essentially only use G711 (ulaw/alaw) as it is, which is one of the major downfalls of it and why people use third party clients. I'm curious how the kernel didn't have support before?
[Nexus 4 General] faux123:
it wasn't in the audio dsp processing for the stock kernel. CAF has a patch that enable the G711 processing in their audio DSP. Maybe it was done in emulation now its done with audio DSP which should help CPU loading... Since I don't know too much about VOIP in general, and I don't know how to properly test this.
[Nexus 4 General] jcsd1212:
Using CSS and have everything set up from the OP. I can make calls over my phone's network but can't over wifi. I've searched the thread for this problem (I saw some people did) but I never saw a solution. I'm new to voip and don't really understand UDP/TCP. I saw a response about turning off UDP and tried doing that but CSS could not register with my pbxes account after I did that.
[Nexus 4 General] zevim2005:
I have two questions?

This method serve in every country?Can i make international free calls?
[Nexus 4 General] acegolfer:
Try a different sip client such as media5. If that works, then it's CSS problem. If media5 doesn't work, then it's your ISP problem.
[Nexus 4 General] acegolfer:
We are using gmail's GV calling feature. So here's the rate table for international calls.

https://www.google.com/voice/b/0/rates
[Nexus 4 General] pryan49@hotmail.com:
Csipsimple Not Registering Pbxes.org account

I have been studying this thread and today decided to give it a try per the excellent guide provided. when I enter my Pbxes.org info into csip it just hangs at registering. (mygoogleid-200 and password) any advise?
[Nexus 4 General] netyang:
if you are in Canada, the best is 711+Pbxes.org+Media5 fone+iLBC
[Nexus 4 General] acegolfer:
Double check your pbxes credentials.

pbxes has 3 different passwords

1. pbxes.org login password

2. gtalk trunk password

3. extension password.

You use #3 password in your sip client. If CSS doesn't work, try media5fone.
[Nexus 4 General] jamesyl:
Just set this up. First off, thanks to acegolfer for all the testing and wonderful write-up. If you hadn't posted this on slickdeals I would have never found it on xda (I just lurk in my device dev subforum), A couple thoughts:

1. This is infinitely better than GrooveIP. No doubt.

2. I understand iLBC's superiority in high jitter scenarios (i.e. while driving in a car), but I wonder about the superiority of iLBC over speex or G729 during stationary use of HSDPA+? When compared with sipdroid+pbxes.org, I found it hard pressed to notice difference in call quality and drops. The same went for the Vonage app (G729?), which I was able to use on a moving bus going about 40mph. I still prefer this solution because csipsimple is a better app than sipdroid, but codec-wise I'm not so sure iLBC is that much better.
[Nexus 4 General] acegolfer:
Call quality is highly subjective. If you are happy with other codecs, then use them. The general consensus here is that you have to try all the options and settle with what you are ok with. My setup is not for everyone.

Personally, I was not happy with speex. It sounded too robotic for me and hence I sought G729 and iLBC. FYI, callcentric supports both G729 and iLBC. So you can make a direct comparison between these 2 codecs. However, the problem with G729 is that the free pbxes account doesn't support G729 for outbound calls.
[Nexus 4 General] jamesyl:
Yep, I ran into the issue making outgoing calls with pbxes. I'm going to try G729 vs. iLBC comparisons for inbound on HSDPA over the next few weeks and report back. In the meantime I'm still loving this setup.
[Nexus 4 General] osi13:
I use G729 over HSPA+ or remote WiFI and G722 when I'm connected to my LAN. I have a PBX server, btw. You should look into adding G729, if that's possible. G711 is only useful for calling over a strong WiFi signal.
[Nexus 4 General] gedster314:
I had issues with turning off udp. You have to turn it off in settings in expert mode, this is the easy part to find. But you also have delete your pbxes.org account from CsipSmiple and recreate it by going into Generic Wizards and select Advanced. Attached is my settings. User should be xxxxx-200.

Thanks csaket
[Nexus 4 General] csaket:
I think you mean to say delete it from CSipSimple.

You should not have to delete from pbxes.org
[Nexus 4 General] chdloc:
PBXes Pro user?

Great info to be had here.

How about moving this thread to a more general forum as it does not only pertain to Nexus 4 users?

Slightly OT: Is there a PBXex Pro user in this forum that could help me file a bug report?

Background: PBXes (and CSipSimple w/ the codec pack) support the G.726-32k codec which offers almost G.711 quality (i.e. better than iLBC and G.729) while cutting the payload bandwidth in half (compared to G.711).

The problem is that G.726-32k supports two incompatible bit packing formats, i.e IETF RFC 3551 (MIME type: G726-32) on the one hand and ITU-T Recommendation I.366.2 Annex E for ATM AAL2 transport on the other (MIME type: AAL2-G726-32). PBXes offers MIME type G726-32 in its SIP invite while the data is actually encoded according to the ITU-T (AAL2) specification. As a result, currently all calls (that don't shuffle) made with G.726 sound horrible.
[Nexus 4 General] acegolfer:
Possible workaround for a noisy mic

It has been said that N4 mic picks up a lot of background noises. The following fix is suggested in another thrread.

http://xdaforums.com/showthread.php?p=36542007#post36542007

I haven't done any testing but you can try this without using faux kernel. Go to csipsimple settings>media>audio troubleshooting>mic source. Select CAMCORDER (as suggested by the above thread).
[Nexus 4 General] gedster314:
I have not tried this mod yet but I can say there is a huge difference in background noise between my N7000 Note and the Nexus4. The Nexus4 can pickup a car driving down the street from an open window and the note does not pickup a TV in the same room. When using the note and this voip solution, except for delay, it is one of the best sounding calls I have had.
[Nexus 4 General] andoird213:
Hi,

Not sure if this is a feature in the stock Phone app or not (because I had never given it two thoughts before now), but going in to the Phone app on AOKP there's an option to add Internet Calling (SIP) accounts.

Would I be able to use this rather than CSipSimple?
[Nexus 4 General] Pkt_Lnt:
Yes, but you cannot choose codecs and you cannot use the best ones that are the point of this thread. You only get G711, which most of us find very poor on wifi and never a prayer on 3G. Oh, and it sucks battery really fast if you want incoming calls.
[Nexus 4 General] andoird213:
Thanks! So using CSipSimple and using the iLBC codec sounds like the way to go for sure
[Nexus 4 General] jcsd1212:
Is there a way to go back and see what codec is used after a call is made in CSS? I know in media5 it shows what codec is being used during the call.
[Nexus 4 General] bluespire:
Yes. While in the call, there is an information button about in the the center of the CSIP call client. Pressing that will give snapshot of all the stats concerning the call. I would prefer a real-time view, but I can't do anything about that. The information will list the the codec in addition to all sorts of other things.
[Nexus 4 General] masque3000:
You don't have to delete it---just long-click on it and select Choose Wizard, then Generic, then Expert.

~ Sent from my Nexus 4
[Nexus 4 General] macnolias:
I'd love to hear some feedback on additional csip settings that improve call quality. As of now most people don't like talking to me on the phone anymore :(
[Nexus 4 General] c0LdFire:
Yeah....

I gave up on VoIP and switched to a plan with unlimited minutes.

I love it VoIP. I love the concept. It's just not ready for mainstream use yet. Even if 9 out of 10 calls are great, that 10% is still unacceptable. I can't say I've ever had a carrier call dropped except while driving in the middle of nowhere (and I can count one or two of those per YEAR, tops). I had to hang up and try again with VoIP all the damned time, even on strong low latency 20-50mbps WiFi connections.
[Nexus 4 General] Pkt_Lnt:
Csipsimple settings:

http://xdaforums.com/showpost.php?p=32665179&postcount=1200

Setup Port Forwarding and QoS on your router if possible:

http://mrmatt57.org/qos-for-soho-voip-solved-tomato-firmware/

I need voip, since cell service is very poor in my house in rural coastal California, if I stand outside on the second story deck I can talk, but that sucks in the wind and rain. I have perfect switching between voip and cell network, auto GV call forwarding to whichever I am on, almost zero latency and no echo. No one complains about my call quality. I only use it on wifi, not 3G which is also sketchy here. 4G? Maybe in five years in town, at the coastal communities, probably never
[Nexus 4 General] acegolfer:
Another thing that you can try is installing other sip clients. Media5-fone seems to provide a good call quality.
[Nexus 4 General] mercado79:
so, today i took the time to set everything up as explained in the op. thank you acegolfer for such a thorough and useful write up.

however, i guess i must have missed something along the way. the quality of my calls (over wifi so far) are terrific, but while i was on the phone, i missed a couple calls and they went into pbxes voicemail system. didn't even know that existed. no call waiting sound. then again, my ears are totally blocked up from this flu i'm fighting. maybe it actually did make a sound.

i would have expected google voice to serve as voicemail. do i just have to disable voicemail on the extensions form on pbxes.org? does that sound right?
[Nexus 4 General] acegolfer:
Yes. If you are using GV voicemail, then disable all the voicemails in pbxes extensions. You don't want pbxes to answer your GV calls.
[Nexus 4 General] acegolfer:
Has anyone experienced no audio after answering the call with CSS? My wife had 2 calls with no audio.
[Nexus 4 General] mercado79:
Thank you. How about the call waiting part. I do see a checkbox on the website that says call waiting. Would that notify me of an incoming call or is call waiting out if using VOIP with this setup?
[Nexus 4 General] korgmotif:
is callcentric needed to enable iLBC? does it provide some other purpose?

i used sipdroid to create a pbxes google voice account and then turned on audio bypass

then using csipsimple i selected ilbc as the codec

whenever i make or receive calls through my gv number, the little info box (during call pressing the i) shows that i am using ilbc

if audio bypass is turned off, then ilbc doesnt show up, and the quality is noticeably different

pcma and pcmu also both work. gsm works. speex doesnt transmit audio but only receives, for some reason. everything else gives me an error of not supported.

pbxes in this setup seems to route through gtalk, which i believe supports ilbc already natively. but i guess im missing something as to why callcentric is needed. hope someone can clarify.
[Nexus 4 General] whahn1983:
Pbxes has issues with the ilbc codec. Selecting audio bypass goes around the problem letting callcentric handle the audio instead of pbxes.
[Nexus 4 General] korgmotif:
right now, without using callcentric, and just pbxes, i get ilbc by selecting audio bypass. arent i then directly letting gtalk handle ilbc? according to google's website, gtalk supports ilbc.

if this isnt right, can you explain what kind of issues pbxes has with ilbc? is it bad quality?

i feel kind of unsafe routing my personal calls through so many voip providers, so it would be nice if i could use fewer
[Nexus 4 General] acegolfer:
When I wrote OP, I couldn't get iLBC working with gtalk incoming calls with or without audio bypass. Have you actually tried it? Make sure it's using iLBC not PCMU. If it works now as you claim, then we don't need callcentric at all. I'll need to rewrite the entire OP and the setup will be far simpler.
[Nexus 4 General] ziddey:
Using Callcentric will still allow caller ID with name, as well as call forwarding.

gtalk supports iLBC, but as I understand it, google voice still only supports ulaw/alaw. Otherwise, we could all just be using grooveip.
[Nexus 4 General] acegolfer:
Agreed. The way I understand is gtalk supports iLBC only through its apps (android, windows). On the other hand, you can't use iLBC even with gmail calling, which also uses gtalk trunk.

In short, Google Talk app and gtalk trunk are not the same.
[Nexus 4 General] Demonic240:
Not sure where my configuration issue is, but I can receive calls via callcentric, but when I try to place calls (to anything other than the *43 echo test) I receive a "Call Cannot be completed as dialed". I see the part about pbxes.org sending the calls out, but could someone explain how everything should work?

From what I can garner... incoming calls are answered by csipsimple since it supports the iLBC codec. The OP states that to make outgoing calls, I need to make the call through the native dialer.. Does this mean that I also need to have the sipdroid app running in addition to csipsimple?
[Nexus 4 General] acegolfer:
1. As OP states, post the screenshot of your pbxes call logs, if you want help.

2. OP doesn't state that you need to use native dialer.
[Nexus 4 General] Demonic240:
The Call Monitor Logs?
[Nexus 4 General] acegolfer:
yes
[Nexus 4 General] acegolfer:
Pbxes didn't use gtalk trunk to make the outgoing calls. You missed steps 3 and 4.