<div dir="ltr"><div>Dear Support,</div><div><br></div><div>Kindly find below my Database Table (kamailio.ext). Column names are "ext" and "ip"</div><div><br></div><div>mysql> select * from ext<br>    -> ;<br>+------+----------------+<br>| ext  | ip             |<br>+------+----------------+<br>|  202 | 192.168.55.157 |<br>|  203 | 192.168.55.158 |<br>|  204 | 192.168.55.159 |<br>+------+----------------+<br>3 rows in set (0.00 sec)</div><div><br></div><div>I want to run this type of queries in kamailio. I have tried following command but no luck so far. Although I have added following line in the configuration file as well. Thanks</div><div><br></div><div>modparam("sqlops", "sqlcon", "cb=>mysql://root:123456@localhost/kamailio")</div><div><br></div><div><br clear="all"></div><div>sql_query("cb", "select ip from ext where ext=$rU", "ra");</div><div>sl_send_reply("302","$ra");</div><div><br></div><div><br></div><div>PLEASE HELP !!! when we see the traces using wireshark it shows internal error. Thanks</div><div><br></div><div>275.733635441 192.168.55.144 -> 192.168.55.157 SIP 431 Status: 302 Internal Server Error |</div><div><br>-- <br></div><div class="gmail_signature">Best Regards,<br><br>Ahmad Fuad</div>
</div>