<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
On Tue, 2010-03-02 at 11:32 +0000, Ishfaq Malik wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
If you are changing RealTime config in your DB you need to do a sip
prune realtime either directly from asterisk cli or using AMI. You
really do not need to do a SIP reload when changing the config of one
sip extension.
</PRE>
</BLOCKQUOTE>
I notice that after a "sip prune realtime all" I also loose all of my realtime sip peers. Same result actually as with "sip reload".<BR>
<BR>
I close the softphone of gerrie2 (becomes unspecified)<BR>
<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">asterisk*CLI> sip show peers</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">Name/username Host Dyn Nat ACL Port Status Realtime </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">gerrie005/gerrie005 192.168.1.106 D N 5060 OK (4 ms) Cached RT </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">gerrie002/gerrie002 (Unspecified) D N 0 UNKNOWN Cached RT </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">gerrie001/gerrie001 192.168.1.105 D N 5060 OK (11 ms) Cached RT</FONT></FONT><BR>
<BR>
I prune the realtime peers to no longer have gerrie002 in cache :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">asterisk*CLI> sip prune realtime all</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">3 peers pruned.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">2 users pruned.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Mar 2 15:42:19] NOTICE[32498]: chan_sip.c:16612 sip_poke_noanswer: Peer 'gerrie001' is now UNREACHABLE! Last qualify: 91</FONT></FONT><BR>
<BR>
The realtime peers are all gone :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">asterisk*CLI> sip show peers</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">Name/username Host Dyn Nat ACL Port Status Realtime </FONT></FONT><BR>
<BR>
Internal call fails :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Mar 2 15:46:38] WARNING[558]: app_dial.c:1272 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Mar 2 15:46:38] == Everyone is busy/congested at this time (1:0/0/1)</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Mar 2 15:46:38] == Auto fallthrough, channel 'SIP/gerrie001-09f631e0' status is 'CHANUNAVAIL'</FONT></FONT><BR>
<BR>
I re-register 2 softphones (gerrie001 & gerrie005) :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">asterisk*CLI> sip show peers</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">Name/username Host Dyn Nat ACL Port Status Realtime </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">gerrie002/gerrie002 (Unspecified) D N 0 UNREACHABLE Cached RT </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">gerrie001/gerrie001 192.168.1.105 D N 5060 OK (11 ms) Cached RT </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">gerrie005/gerrie005 192.168.1.106 D N 5060 OK (7 ms) Cached RT </FONT></FONT><BR>
<BR>
The SIP-peer 'gerrie002' is still in the cache ! Don't know where this is coming from ??<BR>
<BR>
I prune again :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">asterisk*CLI> sip prune realtime all</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">3 peers pruned.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">1 users pruned.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Mar 2 15:51:57] NOTICE[32498]: chan_sip.c:16612 sip_poke_noanswer: Peer 'gerrie001' is now UNREACHABLE! Last qualify: 11</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Mar 2 15:51:57] NOTICE[32498]: chan_sip.c:16612 sip_poke_noanswer: Peer 'gerrie001' is now UNREACHABLE! Last qualify: 11</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Mar 2 15:52:01] NOTICE[32498]: chan_sip.c:16612 sip_poke_noanswer: Peer 'gerrie001' is now UNREACHABLE! Last qualify: 11</FONT></FONT><BR>
<BR>
And again no more peers until I re-register :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">asterisk*CLI> sip show peers</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">Name/username Host Dyn Nat ACL Port Status Realtime </FONT></FONT><BR>
<BR>
<BR>
This realtime thing isn't really working out here... What exactly do I need to do to clear the cache and thus the old SIP-peers so they can no longer be used ??<BR>
<BR>
Jonas.
</BODY>
</HTML>