I tried to use asterisk real time db, and somehow sip show peers does not show anything,
After couple of hours googleing , and found this:
rtcachefriends (global)
If is turned on, Asterisk will cache friends that come from the realtime engine, just as if they had come from . This often helps with items such as message-waiting indications on realtime peers:
rtcachefriends=yes|no
The default one seems to be no.
useful commands:
/usr/sbin/asterisk -r
realtime load sippeers name “your_sip_peer_name”
realtime mysql status
references: