<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 http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\0027Helvetica Neue\0027";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>David, Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I see that routing/permission logic is little bit complicated for just call routing/proxing, I believe there will be simpler to do all job in the database. Is there a simple way to configure FS so it will ask from the database for a destination for a call and it’s parameters (ip parameters, media parameters, rewritten numbers A and B) based on src info (A num, SRC ip, SRC media pameters) and DST num?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Georgy<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.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"'>From:</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>On Behalf Of </b>David Ponzone<br><b>Sent:</b> Tuesday, April 26, 2011 8:53 AM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] SIP router/switch only configuratoin advice?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Georgy,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>the first thing you ask is trivial.<o:p></o:p></p></div><div><p class=MsoNormal>Basically, you may have one dialplan (one context) per client endpoint.<o:p></o:p></p></div><div><p class=MsoNormal>There is 2 ways to bind a context to a client:<o:p></o:p></p></div><div><p class=MsoNormal>-if the client registers, the context is configured in the user config (in directory/)<o:p></o:p></p></div><div><p class=MsoNormal>-if the client does not register, you fall back to IP-auth. So you can add an ACL to the SIP profile, for security, and then in the dialplan for this SIP profile, you should add rules testing the SRC IP (variable network_addr in FreeSWITCH XML dialplan) and transfering to the right context.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>This way, you will have one specific context file per client, so you can have very specific routing rules per client.<o:p></o:p></p></div><div><p class=MsoNormal>Of course, you may use the same context for several clients.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I really recommend you dig a little bit for yourself in the wiki in order to setup this configuration.<o:p></o:p></p></div><div><p class=MsoNormal>This will provide you with the necessary understanding of FreeSWITCH to operate it.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>For the second part of your question, you may need mod_lcr.<o:p></o:p></p></div><div><p class=MsoNormal>I never used, but a lot of people around use it.<o:p></o:p></p></div><div><p class=MsoNormal>I am not sure it does prepaid/credit-limit.<o:p></o:p></p></div><div><p class=MsoNormal>For that, you can use the "simple" nibblebill, but it needs some hacking to manage various rates per destination prefix.<o:p></o:p></p></div><div><p class=MsoNormal>Or use an external prepaid software.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><div><div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"'Helvetica Neue'","serif";color:#1C00FF'>David Ponzone </span><span class=apple-style-span><span style='font-size:9.0pt;font-family:"'Helvetica Neue'","serif";color:black'>Direction Technique</span></span><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;font-family:"'Helvetica Neue'","serif";color:black'>email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></span><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;font-family:"'Helvetica Neue'","serif";color:black'>tel: 01 74 03 18 97</span></span><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;font-family:"'Helvetica Neue'","serif";color:black'>gsm: 06 66 98 76 34</span></span><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"'Helvetica Neue'","serif";color:#1C00FF'>Service Client<span class=apple-converted-space> </span></span><span style='font-size:10.5pt;font-family:"'Helvetica Neue'","serif";color:red'>IP</span><span style='font-size:10.5pt;font-family:"'Helvetica Neue'","serif";color:#1C00FF'>eva</span><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></p></div><div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;font-family:"'Helvetica Neue'","serif";color:black'>tel: 0811 46 26 26</span></span><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></p></div><div><div><p class=MsoNormal><u><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#0022F3'><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span></u><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#656895'> - </span><u><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#0022F3'><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></u><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#0022F3'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#0022F3'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='text-align:justify'><i><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:silver'>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. <b>IPeva</b> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</span></i><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:silver'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><u><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#0022F3'><o:p><span style='text-decoration:none'> </span></o:p></span></u></p></div></div></div></div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Helvetica","sans-serif";color:black'><br><br></span><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Le 25/04/2011 à 21:55, Georgy Goshin a écrit :<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><p class=MsoNormal>Hello!<br><br>I need some advice from experienced FreeSWITCH users. Please review my needs<br>and advise me some configuration samples or adapted configuration guides.<br>I'd like to use the FS in two roles - a SIP router for my PBXes and as a<br>wholesale switch. Both configurations are almost the same in my case. The<br>desired configuration should be allow me to do the following:<br><br>route calls based on A num, B num, SRC IP (Mera MVTS is an example of what I<br>want in simple calls routing).<br><br>If a more complex configuration that can do dynamic routing based on price,<br>acd/asr and prepaid/credit-limit billing is possible too, I'd be glad to see<br>some examples too.<br><br><br>Thanks in advance,<br>G. Goshin.<br><br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>