<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<section id="speeddial.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
    <sectioninfo>
    </sectioninfo>

    <title>Functions</title>

    <section id="sd_lookup">
	<title>
	    <function>sd_lookup(table)</function>
	</title>
	<para>
	    Print a formated message using LOG function.
	</para>
	<para>Meaning of the parameters is as follows:</para>
	<itemizedlist>
	    <listitem>
		<para>
		    <emphasis>table</emphasis> - The name of the table storing
		    the speed dial records.
		</para>
	    </listitem>
	</itemizedlist>
	<example>
	    <title><function>sd_lookup</function> usage</title>
	    <programlisting>
...
if (uri =~ "sip:[0-9]{2}@.*") {
    sd_lookup("speeddial");
}
...
	    </programlisting>
	</example>
    </section>
</section>
