Jasit, you don’t NEED the fromuser and username settings - those are automatically taken care of for you by FreePBX when you define the extension number.
Don’t take this the wrong way, but what you are trying to do is totally the wrong way to do it. If you are going to use FreePBX as a front end, then let FreePBX manage your extensions. Take the time to learn how to do things within FreePBX as much as is possible, instead of just spending a few minutes with it, deciding you can’t get it to work, and running off and sticking settings in whatever file will accept them.
On the other hand, if you want to write your own configuration files, that’s fine too. Just install Asterisk by itself and don’t use FreePBX. But if you try to mix the two, I guarantee you that you are not going to like what happens if an upgrade comes along. For example, if you add extensions to sip_nat.conf (which is NOT the correct place to put such information), what happens when someone writes a module to manage that file, and that module throws out any information that shouldn’t be in there?
There is a proper place to place extensions that for some odd reason you can’t manage from within FreePBX, and that’s extensions_custom.conf. But it sounds to me like you get frustrated far too quickly, and instead of trying to learn the right way to do it, you do “whatever works” for the moment, not realizing that if you do that, it could very easily come back to bite you in the butt down the road.
My suggestion to you is that you decide which path you want to take. If you decide to use Asterisk alone and write your own configuration files, more power to you - I have a friend that does that and he has a very impressive system (he was also writing Linux code when he was about 12, I think, but that’s another matter). But if you want to use a front end such as FreePBX, then learn how to do things from within that front end, and don’t take expedient workarounds just because you don’t see some (probably unnecessary) setting that you saw in someone else’s configuration file.
But hey, it’s YOUR system - just don’t ask us for help with your custom configuration files, since most FreePBX users don’t do those!