karlma / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

load_balancing = true doesn't send calls to other machine #968

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. setup two or more fusionpbx machines sharing fusionpbx and core db (mysql)
2. set load_balancing = true in scripts/app/xml_handler/index.lua
3. setup dns srv for sip
4. register multiple phones
5. call an extension registered on other machine

What is the expected output? What do you see instead?
if local_hostname and database_hostname (host where destination ext is 
registered) are different the dial_string should be changed to:
sofia/internal/${user_data(${destination_number}@${domain_name} attr 
id)}@${domain_name};fs_path=sip:server
in script/app/xml_handler/resources/scripts/directory/directory.lua
but it doesn't.
I found that param "dialed_extension" from dialplan "local_extension" is not 
delivered to directory.lua but i can't find the reason why.

What version of the product are you using? On what operating system?

FusionPBX 3.8.3
CentOS 7.1 - 3.10.0-229.4.2.el7.x86_64
FreeSWITCH Version 1.4.18+git~20150312T185523Z~4eed221b69~64bit (git 4eed221 
2015-03-12 18:55:23Z 64bit)
MariaDB 5.5.41

Please provide any additional information below.

Original issue reported on code.google.com by roman.di...@gmail.com on 22 May 2015 at 8:01

GoogleCodeExporter commented 9 years ago
I cannot elaborate too much at the moment but it is broken. Even if you nail 
that part you will come across other issues.

The reason I found this to be not working is that the piece of code that add 
fs_path never gets executed due to it finding the contact in memcache.

Original comment by Digitald...@gmail.com on 22 May 2015 at 8:17

GoogleCodeExporter commented 9 years ago
So, you say it is not worth investigating further more in a multi server, 
fusionpbx only setup? Should I go with Kamailio/OpenSIPs as a dispatcher in 
front of my freeswitch/fusionpbx instances?

Thanks,
Roman

Original comment by roman.di...@gmail.com on 22 May 2015 at 9:50

GoogleCodeExporter commented 9 years ago
Memcache can be cleared across multiple servers this is taught in the last 
FusionPBX Advanced class. 

Original comment by markjcrane@gmail.com on 25 May 2015 at 3:48