yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] ttabbal:
The best for me has been the low silk codecs. I'm on silk12 for slow networks. I use silk22 on wifi. I don't notice much difference higher than that. Note that only one is ever actually in use. In CSipSimple, If you tap the "i in a circle" icon durring a call, even to *43, you can see which one. The server and client negotiate which one to use. On 3g, I find silk and ilbc to be the best. The latency is all over the place on hspa, and codecs like g722/pcmu/pcma just don't handle that well. If your latency is good and you don't drop packets much, g722 can be great. However, it's wasted unless you're calling another extension on your pbx that is also using it. Any calls via pstn will end up at pcmu/pcma quality at best.
[Nexus 4 General] dhawk312:
As of this morning I suddenly cannot receive calls via Google Voice/Chat. I haven't changed any settings, except codecs. I can place calls but incoming calls do not ring my phone. Any help?
[Nexus 4 General] Becool0130:
The number one cause of this is if you are signed into a google voice account. Please ensure that you sign out off any service that uses google voice. Then try again
[Nexus 4 General] dhawk312:
I set up a new gvoice account just for this. Signed out of all instances and doubled checked all talk and voice settings. Still can place calls but cannot receive them.
[Nexus 4 General] Becool0130:
now you say that you havnt changed anything but codecs. Did you check to see if your sip client and freepbx has the codec enabled?

I ran into a problem where I couldnt make or receive calls and it was all because both codecs didnt match and therefore couldnt translate it.
[Nexus 4 General] dhawk312:
Yes I checked this. Just tried again with only a single codec active....tried with Silk12, iLBC, and GSM. still no incoming calls.

This only started happening about 2 hours ago after i ignored an incoming call.
[Nexus 4 General] post-mortem:
Restart your server?
[Nexus 4 General] dhawk312:
Restarting the server did not fix the incoming call issue.
[Nexus 4 General] Becool0130:
To be honest with you. When I find myself in a bind like this I would just delete the instance +elastic IP + Volume and redo everything from the start.

Unless you saved yourself a backup by any chance?
[Nexus 4 General] dhawk312:
I'll do this when I get home tonight. It's what I was thinking of doing. I think the issue is gvoice/gtalk though. I just logged into the website. I can make calls through gtalk but no calls incoming...although these silent calls show up as missed calls after about a min in gvoice. I didn't touch any gvoice or gtalk settings and haven't even logged in to my account for days before this happenes. Very strange.
[Nexus 4 General] Becool0130:
Please let me know if you dont know how to back up your installation. So I can show you...
[Nexus 4 General] dhawk312:
Thanks but I have it backed up. I restored both the AWS instance and FreePBX. Still a no go on incoming calls.
[Nexus 4 General] acegolfer:
I have experienced no GV incoming before.

In my case, I fixed it by removing gchat from Google Voice page and then adding it back.
[Nexus 4 General] Becool0130:
Now this is funny, I could HAVE taught you how to back things up. However, how on earth do I transfer the backup somewhere? Ok, it would be FTP right?

Well, I use FTP with port 22. And I dont have many directories listed there...Should I be using tftp instead? Not sure on how to retrieve the file I just backed up -_-

Any ideas?
[Nexus 4 General] dhawk312:
I got home, connected to my wifi and I can receive calls when connected to my home wifi. I was not able to receive calls when on any other networks, including cell networks and other wifi networks.
[Nexus 4 General] Becool0130:
get travelin man 3 and presto: http://nerdvittles.com/?p=815

oh oh, can you please help me with my question above? Thanks
[Nexus 4 General] dhawk312:
How does Travelin Man help here? It seems more restrictive than my current setup, which worked fine on and off my network until bugging out this morning.
[Nexus 4 General] Becool0130:
if you say so man.... Im telling you. Follow the guide and you will be both secure and trouble free. Its up to you man. Or you can try to figure this out yourself? o.O

allow help or not? :)

btw, its not restrictive at all.. its very flexible. I use it everyday with no hassles
[Nexus 4 General] umassboston:
Where do I set the password for the first time login

Hi OP,

The instruction is confusing. One post says to set the password for the first time login in putty, while the other one says in PBX. Other than that, no matter what i tried to use to connect to the server. It either says my key is being refused or the connection timeout. Pls help. Thx.
[Nexus 4 General] acegolfer:
They use different passwords. One is for Linux account, the other is for PBX account.

