Summary: | ASTERISK-23426: sip show peers became empty in realtime after reload or sip reload | ||
Reporter: | Ahmed ZRIBI (zribiahmed) | Labels: | |
Date Opened: | 2014-03-06 03:30:41.000-0600 | Date Closed: | 2014-03-06 07:02:10.000-0600 |
Priority: | Critical | Regression? | |
Status: | Closed/Complete | Components: | |
Versions: | 11.2.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | OS:Debian wheezy Asterisk 11.2-cert2 built by root @ debian on a x86_64 running Linux on 2014-01-28 11:20:41 UTC | Attachments: | ( 0) sip.conf |
Description: | When i use peers in realtime after "sip reload", or "reload" the display of "sip show peers" became empty result.
{noformat} debian*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status Description Realtime 109/109 192.168.12.27 D 5060 OK (1001 ms) Cached RT 1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline] debian*CLI> reload [2014-03-06 10:26:45.730] NOTICE[19824]: app_queue.c:7712 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action. [2014-03-06 10:26:45.731] NOTICE[19824]: pbx_ael.c:165 pbx_load_module: Starting AEL load process. [2014-03-06 10:26:45.732] NOTICE[19824]: pbx_ael.c:178 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [2014-03-06 10:26:45.733] NOTICE[19824]: pbx_ael.c:181 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [2014-03-06 10:26:45.734] NOTICE[19824]: pbx_ael.c:188 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [2014-03-06 10:26:45.736] NOTICE[19824]: pbx_ael.c:193 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [2014-03-06 10:26:45.736] NOTICE[19824]: pbx_ael.c:196 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. debian*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status Description Realtime 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] {noformat} | ||
Comments: | By: Ahmed ZRIBI (zribiahmed) 2014-03-06 04:05:04.875-0600 This is my sip.conf configuration By: Michael L. Young (elguero) 2014-03-06 07:00:22.515-0600 This is correct behavior for dynamic realtime peers. A sip reload unloads the peers from memory. Once a peer updates their registration or a call to an unexpired peer is made, the peer is then loaded into memory for the realtime database. If you want to load a peer into memory after a reload, you need to run the CLI command "sip show peer <peername> load" which will then load the peer from the realtime database into memory. |