Newbie requesting help

I would appreciate it if someone would look at the enclosed log and advise me as to why I get “request sent” but never actually get registered.

1)I have followed the providers exact instructions for setting up the trunks

  1. I have forwarded all the required ports to my asterisk server

  2. I am using a static ip

But no matter which provider I trunk to I just can’t seem to get registered

any help appreciated

e[Kpbx*CLI> sip se
Retransmitting #6 (no NAT) to 64.2.142.13:5060:
REGISTER sip:inbound7.vitelity.net SIP/2.0
Via: SIP/2.0/UDP 72.80.40.71:5060;branch=z9hG4bK47ff6215;rport
From: sip:jjsmd@inbound7.vitelity.net;tag=as5f7b9e63
To: sip:jjsmd@inbound7.vitelity.net
Call-ID: 7b42f8c97c1d4315020b91eb66598b33@127.0.0.1
CSeq: 105 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: sip:s@72.80.40.71
Event: registration
Content-Length: 0

e[Kpbx*CLI> sip set debug

pbx*CLI>
SIP Debugging re-enabled

e[Kpbx*CLI>
REGISTER 12 headers, 0 lines
Reliably Transmitting (no NAT) to 216.235.152.230:5060:
REGISTER sip:sip.aretta.net SIP/2.0
Via: SIP/2.0/UDP 72.80.40.71:5060;branch=z9hG4bK2b26dcb3;rport
From: sip:pwckfn@sip.aretta.net;tag=as7e388cdd
To: sip:pwckfn@sip.aretta.net
Call-ID: 28bebb062ef48a7c46842c930b8caf7d@127.0.0.1
CSeq: 106 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: sip:s@72.80.40.71
Event: registration
Content-Length: 0

Since you are forwarding ports that tells me you are likely using NAT. Few things to check.

Make sure that the firewall on the asterisk server is allowing the ports you are forwarding to it. That is the likely issue.

Once you can get the call established, you may have 1 way audio etc unless you make sure the following settings in sip.conf are right.

externip
localnet
nat=yes set on your provider peers.

I have disabled the firewall on the asterisk server

I also have

externip
localnet
nat=yes set on your provider peers

set correctly.

Something is blocking inbound 5060 on your server…

[code]nmap -v -PU -p 5060 72.80.40.71

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-05-28 15:29 EDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -P0
Nmap finished: 1 IP address (0 hosts up) scanned in 2.048 seconds
Raw packets sent: 2 (56B) | Rcvd: 0 (0B)

[/code]

Here is a scan going to my internal server.

[code]nmap -v -PU -p 5060 192.168.175.97

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-05-28 15:29 EDT
DNS resolution of 1 IPs took 0.00s.
Initiating SYN Stealth Scan against *.hostname.removed (192.168.175.97) [1 port] at 15:29
The SYN Stealth Scan took 0.00s to scan 1 total ports.
Host *.hostname.removed (192.168.175.97) appears to be up … good.
Interesting ports on *.hostname.removed (192.168.175.97):
PORT STATE SERVICE
5060/tcp closed sip

Nmap finished: 1 IP address (1 host up) scanned in 0.047 seconds
Raw packets sent: 1 (44B) | Rcvd: 2 (84B)[/code]

is there any way to use a port other then 5060?

In case my ISP is blocking it?