No CLI output

I have a new Asterisk server (1.6.2.12) up and running, and configured my sip.conf and extentions.conf for two Polycom phones.
The issue I am having is that I do not see any output in the asterisk console when I try to register these phones. Nothing??
I have verbosity set to 7 and have done a core set debug 99.
I can ping the phones from the server.
I have gone over the configs on the phones and server and can’t see any errors.

I am a newbie to * and trying to learn as I go, any help would be great.

Cheers!
Dave

Sounds like a firewall issue is preventing Asterisk from seeing the requests.

The thing is the phones and server are all on the same subnet so a FW should not make a difference.
Or is there a FW built in when I install *?

What command do I type to to make sure my server is running?
When I log in with asterisk -vvvvvvr I don’t see any errors.

Cheers!
Dave

asterisk -r only works if the server is running.

You need to provide a SIP protocol trace.

Good point - are you even looking at the Asterisk CLI? Try asterisk -vvvvvvc

Here is what I see when I run it as per Batrams:

[root@localhost ~]# asterisk -vvvvvvvvc
Asterisk 1.6.2.11, Copyright © 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
== Parsing ‘/etc/asterisk/extconfig.conf’: == Found
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use ‘asterisk -r’ to connect.
[root@localhost ~]#

So this would tell me that * is running, right?

When I connect with asterisk -vvvvvvvr and then reset a phone and try a call I get this output:

[root@localhost ~]# asterisk -vvvvvvvr
Asterisk 1.6.2.11, Copyright © 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
== Parsing ‘/etc/asterisk/extconfig.conf’: == Found
Connected to Asterisk 1.6.2.11 currently running on localhost (pid = 24376)
Verbosity was 3 and is now 7
localhost*CLI>

No output from the console that the phones are trying to register or failed call or anything?

Dave

If you see nothing on the command line when the requests are made then I’d guess that they’re not getting there… maybe you have the wrong IP for the server in the phones or a firewall issue for example?

So I rechecked that and still not working.
I have the correct IP for the hosts and server.
Server can ping phones. Phones and server are all plugged in to the same switch sitting on my desk, so I know there is no networking issue. I re-checked the switch and they are all on the same vlan.

Still cannot see the IP phones?

Dave

Just for fun, try

to rule out firewall issues

I have never used a Linux FW before, how does this look?

[root@localhost ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all – 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all – 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all – 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp – 0.0.0.0/0 0.0.0.0/0 icmp type 255
ACCEPT esp – 0.0.0.0/0 0.0.0.0/0
ACCEPT ah – 0.0.0.0/0 0.0.0.0/0
ACCEPT udp – 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp – 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:631
ACCEPT all – 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
REJECT all – 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
[root@localhost ~]#

Looks like this may be your issue - you can try flushing all the rules and trying again: http://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html

Yeah!
Thanks batrams, that was the ticket.

Cheers!
Dave
Remember you were all once as green as I am today…but learning!

Sooooo…

Now I have the one phone registered (AAstra) but still cannot get the Polycom to register?

[root@localhost init.d]# iptables -L -n
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

localhost*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
aastra/aastra 10.7.7.69 D 5060 Unmonitored
polycom (Unspecified) D 5060 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]

Dave

you may want to use ngrep - it traces the packets before the firewall, so you know what’s reaching your nic:

ngrep -d eth0 port 5060

J.

I don’t seem to have ngrep. How do I install it?

[root@localhost asterisk]# yum install ngrep
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

??
Dave

a bit of googling with ngrep & your distro name should help !

maybe there:
packages.sw.be/ngrep/

its a pretty simple package ! no dependencies