In addition, there are passwords for aws, freepbx, extensions, Google voice, sudoer.

If you don't understand the difference, then set the same password for each account. It may increase security risk tho.
[Nexus 4 General] acegolfer:
Dhawk,

Can you summarize what's working and what isn't?

Be as specific as you can for each case such as TCP and port number.
[Nexus 4 General] acegolfer:
In past, from linux CLI, I used linux command to attach a file and email it to me. Google it.
[Nexus 4 General] Becool0130:
Hi and thanks,

However, Am I wrong when i say that this backup file of my whole PBX system is to huge to send in an email? Would I be going to far as to say that I need ftp access to get such large files? Thanks
[Nexus 4 General] post-mortem:
You may have locked yourself out. If you keep trying to log in unsuccessfully, fail2ban will ban your IP. I'm guessing though, because I've never been banned, so I don't know what kind of error message you'd get.
[Nexus 4 General] dhawk312:
How do I open all the TCP ports through the nano iptable command?
[Nexus 4 General] ttabbal:
It's mostly just config files, so it's not real huge.

The command to learn is "scp". However, I'm not sure what OS you're on. For Unix based and OSX, that command will likely be there already. For Windows, the Putty people have "pscp". If you don't want to use a command line, you can use SFTP, but I couldn't tell you how to set it up as I've never done it. Make sure you're logging in as root, so you can be sure to see all the files on the system.

scp root@<address>:/path/to/file .

Enter the password when prompted. That should copy a file from the remote to whatever directory you are currently in.
[Nexus 4 General] Becool0130:
Okie dokie. Thanks for your help! You know trying to log into sftp as root yesterday was a lovely pain!! couldnt figure out how to do it.. though I could login as Ec2-user on amazon. I couldnt see anything when I logged in as ec2-user.

Anyhow, you see I used this tutorial to backup my things: Here

I ran: incrediblebackup

and the backup began. Its just getting it all off the system. I will take your advice and keep trying to login as SFTP. Thanks

---------- Post added at 12:29 PM ---------- Previous post was at 11:58 AM ----------

SOLVED!!! LOL. SFTP wins the day. I decided to give it another try and viola.. idk what changed this time. I transferred over with no probs here :)

Thanks guys
[Nexus 4 General] umassboston:
How to solve it

Thanks for your time. But what will be the best way to solve the problem? Do I have to do the whole process all over again with a different network?
[Nexus 4 General] gmanb:
The link no longer works,

I believe this link has what you were referring to

http://nerdvittles.com/?p=5060
[Nexus 4 General] acegolfer:
Thanks. Updated OP.
[Nexus 4 General] Becool0130:
This is the oddest thing ever! I can make calls on my mobile data plan but cant make em on my wifi LOL.

Anyone have any hints as to why this bizarre thing is happening?
[Nexus 4 General] post-mortem:
Must be your router. Double check the port forwarding, the NAT settings, etc.

Can you receive calls at home?
[Nexus 4 General] Becool0130:
I cant even connect to sip on my wifi at home. but can register and make calls on my mobile data. All this was running perfectly just yesterday.. I smell a dreadful restore from a backup is incoming
[Nexus 4 General] dhawk312:
This sounds like the same issue I had but mine was flipped where I couldn't connect on gsm but could on WiFi. It happened out of nowhere after working perfectly fine for about a week. after restoring my setup from scratch everything worked fine again.
[Nexus 4 General] Demonic240:
You can actually use AWS built in SSH client. Just go to your instance page in the EC2 section, right click on the instance and select Launch.
[Nexus 4 General] Becool0130:
If I enable STUN then I can register my sip via my home wifi. However, if I dont then the sip will not register. Also, I can connect just fine on my mobile data network withough STUN. anyone know whats going on? Do you need the askerisk logs? Thanks
[Nexus 4 General] clintb:
I would check to see if you're double NAT'ed, specifically the WAN IP address of your router. If it's one of the following, it could be the cause: 10.x.x.x, 172.16.x.x, 192.168.x.x.
[Nexus 4 General] Becool0130:
well I did notice my phone ip address is 192.168.XXX..... what now?

