How do Asterisk Config files work?

Hello Everyone,

I know this may sound like a silly question but can someone point me to a tutorial about Asterisk config files?

My question is that what has to be in a config file for Asterisk to use it properly. Where and or how does it know that the line is configuration vs comments and etc.

For example:

[mysipprovider-out]
type=peer
secret=password
username=2345
host=sipserver.mysipprovider.com
fromuser=2345
fromdomain=fwd.pulver.com
canrenvite=no
insecure=very
qualify=yes
nat=yes

Could all of these lines be seperated like this:
[mysipprovider-out]

type=peer

secret=password

username=2345

host=sipserver.mysipprovider.com

fromuser=2345

fromdomain=fwd.pulver.com

canrenvite=no

insecure=very

qualify=yes

nat=yes

And if some of the above lines were missing, what would Asterisk do? Would it try to use whatever settings were there or would it just be invalid?

Thanks so much for your help. Sorry if this question sounds trivial.

Jesse

Take a look to voip-info.org/, there is a lot of information here, in the book: “Asterisk the future of telephonyâ€