Phones won't dial

I’m setting up a test server with two SIP phones and an asterisk box. So far I installed CentOS 5, asterisk 1.4.22, libpri-1.4.8 and zaptel-1.2.27

I installed everything using the instructions from the asterisk book and had no errors.
I set up my extensions.conf, sip.conf, voicemail.conf, which I will post below.

The problem is that I can’t call from one phone to the other or dial into voicemail. The display on the phones say “Bad Address” regardless of what number I dial.

Here are my .conf files

Extensions.conf

[globals]

[general]
autofallthrough=yes

[default]
exten => s,1,Verbose(1|Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()

[incoming_calls]

[internal]
exten => 500,1,Verbose(1|Echo test application)
exten => 500,n,Echo()
exten => 500,n,Hangup()

include => internal

[phones]
include => internal
exten => 300,1,Dial(SIP/300,20)
exten => 300,2,VoiceMail(300,u)

exten => 301,1,Dial(SIP/301,20)
exten => 301,2,VoiceMail(300,u)

exten => 2999,1,VoiceMailMain(${CALLERID(num)},s)

sip.conf

[general]

[300]
type=friend
context=phones
host=192.168.1.2
secret=******

[301]
type=friend
context=phones
host=192.168.1.3
secret=******

So if anyone can tell me why my phones can’t make a test call to each other please let me know.

Bump

What happens when you go

in the asterisk cli?

It should show something like this:

box*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status Realtime xxx70x5555/xxx70x5555 (Unspecified) D N 0 Unmonitored link2voip-sw2/box1 66.51.110.xxx 5060 OK (19 ms) link2voip-sw1/box2 66.51.127.xxx 5060 OK (13 ms) 3 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 1 offline]

If it shows nothing, or doesn’t show your phones, your phones aren’t registering!

[quote=“Mark_Logan”]What happens when you go

in the asterisk cli?

It should show something like this:

box*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status Realtime xxx70x5555/xxx70x5555 (Unspecified) D N 0 Unmonitored link2voip-sw2/box1 66.51.110.xxx 5060 OK (19 ms) link2voip-sw1/box2 66.51.127.xxx 5060 OK (13 ms) 3 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 1 offline]

If it shows nothing, or doesn’t show your phones, your phones aren’t registering![/quote]

This is What I get.

localhost*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
301 192.168.1.3 5060 Unmonitored
300 192.168.1.2 5060 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]

The phones show up but it says 0 online. So are they registered or not? It’s showing the correct extensions and IP’s.

They’re online. They are just “unmonitored”

When you try to call from 301 to 300 what pops up in the CLI?

[quote=“Mark_Logan”]They’re online. They are just “unmonitored”

When you try to call from 301 to 300 what pops up in the CLI?[/quote]

Nothing comes up in the CLI. I reconnect with vvv and vvvv because I have no idea how verbose I need it to be and either way nothing happens.

Sounds like it could be a SIP phone problem (not Asterisk). Double-check the configuration of the SIP phones themselves. If in doubt, test with a different SIP phone (plenty of free softphones around).

Also check your firewall/SeLinux settings.

edit: Actually, what am I thinking. Start with what was mentioned above. Then check firewall settings. But, it really sounds like your phones are just shooting to the wrong place.