Idk why this didnt stop me before though :(
[Nexus 4 General] clintb:
Not the phone IP address. The WAN address of your router. Login to your router and see what IP address its obtaining on the WAN/internet side. If it's one of the previously mentioned addresses you're double NAT'd.

In addition to the above, I would double check the EC2 security group settings for proper ports, check IP tables for proper ports.

In the FreePBX interface:

Settings > Asterisk SIP Settings

NAT = yes​

IP Configuration = static​

External IP = <the EC2 elastic IP assigned by Amazon>​

Local Networks = 10.0.0.0/8 (note: "/" is separating the two fields)​

It may help, may not, but in your router turn off anything like "SIP helper", "SIP ALG", etc... Most of those mangle the SIP header and cause nothing but trouble.
[Nexus 4 General] ttabbal:
STUN is designed to help with NAT issues. If it helps, just use it. I actually have better luck with it off, but due to NAT being a huge PITA and implemented differently by everyone, you may get better results with it enabled.

As to something suddenly changing, it could be as simple as your ISP changing settings on their router. IPV6 can't come soon enough. :rolleyes:
[Nexus 4 General] Becool0130:
..

---------- Post added at 03:54 PM ---------- Previous post was at 03:53 PM ----------

I'll check it out. However, as with the double NAT if this is found then what should I specifically do? Thanks

---------- Post added at 03:58 PM ---------- Previous post was at 03:54 PM ----------

Yep, I'll do this for now till I solve it with all the trouble you guys have given me. Really appreciate it, it really does seem there is more help here and not the original pbx forum lol. :thumbup:
[Nexus 4 General] clintb:
I edited my post you quoted already, but I made a typo and wanted you to know. The IP address for "Local Networks" should be "10.0.0.0", not "1.0.0.0".

And, as ttabbal recommends, use STUN if all else is configured properly.
[Nexus 4 General] cavemandaveman:
Can you expand on how to set up PIAF for multiple GV numbers? Currently I have two GV numbers from different accounts attached to PIAF. In outbound routes, I selected the corresponding trunk for each number, but both numbers still show the same caller ID. I just can't wrap my head around this one...
[Nexus 4 General] acegolfer:
A screenshot of my outbound route is attached. Here's the explanation.

1. Note the trunk at the bottom. If you use Motif, it will show as "GVM_xxxx" This is the trunk this outbound route will use.

2. Outbound calls from extensions 201, 202, 204 will use this route. These are extensions for my phone, tablet, softphone.

3. Any call starting with "9" followed by 10 digit number will use this route. So I can use my wife's phone and call out using my GV number instead of her GV number.

You can set up similarly for another GV trunk such as your wife's. Ofc, you will have to specify a different prefix other than "9."
[Nexus 4 General] cavemandaveman:
Thanks! it turns out I was missing the extension at the end of the dial patterns.

Sent from my Nexus 4
[Nexus 4 General] ttabbal:
I'm having a rather odd issue all the sudden... Just wanted to see if anyone else has seen it before I spend more time on it.

Every once in a while, CSipSimple will get stuck in a loop trying to register. It will look like it's succeeding, then go back to "Inactive" and "Registering" over and over again. Other than IP calling breaking, this obviously has negative effects on battery life. Killing CSS doesn't help, but rebooting the phone does, for a while. This is new, no changes to configuration lately. Nothing I can think of anyway. Happens on all networks I have available.
[Nexus 4 General] blkrde:
Strange Issue Suddenly

All of the sudden, after using this solution for months......anytime I call out I dont get any "ringing". The call connects, but it certainly make the start of the conversation awkward. I haven't changed any settings recently, so I am really at a loss for whats going on.

Any suggestions?

---------- Post added at 08:31 AM ---------- Previous post was at 08:12 AM ----------

I have the same issue. I find restarting asterisk helps. I use the "core restart gracefully" command.
[Nexus 4 General] ryuker:
Dumb question...

My piaf green supports g.729 so I set it to that on my PBX

but csip simple doesn't....I set csip simple for the opus codec....should I have both codecs be the same?
[Nexus 4 General] acegolfer:
Yes. The codecs in server(PBX) and client(csip) must match.
[Nexus 4 General] cavemandaveman:
Can i suggest maybe putting in an extra step about updating FreePBX in the guide? I noticed after updating that it seems more stable, so this could be a good troubleshooting tip. I used one of the videos posted earlier to help me: http://youtu.be/R8RDTZBsUdc
[Nexus 4 General] ryuker:
I did that and now Google voice won't work:

This module requires Asterisk chan_motif & res_xmpp to be installed and loaded

Make a back up before applying this update! :silly:

I tried to uninstall and reinstall the module...no dice. I edited modules.conf to preload those extensions and restarted the core.....still no dice.

Some guy in another thread said the update was screwy....not sure if valid but you might want to hole off on upgrading the Google voice module. Now I have to reformat everything and start from scratch.....ugh.
[Nexus 4 General] ShinnAsuka:
so after I use the restart command in asterisk cli, I can no longer access the Google Voice motif section. I get the following error message:

This Module Requires Asterisk mod_motif & mod_xmpp to be installed and loaded

any ideas?
[Nexus 4 General] ryuker:
BIG WARNING!!!!!

If you buy the CSIP codec pack for the G.279.....your gonna have a bad time.

I bought it after trying that codec installation for G.279 and getting an error.....codec was not compatible with the asterisk g.279 codec....every call failed or would stop after one ring....definately wasted hours on that...:(

Wipe and start again....I managed to update it after starting over from scratch!
[Nexus 4 General] ShinnAsuka:
Lol, I have redone it like 3 times and its the same problem. Surprisingly enough, if I don't do the "core restart gracefully" command it all works with the default codecs (no SILK or G729).

Anyone experience something similar?
[Nexus 4 General] ShinnAsuka:
Update: I've got it working with PIAF Green and silk codec over wi-fi now... will test with data once I actually sign up for the plan lol. Thanks all for the guides and help.

One question: if piaf-green doesn't work in certain cases it is mostly on amazon's aws side right?
[Nexus 4 General] ryuker:
ALRIGHT

Here's some revised add on instructions that may help some:

1. Make sure you get green if you want the green PIAF setup....the purple and green PIAFs look identical on the amazon AMI search

2. Update all modules first via module admin. You usually have to do it twice because some require other updates first(like google motif).

3. G.729....I'm not sure how to set it up right with a license but any attempt at installing fracked up my entire asterisk setting....somebody should post a more detailed guide. I had wasted hours on this....there is a csip codec for it that costs $10 on the app store....I bought it....not even sure if it actually gives you a license becuase they didn't email me anything regarding it. Diginum sells the codec and license for $10 on their site....

4. You have to fix the amazon firewall settings....the default is brickwalled to the 9th power. Do not skip that step

5. Follow the instructions to the tee, avoid G.729 unless you know what your doing....it screwed up every asterisk installation I tried....needs a good guide

6.Green has 6.729 in the codec list but I imagine it needs a license to work....

7. Amazon ec2 isn't likely the problem except for security issues....I use it for cloud web hosting and they default everything to "secured to hell" settings. If your new to amazon ec2, just open all ports and later close them. Don't worry about passwords, keep them default (maint as user, password as password). Get it working first, then secure everything.

It will save you headaches if your a newb.

8. Don't go crazy changing other settings....I actually manage a call center PBX at my day job and run Amazon ec2 cloud hosting for our web servers(I'm a newb to to sys admin though)....there is a definitely a learning curb and amazon has acronyms for acronyms. The guide presented here is pretty good.
[Nexus 4 General] ShinnAsuka:
Nice set of tips. One more to add on my end is that I found the asterisk cli command "core restart gracefully" to take really long. Instead I go into linux CLI and do su root to become the root user and execute command "amportal restart" which does basically what it says "restart". That takes like 5 minutes at most whereas "core restart gracefully" just hanged forever. Tried with both Chrome and IE, both of which hanged when using "core restart gracefully"...
[Nexus 4 General] ryuker:
Yep, I forgot!

Amportal restart is much faster! gracefully and restart now take minimum of 5 minutes to even get going.
[Nexus 4 General] post-mortem:
Here's another tip:

In the FreePBX Web Administration, go to Settings -> Advanced Settings, navigate ~60% of the way down, and there's an option called Waiting Period to Stop Asterisk. Change this from the default of 120 seconds to 0 or 5 seconds. This can save you up to 2 minutes.

For some reason though, amportal restart always spends a lot of time just waiting, in my setup. I find it faster to just reboot the server.
[Nexus 4 General] ryuker:
So I finished putting on the LTE 4g fix for my nexus....argh....no LTE in my area....but faster speeds(5-6mb down, 1.6mb up). Alright latency(50-70ms average).

I went with the silk codec; for the noobs, you might have to go into etc/asterisk/codecs/config and add the silk codec manually(See post #71). Chmod it to get permission if needed to edit it(likely).

I messed with the settings.....quality is VERY good over 3g and perfect over wifi using silk.....except for minor echo over 3g.

I'm working on the 3g echo....somebody mentioned lowering the volume of the nexus 4 mike using free fauxsound...apparently the nexus had messed up gain which caused echo issues....that program can lower your microphone gain. It did help with echos but clearly it's not the reason for them.

Any advice on removing that last bit of echo? so close....yet so far.
[Nexus 4 General] ryuker:
ECHO IS GONE!!!

Mostly for nexus 4 but similar solutions will likely work for other phones....especially those using the same audio hardware.

I fixed the echo(over 3g) doing this:

Csimple has an option to enable software control or volume instead of the android OS/hardware.....enable it...I suspect that fixed it combined with the following:

Echo cancellation(never worked until ti checked the above....works great now) in Csimple.

Faux kernel or something compatible with his software for fixing audio gain. His app also works for other phone models if your using a kernel with his patches.

Faux sounds and Faux speakers app. I chose the quality preset plus my own sleight modifications and also the voice setting for speakers.

Echo was annihilated.....I also tried voice audio detection but I didn't like it... I found that Webrtc worked whereas speex echo cancelation didn't,

I'm also using the silk codec! Works awesome. Silk 24 for wifi and Silk 12 or 16 for 3g.:victory:
[Nexus 4 General] ShinnAsuka:
has anyone had to restart the asterisk server to get sip to work from day to day? I just tried calling and the call goes through but when the other side picks up, my phone still continues ringing. Restarting the asterisk server through linux cli by using amportal restart as root user solves the problem.

just wondering if any one else has had this kind of issue.

one other question: do any of you upgrade or install the additional modules listed under FreePBX notices?
[Nexus 4 General] acegolfer:
Thank you. I have included this in the Tips/Tricks. Will test it out when I get a chance.
[Nexus 4 General] acegolfer:
about 2 months ago, upgrading some modules killed my system. I had to rebuild from scratch and never upgraded any modules. But I'm sure upgrading has been fixed since then.
[Nexus 4 General] ryuker:
I would suggest upgrading first before starting the setup but ding it after may be fine.

I've upgraded a few times and sometimes it broke my google motif.

I would restart the installation and pick the green AMI....upgrade first and then do the setup.

---------- Post added at 06:24 PM ---------- Previous post was at 05:46 PM ----------

One more thing....need to text echo and call quality?

Dial *43 and it will do an automated test using your PBX setup:victory:

Lastly, get the android app speed test. I get consistently good speeds but from my work location I get a whooping 682 ping once....nobody could hear me!:p Using speed test can diagnos whether it's your setup or just piss poor speed in your location.
[Nexus 4 General] ryuker:
MOAR tips:

Dial *43 to test out your echo and voice quality

In Google voice, if you disable forward calls to Gmail/Ghat....it will just forward them to your mobile phone number but you can dial out with SIP/VOIP. I'm not sure if you use minutes receiving calls.

Here's how to change the default password(Linux CLI): most of the FreePBX or Piaf password online guides do not work for changing the default. You might want to get Fail2ban to prevent attempts at hacking the password; I will mess with that soon enough!

http://linuxadmin.melberi.com/2010/04/how-to-change-trixbox-maint-password.html#.UcSwnB9-5gR

To change thedefault maint password

Login to trixbox through ssh or local shell

To change maint password type(this did not work for my installation)

#passwd-maint

or

go to ht password directory

#cd /usr/local/apache/passwd

#htpasswd wwwpasswd maint

type the new maint password

Change trixbox wwwadmin password

To change wwwadmin password

#htpasswd wwwpasswd wwwadmin

Type the new wwwadmin password
[Nexus 4 General] ShinnAsuka:
does the echo test work over mobile data for you? When I try to do it over mobile data I get a 488/not acceptable here.

Also, looks like incoming calls don't work for me over mobile data. Maybe its because the signal is only a bar or two. I'm on 4g if that makes any difference.

EDIT: Looks like enabling all the silk codecs under slow made it work. need to test it some more lol...
[Nexus 4 General] ShinnAsuka:
Anyone have experience using this system with a Bluetooth headset?
[Nexus 4 General] ryuker:
Haven't tried, but I can't see why it would be a problem(do SIP codecs matter for bluetooth?) unless your bluetooth device had existing voice issues already. Try it and let us know how it works. :D