VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
govoiper at gmail.com Guest
|
Posted: Mon Feb 29, 2016 9:43 am Post subject: [Freeswitch-users] ESL Client --> Multiple FS Servers |
|
|
Hi All,
I'm looking for some guidance on connecting my ESL client program to multiple FS Servers at once. I've written a small code which connects to one FS ESL and based on events it generates some reports and also send back some actions to FS.
Now I'm looking to expand that form one to multiple FS servers but the code should collect all events from every FS and be able to send action to any of them whatever the logic be.
Any guides or hints will be much appreciated.
Regards,
Sammy |
|
Back to top |
|
|
bobjectsfreeswitch at ... Guest
|
Posted: Mon Feb 29, 2016 10:31 am Post subject: [Freeswitch-users] ESL Client --> Multiple FS Servers |
|
|
Is that inherently more difficult than connecting to one server? Consider taking an object-oriented approach: Make a FreeswitchServer object with address ivar, have the constructor connect a socket, instantiate once for each server.
On Mon, Feb 29, 2016 at 8:41 AM, SamyGo <govoiper@gmail.com (govoiper@gmail.com)> wrote:
|
|
Back to top |
|
|
govoiper at gmail.com Guest
|
Posted: Mon Feb 29, 2016 10:56 am Post subject: [Freeswitch-users] ESL Client --> Multiple FS Servers |
|
|
Hi Bob,Thanks for taking out time, I understand what you're saying, and it makes sense. I have used perl so far and I am considering GoLang for this. (more of a scripting approach so far)
Can you just tell me this: if it is an ObjOriented code and I connect to multiple servers at once, the buffer I receive Events into will be common ? The same loop in which I collect events from all the servers stays the same too !?
Considering that its been some time I've done some good programming, my dev skills are decently rusty and hence this email.
Thanks again,
Sammy
On Mon, Feb 29, 2016 at 10:29 AM, Bob Hartwig <bobjectsfreeswitch@gmail.com (bobjectsfreeswitch@gmail.com)> wrote:
|
|
Back to top |
|
|
bobjectsfreeswitch at ... Guest
|
Posted: Mon Feb 29, 2016 11:36 am Post subject: [Freeswitch-users] ESL Client --> Multiple FS Servers |
|
|
I guess it depends on whether you need to send commands in reply to events. If so, you'll probably want to have separate queues and servicing threads for each server. Your requirements can probably tell you better than I can.
Bob
On Mon, Feb 29, 2016 at 9:55 AM, SamyGo <govoiper@gmail.com (govoiper@gmail.com)> wrote:
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|