526
526
</programlisting>
529
<section id="cfgutils.f.check_route_exists">
530
<title><function moreinfo="none">check_route_exists(route)</function></title>
532
Check if a route block exists
534
<para>Parameters:</para>
536
<quote>name</quote> of a route block in the config file, like <quote>route[FROGJUMP]</quote>
539
This function can be used from any route. You can only check for
540
route[] blocks, not reply, event or other routes.
543
<title><function moreinfo="none">check_route_exists()</function> usage</title>
544
<programlisting format="linespecific">
546
if(check_route_exists("FROGJUMP") {
547
$var(jumping_frogs) = 1;
553
<section id="cfgutils.f.route_if_exists">
554
<title><function moreinfo="none">route_if_exists(route)</function></title>
556
Execute a routing block only if it is defined. If it's not defined, silently
557
move to the next action in the configuration script.
559
<para>Parameters:</para>
561
<quote>name</quote> of a route block in the config file, like <quote>route[FROGJUMP]</quote>
564
This function can be used from any route. You can only execute it for
565
route[] blocks, not reply, event or other routes.
568
<title><function moreinfo="none">route_if_exists()</function> usage</title>
569
<programlisting format="linespecific">
571
route_if_exists("PRESENCE_SANTA_CLAUS");
576
<section id="cfgutils.f.core_hash">
530
577
<title><function moreinfo="none">core_hash(string1, string2, size)</function></title>
532
579
Exported function that enables the core_hash() function to be used
572
619
should be changed as in the functions available in the routing
622
<section id="cfgutils.m.rand_set_prob">
576
623
<title><function moreinfo="none">rand_set_prop</function></title>
578
625
Set the probability value to the given parameter.