<div dir="auto">Look at the avp_db_query function.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 30, 2018, 2:27 AM Alexander Perkins <<a href="mailto:alexanderhenryperkins@gmail.com">alexanderhenryperkins@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi. I've been trying to figure out how to insert a statement into MySQL from the opensips.cfg file and I am having a hard time. Basically, I am checking the userblacklist and would like to insert into a MySQL table when that number is attempted. Is that possible? I've already successfully loaded the db_mysql module. Here's the line I am referring to:<div><br></div><div><div> if (check_blacklist("BlackList"))</div><div> sl_send_reply("403", "Forbidden");</div><div> #I would like to have something here like INSERT INTO Attempts(User) Value($rU)</div><div> exit;</div></div><div><br></div><div>Any help is appreciated,</div><div>Alex</div><div><br></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>