Help configuring inbound lines

Inbound lines from the PTSN don’t work.

There is one completely blank inbound route that goes to extension X (to say any DID\any CID), as well as another one with my DID number as DID number.

I must admit I’m quite new to this and so is probably a configuration mistake.

There are the stuff installed on my VPS:
AsteriskNOW_1.7.1,FreePBX is 2.7.0, Asterisk 1.6.2.15,

OS is CentOS release 5.5 (Final)

The PEER details for the trunk are as follow:


username=XXXXXX
fromuser=XXXXX
type=friend
secret=itisasecret
host=incoming.future-nine.com
insecure=port,invite
nat=yes
qualify=no
context=from-trunk
allow=ulaw,g729,g726
trustrpid=yes
sendrpid=yes
canreinvite=no


Register

When I do sip show registry in the console, it does this:

sip show registry
Host                           dnsmgr Username       Refresh State                Reg.Time
incoming.future-nine.com:5060  N      XXXXX          1185 Registered  

Anybody can help?Thanks.

Also,instead of an error message I get a weird christmas informercial.

You need to set disallow=all above the allow line. Do you have g.729 licenses installed? G.729 requires paid licenses. Also I am suspect about the g.726.

Lastly if you have credentials as you do you do not want the insecure statement.