<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Helvetica,Arial,sans-serif'>
<p>That's exactly what I'm after! Thanks a lot. </p>
<p> </p>
<div> </div>
<p>2013-11-08 01:03 skrev Grant Bagdasarian:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored -->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;">Take a look at: </span><a href="http://www.kamailio.org/wiki/cookbooks/4.0.x/pseudovariables">http://www.kamailio.org/wiki/cookbooks/4.0.x/pseudovariables</a><!-- o ignored --></p>
<p class="MsoNormal">It contains a list of variables you can use inside the kamailio.cfg script.<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">The modules page also provides a lot of information:<!-- o ignored --></p>
<p class="MsoNormal"><a href="http://www.kamailio.org/docs/modules/4.0.x/">http://www.kamailio.org/docs/modules/4.0.x/</a><!-- o ignored --></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"><!-- o ignored --> </span></p>
<div>
<div style="border: none; border-top: solid  #B5C4DF  1.0pt; padding: 3.0pt  0in  0in  0in;">
<p class="MsoNormal"><strong><span style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';">From:</span></strong><span style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';"> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] <strong>On Behalf Of </strong>erik@valerius.se<br /><strong>Sent:</strong> Friday, November 8, 2013 9:13 AM<br /><strong>To:</strong> sr-users@lists.sip-router.org<br /><strong>Subject:</strong> [SR-Users] Where do I place the logic for modifying auth and call requests?<!-- o ignored --></span></p>
</div>
</div>
<p class="MsoNormal"><!-- o ignored --> </p>
<p><span style="font-family: 'Helvetica','sans-serif';">Hello everyone.<!-- o ignored --></span></p>
<p><span style="font-family: 'Helvetica','sans-serif';">Some of my confusion probably comes from me coming from the web development world and not software dev, but I would greatly appreciate any response to the following question:<!-- o ignored --></span></p>
<p><span style="font-family: 'Helvetica','sans-serif';">I use the MySQL auth for my subscribers which is working great. However, let's say that I add the column "valid_until" in the subscriber table and want to check if today's date is less than the caller's valid_until value. I can set up the sqlops module without a problem and get the actual value, but I have no idea where I place the logic to compare it to a date and then pass on the OK message to Kamailio to continue the request. <!-- o ignored --></span></p>
<p><span style="font-family: 'Helvetica','sans-serif';">Is this done with embedded scripts? Or right there in the config file? Where can I find a list of what parts of the call request are exposed for customization from Kamailio?<!-- o ignored --></span></p>
<p><span style="font-family: 'Helvetica','sans-serif';">I'd greatly prefer to do things in Python or JavaScript, if that matters.<!-- o ignored --></span></p>
<p><span style="font-family: 'Helvetica','sans-serif';">Many thanks in advance!<br />Erik Eklund<!-- o ignored --></span></p>
<p><span style="font-family: 'Helvetica','sans-serif';"> <!-- o ignored --></span></p>
</div>
<!-- html ignored --><br />
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
</body></html>