Hoe do we configure a second freeswitch

897 views
Skip to first unread message

vps4hire

unread,
Jul 11, 2015, 11:24:33 AM7/11/15
to as...@googlegroups.com
i have tried creating a second freeswitch to join to existing astpp but looking at the second server cli i dont see any calls being processed by the second server. Is there anyone who knows how this is properly configured. I just want to try and increase cps in my astpp

Samir Doshi

unread,
Jul 14, 2015, 8:20:41 AM7/14/15
to as...@googlegroups.com
If you need to increase CPS and concurrent limit then you must need to use proxy before freeswitch servers to do calls load balancing. 

The way you have setup is kinda 2 FS servers connecting to one astpp. so client have option either to use 1st fs or 2nd fs server. 

Best Regards
--
Samir Doshi
iNextrix Technologies Pvt. Ltd.
http://www.inextrix.com



Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful.

On Sat, Jul 11, 2015 at 8:54 PM, vps4hire <omp...@gmail.com> wrote:
i have tried creating a second freeswitch to join to existing astpp but looking at the second server cli i dont see any calls being processed by the second server. Is there anyone who knows how this is properly configured. I just want to try and increase cps in my astpp

--
=====================================================================
Donate us at dona...@astpp.org
Documentation : http://wiki.astpp.org
Website : http://www.astpp.org
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/4f5137b5-fd63-4b43-bce3-2cb4247ebdd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Masanga

unread,
Jul 15, 2015, 12:26:20 PM7/15/15
to as...@googlegroups.com
can you give some pointers. Literature i am getting on the web for load balancing does not assume there is billing on the freeswitch or if it does its not explaining which one will be the billing server. will the proxy sever be the one with astpp and the rest with just Freeswitch without astpp?? The Plan here is to use a single server to do the billing an multiple servers to do call processing. Do i create the first server with astpp and opensips then use load balance module to transmit the calls to the other freeswitch servers??

Samir Doshi

unread,
Jul 16, 2015, 2:54:12 AM7/16/15
to as...@googlegroups.com
Proxy server doesn't have to do anything with billing. You can setup number of freeswitch server and configure it with astpp. To configure, you just have to configure url of cgi-bin script in xml_curl and xml_cdr. You can refer your existing setup files.

Best Regards
--
Samir Doshi
iNextrix Technologies Pvt. Ltd.
http://www.inextrix.com



Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful.

jery john

unread,
Jul 17, 2015, 3:36:29 PM7/17/15
to as...@googlegroups.com
the solution you are looking for is a opensips or kamailio based load balancer to divide the calls between  multiple freeswitch servers itworks like this client--->kamailio---->freeswitch1  )
                                                                 ----->freeswitch2 )---->destination
                                                                ------>freeswitch3 )

you should load mysql and dispatcher modules for kamailio and employ a suitable algorithm for load balancing
i cant help you with astpp config though :)

Michael Masanga

unread,
Jul 17, 2015, 4:05:47 PM7/17/15
to as...@googlegroups.com
I have read that too but the problem is the billing of clients. I need my clients billed on one freeswitch then load balanced on 3 freeswich. It looks like i have to find kamailio billing   Can we not install a freeswitch on the kamailio server with billing but call processing gets by passes to the 3 fs while the kamailio fs does the billing
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/CAKs5Ka-ADrSZ4O1C2QK_aj3BWiL57pScyXDxP-FdM-CEjpY-ig%40mail.gmail.com.

vps4hire

unread,
Jul 18, 2015, 5:08:13 AM7/18/15
to as...@googlegroups.com
suppose you have one client sending 50cps  and you want to distribute this over 3 servers but bill him in 1 server. The way Samir explained is that i have Opensips on one server then send to 3 astpp servers but i cant give a customer 3 login accounts to check balance and add credit. I need 1 server for that but still being able to distribute the calls. Much like this  for a2billing  https://sysadminman.net/blog/2013/a2billing-and-opensips-part-1-4775

jery john

unread,
Jul 21, 2015, 10:39:52 AM7/21/15
to as...@googlegroups.com
by my understanding astpp is the billing software here not freeswitch  and as long as astpp supports multiple freeswitches,we should only have a load balancer before the freeswitches.freeswitch itself doest do billing astpp does

Samir Doshi

unread,
Jul 22, 2015, 7:25:30 AM7/22/15
to as...@googlegroups.com
That's correct flow. 

Best Regards
--
Samir Doshi
iNextrix Technologies Pvt. Ltd.
http://www.inextrix.com



Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful.

