<span style="font-family:verdana,sans-serif">Hi All,</span><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">I would like to create asterisk cli function like "sip show realtime all", which will display all table value (table sipfriends) on asterisk CLI.</span><br style="font-family:verdana,sans-serif">
<br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">I have configured following way,</span><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif"><b><span style="font-family:verdana,sans-serif">cat /etc/asterisk/extconfig.conf</span></b><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">[settings]</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">sipusers => mysql,general,sipfriends</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">sippeers => mysql,general,sipfriends</span><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif"><b><span style="font-family:verdana,sans-serif">cat /etc/asterisk/res_mysql.conf</span></b><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">[general]</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">dbhost=172.18.100.115</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">dbname=asterisk</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">dbuser=root</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">dbpass=password</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">dbport=3306</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">dbsock=/var/lib/mysql/mysql.sock</span><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">I had tried with ast_load_realtime/realtime_all but didn't get result.</span><br style="font-family:verdana,sans-serif">
<br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">If anyone have idea, please let me know or help me.</span><br style="font-family:verdana,sans-serif" clear="all"><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">-- </span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">Regards,</span><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">Chandrakant Solanki</span><br style="font-family:verdana,sans-serif">