[Freeswitch-users] SIP router/switch only configuratoin advice?
David Ponzone
david.ponzone at ipeva.fr
Tue Apr 26 09:53:14 MSD 2011
Georgy,
the first thing you ask is trivial.
Basically, you may have one dialplan (one context) per client endpoint.
There is 2 ways to bind a context to a client:
-if the client registers, the context is configured in the user config (in directory/)
-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.
This way, you will have one specific context file per client, so you can have very specific routing rules per client.
Of course, you may use the same context for several clients.
I really recommend you dig a little bit for yourself in the wiki in order to setup this configuration.
This will provide you with the necessary understanding of FreeSWITCH to operate it.
For the second part of your question, you may need mod_lcr.
I never used, but a lot of people around use it.
I am not sure it does prepaid/credit-limit.
For that, you can use the "simple" nibblebill, but it needs some hacking to manage various rates per destination prefix.
Or use an external prepaid software.
David Ponzone Direction Technique
email: david.ponzone at ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
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. IPeva 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.
Le 25/04/2011 à 21:55, Georgy Goshin a écrit :
> Hello!
>
> I need some advice from experienced FreeSWITCH users. Please review my needs
> and advise me some configuration samples or adapted configuration guides.
> I'd like to use the FS in two roles - a SIP router for my PBXes and as a
> wholesale switch. Both configurations are almost the same in my case. The
> desired configuration should be allow me to do the following:
>
> route calls based on A num, B num, SRC IP (Mera MVTS is an example of what I
> want in simple calls routing).
>
> If a more complex configuration that can do dynamic routing based on price,
> acd/asr and prepaid/credit-limit billing is possible too, I'd be glad to see
> some examples too.
>
>
> Thanks in advance,
> G. Goshin.
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110426/67d21138/attachment.html
More information about the FreeSWITCH-users
mailing list