Summary: | ASTERISK-12068: Realtime/Rtcachefriends SIP Peer is not recognized as a Realtime / Cached peer, leading to rtautoclear not working. | ||
Reporter: | Steve Poirier (mousepad99) | Labels: | |
Date Opened: | 2008-05-22 11:03:03 | Date Closed: | 2008-07-24 16:10:06 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/DatabaseSupport |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | When turning ON rtcachefriend, PEER is not recognized as a Realtime peer in Memory. rtautoclear doesn't work. sip prune still works but rtautoclear doesn't. ****** ADDITIONAL INFORMATION ****** us3*CLI> sip show peer 100085_001 * Name : 100085_001 Realtime peer: No Secret : <Set> MD5Secret : <Not set> Context : from-internal Subscr.Cont. : <Not set> Language : Accountcode : 100085_001 AMA flags : Unknown Transfer mode: open CallingPres : Presentation Allowed, Not Screened Callgroup : Pickupgroup : Mailbox : 851 VM Extension : asterisk LastMsgsSent : 0/0 Call limit : 0 Dynamic : Yes Callerid : "Steve Poirier" <5146678178> MaxCallBR : 384 kbps Expire : 41 Insecure : no Nat : Always ACL : No T38 pt UDPTL : No CanReinvite : No PromiscRedir : No User=Phone : No Video Support: No Trust RPID : Yes Send RPID : Yes Subscriptions: Yes Overlap dial : Yes DTMFmode : auto LastMsg : 0 ToHost : Addr->IP : 189.202.1.41 Port 5060 Defaddr->IP : 0.0.0.0 Port 5060 Def. Username: 100085_001 SIP Options : (none) Codecs : 0x3f1fff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|ilbc|g726aal2|g722|jpeg|png|h261|h263|h263p|h264) Codec Order : (none) Auto-Framing: No Status : Unmonitored Useragent : Zoiper for Windows rev.650 Reg. Contact : sip:100085_001@192.168.0.3:5060;rinstance=e4be8ec578cc1374 mysql> select * from tbl_sip_buddies where name='100085_001'\G; *************************** 1. row *************************** id: 0 name: 100085_001 host: dynamic nat: yes type: friend accountcode: 100085_001 amaflags: NULL callgroup: NULL callerid: "Steve Poirier" <5146678178> cancallforward: NULL canreinvite: no context: from-internal defaultip: NULL dtmfmode: auto fromuser: NULL fromdomain: NULL insecure: language: NULL mailbox: 851 md5secret: NULL deny: NULL permit: NULL mask: NULL musiconhold: NULL pickupgroup: NULL qualify: no regexten: restrictcid: NULL rtptimeout: NULL rtpholdtimeout: NULL secret: 123456 setvar: disallow: all allow: all fullcontact: sip:100085_001@192.168.0.3:5060;rinstance=e4be8ec578cc1374 ipaddr: 189.202.1.41 port: 5060 regseconds: 1211472509 username: 100085_001 relaxdtmf: yes regserver: 1 row in set (0.00 sec) Debug Log: [May 22 11:07:19] DEBUG[11993] res_config_mysql.c: MySQL RealTime: Update SQL: UPDATE tbl_sip_buddies SET ipaddr = '189.202.1.41', port = '5060', regseconds = '1211472509', username = '100085_001', fullcontact = 'sip:100085_001@192.168.0.3:5060;rinstance=e4be8ec578cc1374' WHERE name = '100085_001' | ||
Comments: | By: Steve Poirier (mousepad99) 2008-05-28 10:07:05 Same issue with SVN Asterisk SVN-branch-1.4-r115735 sip show peer when caching displays: Realtime peer: No rtautoclear doesn't work, I guess because of this. By: Tilghman Lesher (tilghman) 2008-05-28 14:40:53 I just fixed something on Sunday in 1.4 that should fix this problem, as well. Please checkout SVN branch 1.4, revision 118251 or later. By: Steve Poirier (mousepad99) 2008-05-28 16:47:36 Still same issue with 1.4 revision 118716 [root@us3 asterisk]# asterisk -rx 'sip show peer 100085_001' | head -n 4 * Name : 100085_001 Realtime peer: No Autoclear set to yes not clearing peer neither after unregistration. By: Digium Subversion (svnbot) 2008-07-24 16:09:55 Repository: asterisk Revision: 133488 U branches/1.4/channels/chan_sip.c ------------------------------------------------------------------------ r133488 | tilghman | 2008-07-24 16:09:53 -0500 (Thu, 24 Jul 2008) | 3 lines Fix rtautoclear and rtcachefriends (Closes issue ASTERISK-12068) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=133488 |