<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Hi Paul,<br><br>Thanks very much for your help on this. Now I know what to replace with this parrametter.<br><br>Kind regards,<br><br>Al<br><div><div id="SkyDrivePlaceholder"></div>> Date: Thu, 17 May 2012 20:01:35 +0100<br>> From: paul@cupis.co.uk<br>> To: freeswitch-users@lists.freeswitch.org<br>> Subject: Re: [Freeswitch-users] Help on Explaination of the configurations parrametters<br>> <br>> On 17/05/12 02:50, Albert Nguyen wrote:<br>> > I am new to FS and trying to setup a SBC using the example 2 in the FS<br>> > wiki website. The link is<br>> > http://wiki.freeswitch.org/wiki/SBC_FreeSWITCH_Configuration_Example_2.<br>> ><br>> > There are parameters in the example that I have to replaces for it to<br>> > work with my own scenarios. However I have problem understanding the<br>> > following lines. Is there anyone able to explain what does this mean<br>> ><br>> > <condition field="${sip_redirect_contact_0}"<br>> > expression="(((192.168.)|(172.24.)|(10.10.))\d+\.\d+(:\d+)(;dtg=\w+)?)"><br>> ><br>> > The bits I am not sure is )\d+\.\d+(:\d+)(;dtg=\w+)?). What does this do?<br>> <br>> This will match certain (IPv4) IP addresses, with ports specified:<br>> <br>> 192.168.x.x:y<br>> 172.24.x.x:y<br>> 10.10.x.x:y<br>> <br>> optionally ending in:<br>> <br>> ;dtg=xxxx<br>> <br>> In the given example, the rest of the XML is executed conditionally on <br>> this match. If the sip_redirect_contact_0 matches the expression, then <br>> the <actions> are executed, otherwise the <anti-action> is executed.<br>> <br>> Regards,<br>> <br>> _________________________________________________________________________<br>> Professional FreeSWITCH Consulting Services:<br>> consulting@freeswitch.org<br>> http://www.freeswitchsolutions.com<br>> <br>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> http://www.cudatel.com<br>> <br>> Official FreeSWITCH Sites<br>> http://www.freeswitch.org<br>> http://wiki.freeswitch.org<br>> http://www.cluecon.com<br>> <br>> Join Us At ClueCon - Aug 7-9, 2012<br>> <br>> FreeSWITCH-users mailing list<br>> FreeSWITCH-users@lists.freeswitch.org<br>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> http://www.freeswitch.org<br></div>                                            </div></body>
</html>