Incoming SIP calls rejected

Hi guys,

Been going round the bend trying to resolve this one:

When a call from any of my SIP trunks comes in it is rejected.

The log in Asterisk reports:

NOTICE[15485] chan_sip.c: Call from ‘AUserName’ to extension ‘68256133’ rejected because extension not found.

It is reported to the caller as an invalid number at the telco.

I am using FreePBX 2.7.04 with Asterisk 1.6

I have an inbound route defined with 68256133 as the DID

My Trunk Settings are as follows:

TrunkName AVSTrunk

disallow=all
useragent=Asterisk PBX
regseconds=180
registertimeout=20
register=MyRegistrationsText
port=5060
language=en
dtmfmode=rfc2833
context=from-pstn
bindport=5060
bindaddr=0.0.0.0
allowoverlap=no
allow=g729&ulaw&alaw
username=MyUserName
type=peer
secret=MySecret
insecure=very
host=pan.wxnz.net
fromuser=68256133
fromdomain=pan.wxnz.net
canreinvite=no

User Context: 68256133

username=68256133
type=user
secret=MySecret
fromuser=68256133
context=from-pstn

=======================================

Some of the above is probably wrong / inappropriate thanks to some judicious fluffing around trying to get the Trunk to register (now working beautifully apart from the inward bound problem) and trying to find a solution to make it work.

Thanks in advance for your suggestions and help
Andrew

Try making the trunk name 68256133 with Peer details:

username=68256133
type=peer
secret=MySecret
insecure=very
host=pan.wxnz.net
fromuser=68256133
fromdomain=pan.wxnz.net
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw
allw=g729

Don’t put anything in the user context or user details.

Register String: 68256133:[email protected]/68256133

I find this invariably works, hope it helps.

Thanks for your suggestion.

I tried that, however that seemed to break the ability to make a call.

Unfortunately it also didn’t solve the inward bound issue either.

Suggestions are still welcome!

Cheers
Andrew