<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Lucida Bright";
        panose-1:2 4 6 2 5 5 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.E-postmall18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=SV link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You need to escape the dots, ie 192\.168\.4\.10. That should make things work as expected.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>/Peter<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Från:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>För </b>sharad<br><b>Skickat:</b> den 29 juni 2011 09:47<br><b>Till:</b> freeswitch-users@lists.freeswitch.org<br><b>Ämne:</b> [Freeswitch-users] SIP Profile<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>Hi,</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>I want my FS to entertain only those calls which are coming from a specific IP address . </span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>For this, I have defined a profile in vars.xml as </span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'> <X-PRE-PROCESS cmd="set" data="profile_00=192.168.4.10"/>.</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'> & another line in public.xml as </span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'> <extension name="transfer_to_context_01"></span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'> <condition field="${sip_from_host}" expression="$${profile_00}"></span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'> <action application="transfer" data="${destination_number} XML sharad"/></span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'> </condition></span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'> </extension></span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>As per my understanding, if call is coming from 192.168.4.10, that call should be processed as per the context `sharad'.....correct ?</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>Yes, it works like this. Upto here all is ok.</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>But if the call is coming from 192.168.100 - 192.168.4.109, these calls also are processed as per context `sharad'. </span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>Means entire IP is not matched by condition field. </span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>Is there any solution for this. </span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>Requesting all of you to help me in this regard.</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>Regards</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:10.0pt;font-family:"Lucida Bright","serif"'>Sharad</span><span lang=EN><o:p></o:p></span></p></div><p class=MsoNormal>!DSPAM:4e0ada5632766217057301! <o:p></o:p></p></div></body></html>