Can someone tell me what this is about? Asterisk seems to be 'losing'
peers. Usually when a peer isn't known (such as when you first start
Asterisk), Asterisk will do a database lookup and find the peer, and then seed
them.
I tried to dial 3254101, and I get the error below. I ran an ngrep and Asterisk
isn't even doing a database query to find the peer. Why would it be doing
this? It's almost as if Asterisk is expiring the phone before the phone
re-registers. The phone is registering with a 900s expirey period. Asterisk has
maxexpirey=3600 and defaultexpiry=900 in sip.conf. When the phone re-registers,
Asterisk repopulates the peer with it's IP address.
*CLI>
-- Executing Dial("SIP/3254101-6a9f",
"SIP/3254103|20|tr") in new stack
Aug 18 11:59:05 NOTICE[29503]: app_dial.c:1040 dial_exec_full: Unable to create
channel of type 'SIP' (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/3254101-6a9f' status is
'CHANUNAVAIL'
*CLI>
*CLI>
*CLI> sip show peer 3254101
* Name : 3254101
Secret : <Set>
MD5Secret : <Not set>
Context : test-in
Subscr.Cont. : <Not set>
Language : en
Accountcode : 3254101
AMA flags : Unknown
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup : 1
Mailbox : 3254101@voicemail
VM Extension : asterisk
LastMsgsSent : 1
Call limit : 0
Dynamic : Yes
Callerid : "Elvis Presley" <5551215>
Expire : 42
Insecure : no
Nat : RFC3581
ACL : No
CanReinvite : No
PromiscRedir : No
User=Phone : No
Trust RPID : No
Send RPID : Yes
DTMFmode : rfc2833
LastMsg : 0
ToHost :
Addr->IP : (Unspecified) Port 0
Defaddr->IP : 0.0.0.0 Port 5060
Def. Username: 3254101
SIP Options : (none)
Codecs : 0xc (ulaw|alaw)
Codec Order : (ulaw,alaw)
Status : Unmonitored
Useragent :
Reg. Contact :
*CLI>
*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
3254103/3254103 (Unspecified) D 0 Unmonitored
3254101/3254101 (Unspecified) D 0 Unmonitored