vps4hire

unread,
Jul 22, 2015, 9:02:29 AM7/22/15
to ASTPP
Again can someone please explain how this will increase cps in astpp. The Call flow assumes the call gets to proxy and then distributed over 3 freeswitch servers after which all calls are again processed by astpp to get to the providers. Is this correct? If it is then astpp becomes a bottleneck again. How do you make the freeswitches deliver calls to the providers but still using astpp as billing. i.e the freeswitch in astpp is not processing calls but rather only database querying is done??  

There is another scenario i was thinking of as well. If you have one server storing database   (astpp database)  and the 3 freeswitch servers are actually astpp servers but querying the same database will this increase cps??  callflow example

SIP-PROXY------->astpp------>Provider
                        ->astpp------>Provider
                        ->astpp ----->Provider
                        I
                        I
                     Database

Will this work?? If it does is there a possibility of then scaling the database to increase number of queiries eg like adding another database server.

If this is resolved i will be able to do a tutorial for scaling up astpp to help everyone in my situation

On Wednesday, 

vps4hire

unread,
Jul 22, 2015, 6:59:37 PM7/22/15
to ASTPP, omp...@gmail.com
Also something not really explained on the config file foropensips which is in astpp. While we are using this fle in the astpp servers how do we treat the one in the opensips server?? Do we just make a copy of the asttp one and replicate it in opensips??? is this file needed in astpp or in opensips?? Confusing please help

Nsikak Attah

unread,
Jul 22, 2015, 7:35:43 PM7/22/15
to as...@googlegroups.com
vps,,

I think your first design to me looks like what will work.
Calls are not really processed by astpp  so to say in order to get to providers. Freeswitch handles the calls here but it gets the configurations from astpp web server which is what you do by using the gui to create gateways, users, etc.

If the single astpp web server happens to fail, then Freeswitch will not be able to authenticate users or use any gateway as all this is built on the fly from information gotten on web server.

However, your first task is getting thee FS servers setup, additional webservers either as standby should not be a big issue


vps4hire

unread,
Jul 22, 2015, 8:07:21 PM7/22/15
to ASTPP, att...@gmail.com
You mean like Samir mentioned. We have 3 freeswitch and one asttp. In the freeswitch we configure url of xml_cdr and xml_curl to point to astpp. Open sips load balances among the freeswitches and cdr gets recorded in astpp??  OK i will try this with the tutorial on old freeswitch and see if i really get the cdrs recorded. Do i have to also include the freeswitch server in astpp?? I guess not right???  Do i still need to setup outbound gateways int hte 3 FS servers or that will be taken from astpp???

Nsikak Attah

unread,
Jul 23, 2015, 5:01:09 AM7/23/15
to vps4hire, ASTPP
Outbound gateways will be set in astpp

Regards

vps4hire

unread,
Jul 23, 2015, 5:27:00 AM7/23/15
to ASTPP, omp...@gmail.com
I dont know wether this is a bug or not when i try to create an opensips device on astpp it does not save. And what do i put in dispatcher list the fs1 and fs2 or the opensips ip

Francisco Lima

unread,
May 27, 2020, 11:37:31 PM5/27/20
to ASTPP
VPS did you succeed when trying to balance Astpp? From the beginning I understood what you needed and it is exactly what I also need. 1 Astpp that may have a high CPS load and that, finally, we need to increase the number of servers in order to balance (without losing the characteristic of having only a web interface with only one bank).

I can't find a way to balance this without having to create several Astpps, if you found a solution, please tell me how, thanks!

 

Em sábado, 11 de julho de 2015 12:24:33 UTC-3, vps4hire escreveu:
Eu tentei criar um segundo freeswitch para ingressar no astpp existente, mas olhando para o segundo servidor CLI, não vejo nenhuma chamada sendo processada pelo segundo servidor. Existe alguém que sabe como isso está configurado corretamente. Eu só quero tentar aumentar cps no meu astpp

Francisco Lima

unread,
May 30, 2020, 7:43:29 AM5/30/20
to ASTPP
Caso, interesse a alguém eu achei uma solucao;
1 crie um load balancer com open sips,
2 Crie um ramal no opensips e use o como gateway no ASTPP
3 no ASTPP altere para mídia transparente

Pronto! O ASTPP irá tarifar tudo e balancear o tráfego de mídia entre os demais servidores do open sips
Reply all
Reply to author
Forward
0 new messages