New phone drops incomming calls

I have added a new Aastra 480i to our small network. All the other phones are Aastra 9133i.

When I try to ring the new phone the call is always dropped after about 2 seconds. If I call out from the phone it’s fine.

I cannot, for the life of me, see any difference in the setup of the new phone but it always does it. The only clue I have is in the error log:

-- Executing Macro("SIP/12-0a0b7d80", "internal|16|12") in new stack -- Executing NoOp("SIP/12-0a0b7d80", "20090508-142726 internal to 16 from 12") in new stack -- Executing Dial("SIP/12-0a0b7d80", "SIP/16|20|tr") in new stack -- Called 16 -- Incoming call: Got SIP response 400 "Out Of Order" back from 192.168.0.14 -- Incoming call: Got SIP response 400 "Out Of Order" back from 192.168.0.18 -- Incoming call: Got SIP response 400 "Out Of Order" back from 192.168.0.10 -- Incoming call: Got SIP response 400 "Out Of Order" back from 192.168.0.17 -- Incoming call: Got SIP response 400 "Out Of Order" back from 192.168.0.19 -- SIP/16-0a0ba970 is ringing May 8 14:27:29 WARNING[14252]: chan_sip.c:4015 set_destination: Can't find address for host '16' -- SIP/16-0a0ba970 answered SIP/12-0a0b7d80 May 8 14:27:29 WARNING[14252]: chan_sip.c:4015 set_destination: Can't find address for host '16' May 8 14:27:30 WARNING[14252]: chan_sip.c:4015 set_destination: Can't find address for host '16' May 8 14:27:32 WARNING[14252]: chan_sip.c:4015 set_destination: Can't find address for host '16' == Spawn extension (macro-internal, s, 2) exited non-zero on 'SIP/12-0a0b7d80' in macro 'internal' == Spawn extension (macro-internal, s, 2) exited non-zero on 'SIP/12-0a0b7d80'

I’m running Asterisk 1.2.10 on Centos 4.something. The phones all have firmware 1.4.3.23 and appear to be configured similarly.

The relevant bits of extensions.conf look like:

[code]; ###############################################################################################
; Outgoing dialplan
; ###############################################################################################

[shopfloor]
exten => t,1,Macro(TIMEOUT,${EXTEN},${CALLERID(num)})
exten => t,n,Hangup

exten => i,1,Macro(INVALID,${EXTEN},${CALLERID(num)})
exten => i,n,Hangup

exten => _1X,1,Macro(internal,${EXTEN},${CALLERID(num)})[/code]
And:

[code]; ###############################################################################################
; Outgoing call handling
; ###############################################################################################

; INTERNAL
; Dial an internal extension
; ${ARG1} = extension called
; ${ARG2} = numeric caller ID

[macro-internal]
exten => s,1,NoOp(${TIMESTAMP} internal to ${ARG1} from ${ARG2})
exten => s,n,Dial(SIP/${ARG1},20,tr)
exten => s,n,Playback(dir/u4) ; "Sorry, I’m not at my desk right now…"
exten => s,n,VoiceMail(s${ARG1}@default)[/code]

And the bit of sip.conf looks like:

[code][12]
callerid="Skivvy"
context=office
secret=password
type=friend
host=dynamic
defaultip=192.168.0.12
dtmfmode=rfc2833
mailbox=00,12
subscribecontext=hints

[16]
callerid="BossMan"
context=director
secret=password
type=friend
host=dynamic
defaultip=192.168.0.16
dtmfmode=rfc2833
mailbox=16
subscribecontext=hints[/code]

HELP!

I’ve sorted this now.

I simply forced the phone to restore it’s factory defaults and then loaded the new configuration. It seems that something somewhere hidden was upset.