Help with sip trunk

Good day,

Please please could some one help me,

I have been struggling the whole of the last week to try and get a clients sip trunk working.

It is receiving calls happily, but the outgoing calls seem to come and go weirdly enough. They work some times and then it stops working for a while.

It gives me the congestion message?

I only have one sip trunk (the one i’m trying to set-up now) which support multiple concurrent calls, and the sip provider is saying that ti must be my configuration, and they don’t provide support for 3rd party applications.

Please please could someone help me out.

Here is my config for the trunk:

Outgoing:

host=sip.nexus.co.za
username=27870000000
secret=password
type=peer
fromuser=27870000000
outboundproxy=sip.nexus.co.za
insecure=invite
qualify=yes
disallow=all
allow=alaw,ulaw,gsm

Incoming:

secret=password
type=user
context=from-trunk
host=sip.nexus.co.za
username=27870000000
fromuser=27870000000
outboundproxy=sip.nexus.co.za
insecure=invite
disallow=all
allow=alaw,ulaw,gsm

I have added the following to my SIP configuration:

registerattempts=0

and I have configured the NAT, but as far as I understand that only applies for the incoming?

NAT is as follows:

NAT: route
IP Config: Dynamic IP
Dynamic host: blah.dyndns.org
local networks: 192.168.1.0 / 255.255.255.0

What am I missing here?

Anyone?

From their 3CX setup guide:
Credentials:
User: [You VoIP number, eg. 27870010000]
ID: [You VoIP number, eg. 27870010000]
Password: [Your VoIP password as provided by Nexus]

Server Settings:
Use As: [SIP Account]
Local PBX IP: 196.28.95.12
External PBX IP: 196.28.95.12
PBX Port: 5060
Stun: [blank]
Proxy: [blank]

Integration:
Record Calls [off]
Phonebook “+” to: 00
Phonebook prefix: [blank]

Network:
Local SIP port: 5065
First RTP port: 4000
TCP transport: [off]
NAT Helper: [on]

Audio Options:
Echo Cancellation: [on]

Audio Codecs:
GSM: [on]
G.711 (alaw): [on]
G.711 (ulaw): [on]
G.722: [off]
Speex: [off]

So you will want to match this in your settings.

Thank you very much for your response and especially your effort in locating their 3CX guide, I have looked at that before when trying to find settings. Do my settings (listed in initial post) not respond to theirs? I am using freepbx to try and connect the trunk (if I never stated that previously)

The main concern I am having is that, the trunk is registering and connecting like everything is fine, Just when I call its giving me the congestion message? As I don’t really know the internals of freepbx, What would cause the trunk to register, connect etc. but then on outgoing calls it gives me the congestion message. Which to me means that in the outbound route, the sip trunk is not offering up its available channels, And the outbound route says oh I cant handle this message?

After much fighting with nexus they gave me this: (which is what I have based my initial config on.)

In general however you sip.conf file should look something to the effect of below:
[general]
localnet=192.168.0.0/255.255.255.0
bindaddr=192.168.0.XYZ
nat=route
context=DEFAULT
qualify=yes
register => 2787001XXXX:[email protected]
callerid=Your Name
allow=alaw,ulaw,gsm
tos_sip=cs3
tos_audio=ef
tos_video=cs4
tos_iax=cs3

[voip]
type=peer
callerid=Your Name
secret=PASSWORD
username=2787001XXXX
fromuser=2787001XXXX
outboundproxy=sip.nexus.co.za
host=sip.nexus.co.za
insecure=invite
allow=alaw,ulaw,gsm

End of message,

But something some where is not hundreds

Post the trace of a failed call.

Seem as though my web interface just randomly disappeared.
Where can I find the specific log which will contain that data?

Sorry for the noob question