Cannot connect to SIP account

Hi,
I’ve installed asterisk 10.7.0.1 and configure my sip.conf as :

[general]
transport=udp

[friends_internal](!)
type=friend
host=dynamic
context=from-internal
disallow=all
allow=ulaw

[demo-alice](friends_internal)
secret=verysecretpassword ; 

[demo-bob](friends_internal)
secret=othersecretpassword ; 

and extension.conf as :

[from-internal]
exten=>6001,1,Dial(SIP/demo-alice,20)
exten=>6002,1,Dial(SIP/demo-bob,20)

but I cannot connect to any of these SIP account… There is no out put in the asterisk consol nor in the asterisk log message.
Your help will be appreciate.

Check your firewall and angle the sip debug.

My serveur is on internet and My provider has assure me there is no firewall blocking SIP traffic.
regards.

In that case, provide the SIP debug output.

asterisk -rvvvvvvvvv
sip set debug on

I try to reconnect the softphone nothing appear in the console and in log message file.
regards.

In that case nothing is getting to port 5060 on the Asterisk machine. You need to check firewalls (including on the machine itself, routers, and the addresses used).

[root@vps2708-cloud ~]# telnet localhost 5060
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

it seem that sip port is not reachable even from the server itself.
regards.

SIP is normally UDP.

(It can be used as TCP, but you need to explicitly enable that.)

Hi, I’ve issue nmap on a linux-pc from my network here is the output:

[root@localhost ~]#  nmap -sU -p5060 serveur_ip

Starting Nmap 5.51 ( http://nmap.org ) at 2014-06-06 15:38 GMT
Nmap scan report for vps2708-cloud (serveur_ip)
Host is up (0.61s latency).
PORT     STATE         SERVICE
5060/udp open|filtered sip

Nmap done: 1 IP address (1 host up) scanned in 8.95 seconds

It seem that SIP port is reachable from my network, so why my softphone cannot connect?
regards.

Hi,
Still have the same probleme, I’m trying to connect from my office witch has different internet provider… And I’ve desable Antivirus and windows firewall. But I still having the same problem.
Any SIP phone(X-Lite and Zoiper) can connect. :’(
regards

Maybe your ISP block the regular VoIP ports try to change the defaults and try again.

And provide the output of:

netstat -punta from your PBX
iptables -nL from your PBX.
And nmap -sU -p5060 yourpublicip from your PC.

Hi, here is the netstat -punta from my PBX :

[root@vps2708-cloud ~]# netstat -punta
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      699/snmpd
tcp        0      0 0.0.0.0:2000                0.0.0.0:*                   LISTEN      12764/asterisk
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      711/sshd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      795/master
tcp        0     52 92.39.246.150:22            41.66.32.16:43130           ESTABLISHED 16445/sshd
tcp        0      0 :::22                       :::*                        LISTEN      711/sshd
udp        0      0 0.0.0.0:5000                0.0.0.0:*                               12764/asterisk
udp        0      0 0.0.0.0:161                 0.0.0.0:*                               699/snmpd
udp        0      0 0.0.0.0:2727                0.0.0.0:*                               12764/asterisk
udp        0      0 0.0.0.0:4520                0.0.0.0:*                               12764/asterisk
udp        0      0 0.0.0.0:5060                0.0.0.0:*                               12764/asterisk
udp        0      0 0.0.0.0:4569                0.0.0.0:*                               12764/asterisk
udp        0      0 92.39.246.150:123           0.0.0.0:*                               719/ntpd
udp        0      0 127.0.0.1:123               0.0.0.0:*                               719/ntpd
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               719/ntpd
udp        0      0 fe80::216:3eff:fecd:770e:123 :::*                                    719/ntpd
udp        0      0 ::1:123                     :::*                                    719/ntpd
udp        0      0 :::123                      :::*                                    719/ntpd

iptables -nL from my PBX :

[root@vps2708-cloud ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@vps2708-cloud ~]#

And nmap -sU -p5060 yourpublicip from my PC


D:\nmap>nmap -sU -p5060 92.39.246.150

Starting Nmap 6.46 ( http://nmap.org ) at 2014-06-10 21:15 Greenwich
Nmap scan report for vps2708-cloud.dns26.com (92.39.246.150)
Host is up (0.16s latency).
PORT     STATE         SERVICE
5060/udp open|filtered sip

Nmap done: 1 IP address (1 host up) scanned in 12.86 seconds

D:\nmap>

Also I’ve change the internet provider and got the same issue

Hi,
I still waiting for solution :cry:

I think you have reached the point where you need to hire a local consultant.