[Freeswitch-users] Do we have ESL-proxy?
SamyGo
govoiper at gmail.com
Wed Aug 7 10:53:02 MSD 2013
Seven yes that's somewhat I was thinking, Chris has somewhat opposite of
the required.
I've multiple clients connecting to multiple FS-ESL sockets. Clients send
just "originate" command and they don't care which FS received the command
and what happened with the request.
All I think about what the ESL-Proxy should do is either send messages to a
mentioned FS-Server if user/client specifies else do a round-robin to
active FS-ESL sockets.
If anyone has any partial script doing anything like this I'll be happy to
modify it according to the requirements and put up for others to use.
Regards,
Sammy
On Tue, Aug 6, 2013 at 12:09 PM, Chris Cachor <ccachor at gmail.com> wrote:
> I'm working on a similar setup except that I'm having Freeswitch make a
> Curl request to a Node.js script with the IP to connect to, and the Node.js
> script will listen to the incoming request then open a ESL inbound socket
> connection to the box that requested it. The Node.js script will handle the
> multiple connection instances (and won't try to connect if it's connected
> to the machine already). Note: The Node script runs as a daemon. It's a
> solution that scales with minimal config changes as well.
>
> - Chris
>
> On Aug 6, 2013, at 1:58 PM, freeswitch-users-request at lists.freeswitch.orgwrote:
>
> Send FreeSWITCH-users mailing list submissions to
> freeswitch-users at lists.freeswitch.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> or, via email, send a message with subject or body 'help' to
> freeswitch-users-request at lists.freeswitch.org
>
> You can reach the person managing the list at
> freeswitch-users-owner at lists.freeswitch.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of FreeSWITCH-users digest..."
> Today's Topics:
>
> 1. Re: Can not make out going call from sangoma A200 (Ivan)
> 2. Re: Do we have ESL-proxy? (Seven Du)
>
> *From: *Ivan <ivan at c3i.bg>
> *Subject: **Re: [Freeswitch-users] Can not make out going call from
> sangoma A200*
> *Date: *August 6, 2013 12:19:57 PM CDT
> *To: *freeswitch-users at lists.freeswitch.org
> *Reply-To: *FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>
>
> WRT the callerid issue, do you answer the call immediately ? If yes you
> should try to wait 2 or 3 rings before answering, since the callerid data
> is usually sent at the first ring.
> There might also be a problem with your provider, did you check first that
> you get the callerid when plugging a telephone to your provider's line ?
>
> Outgoing call problem: please post more debug from fs_cli (before the
> hangup).
>
> ivan
>
>
> On 08/06/2013 09:42 AM, James zhu wrote:
>
> hello:
> I contacted Sangoma, but I do not have any feedback yet. I think it
> might be a bug
> for analog card with freeSWITCH. freetdm partially works with sangoma
> A200.
> There are two issues:
> 1) Can not get callerid from IO: only shows this:Initializing cid data!
> the callerid is empty
> even I set to CN.
> 2) Can not make outgoing calls by the port that I used to make outgoing
> calls. even I replaced a FXO module, the problem is same. I use same
> syntax as follow:
> http://blog.hiastar.com/?p=276
> Hope someone from the FreeSWITCH community to clarify that.
>
> Best regards,
> James.zhu
> website: www.hiastar.com
>
> ------------------------------------------------------------------------
> Date: Fri, 2 Aug 2013 23:03:47 -0400
> From: bdfoster at davri.com
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] Can not make out going call from sangoma
> A200
>
> I apologize, I misread your email. Hopefully someone who knows FreeTDM
> will come around. Have you contacted Sangoma? They are the maintainers
> of FreeTDM as far as I know. You might try that route. They are very
> familiar with freeswitch im sure :).
>
> Thank you,
>
> Brian Foster
> Project Manager/Owner's Rep.
> Davri Investments, Inc.
> O: 317-787-2686 x2102
> M: 317-600-9753
> E: bdfoster at davri.com <mailto:bdfoster at davri.com>
> Indianapolis, Indiana
>
> Sent from a mobile device.
>
> On Aug 2, 2013 10:39 PM, "James zhu" <zhulizhong at live.com
> <mailto:zhulizhong at live.com>> wrote:
>
> thanks, Brian. actually the 2:1 is idle because the port can accept
> incoming call. after
> I reload freetdm or restart FS, I still can not make outgoing calls.
> If the port physically
> failed, how come I can make incoming call use the same port.
> confused. thanks again.
>
> Best regards,
> James.zhu
> website: www.hiastar.com <http://www.hiastar.com>
>
> ------------------------------------------------------------------------
> Date: Fri, 2 Aug 2013 14:22:29 -0400
> From: bdfoster at davri.com <mailto:bdfoster at davri.com>
> To: freeswitch-users at lists.freeswitch.org
> <mailto:freeswitch-users at lists.freeswitch.org>
> Subject: Re: [Freeswitch-users] Can not make out going call from
> sangoma A200
>
> That's the expected behavior if 2:1 is in use. So that means you use
> another port to place your outbound call. Tips on how to do that,
> however, I can't really produce. Hopefully someone with more
> experience with FreeTDM can chime in.
>
> Thank you,
>
> Brian Foster
> Project Manager/Owner's Rep.
> Davri Investments, Inc.
> O: 317-787-2686 x2102
> M: 317-600-9753
> E: bdfoster at davri.com <mailto:bdfoster at davri.com>
> Indianapolis, Indiana
>
> Sent from a mobile device.
>
> On Aug 2, 2013 3:09 AM, "James zhu" <zhulizhong at live.com
> <mailto:zhulizhong at live.com>> wrote:
>
> hello:
> I installed freeswitch and sangoma A200 with 2 FXOs. i set the
> tone group to CN
> and opermode=china. the A200 can make accept incoming calls from
> FreeTDM/2:1 , but I use same port to make out going port, the
> shows the port is CONGESTION.
> --------------------------system
> log-----------------------------------------------
> 2013-08-02 14:36:42.003531 [DEBUG] mod_freetdm.c:640 [2:1]
> FreeTDM/2:1/13811737925 CHANNEL HANGUP EXIT
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:48 FreeTDM/2:1/13811737925 Standard
> HANGUP, cause: NORMAL_CIRCUIT_CONGESTION
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:679 (FreeTDM/2:1/13811737925) State
> HANGUP going to sleep
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:692 (FreeTDM/2:1/13811737925)
> Callstate Change DOWN -> HANGUP
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:447 (FreeTDM/2:1/13811737925) State
> Change CS_HANGUP -> CS_REPORTING
> 2013-08-02 14:36:42.003531 [DEBUG] switch_core_session.c:1341
> Send signal FreeTDM/2:1/13811737925 [BREAK]
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:416 (FreeTDM/2:1/13811737925)
> Running State Change CS_REPORTING
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:764 (FreeTDM/2:1/13811737925) State
> REPORTING
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:92 FreeTDM/2:1/13811737925 Standard
> REPORTING, cause: NORMAL_CIRCUIT_CONGESTION
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:764 (FreeTDM/2:1/13811737925) State
> REPORTING going to sleep
> 2013-08-02 14:36:42.003531 [DEBUG]
> switch_core_state_machine.c:441 (FreeTDM/2:1/13811737925) State
> Change CS_REPORTING -> CS_DESTROY
> 2013-08-02 14:36:42.003531 [DEBUG] switch_core_session.c:1341
> Send signal FreeTDM/2:1/13811737925 [BREAK]
> 2013-08-02 14:36:42.003531 [DEBUG] switch_core_session.c:1549
> Session 37 (FreeTDM/2:1/13811737925) Locked, Waiting on external
> entities
> 2013-08-02 14:36:42.023531 [DEBUG] switch_ivr_originate.c:3632
> Originate Resulted in Error Cause: 34 [NORMAL_CIRCUIT_CONGESTION]
> 2013-08-02 14:36:42.023531 [INFO] mod_dptools.c:3192 Originate
> Failed. Cause: NORMAL_CIRCUIT_CONGESTION
> 2013-08-02 14:36:42.023531 [NOTICE] switch_channel.c:4593 Hangup
> sofia/internal/1008 at 192.168.0.173 <mailto:1008 at 192.168.0.173>
> [CS_EXECUTE] [NORMAL_CIRCUIT_CONGESTION]
> 2013-08-02 14:36:42.023531 [DEBUG] switch_channel.c:3135 Send
> signal sofia/internal/1008 at 192.168.0.173
> <mailto:1008 at 192.168.0.173> [KILL]
> 2013-08-02 14:36:42.023531 [DEBUG] switch_core_session.c:1341
> Send signal sofia/internal
> ---------------------------------------------
> the FS is download from git and wanpipe is latest version.
> please give a help for that issue.
>
> Best regards,
> James.zhu
> website: www.hiastar.com <http://www.hiastar.com>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto: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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>
> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The
> CudaTel Communication Server Official
> FreeSWITCH Sites http://www.freeswitch.org
> http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users
> mailing list FreeSWITCH-users at lists.freeswitch.org
> <mailto: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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto: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
>
>
> _________________________________________________________________________
> Professional
> FreeSWITCH Consulting Services: consulting at freeswitch.org
> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The
> CudaTel Communication Server Official FreeSWITCH
> Sites http://www.freeswitch.org http://wiki.freeswitch.org
> http://www.cluecon.com 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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
>
>
>
>
> *From: *Seven Du <dujinfang at gmail.com>
> *Subject: **Re: [Freeswitch-users] Do we have ESL-proxy?*
> *Date: *August 6, 2013 1:57:48 PM CDT
> *To: *FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> *Reply-To: *FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>
>
> I was actually thinking how to do that. Raw idea would be run a daemon
> that connects to multiple FS instances and routes ESL requests from a
> single client accordingly.
>
> FS has core-uuid in events so it can tell which FS it comes from, and api
> and sendmsg might need to be extended to add the core-uuid so the proxy
> nows which FS it needs to route to.
>
> Is this what are we talking about? I might do this in Erlang.
>
> --
> Seven Du
> http://www.freeswitch.org.cn
> http://about.me/dujinfang
> http://www.dujinfang.com
>
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> On Wednesday, August 7, 2013 at 2:00 AM, Nathan Neulinger wrote:
>
> ESL is just a simple TCP socket connection... if all you're wanting to do
> is rotate between them, there are LOTs of
> different solutions. If you're looking for load balancing/calculated
> assignment of which one to use/etc. then you're
> going to need something more advanced.
>
> I'm not aware of any high-level proxy services that do the sort of things
> described in amiproxy/astmanproxy, but someone
> else may be aware of something like it.
>
> -- Nathan
>
> On 08/06/2013 12:57 PM, SamyGo wrote:
>
> Dear Nathan,
> Can you refer me some relevant links, this seems more complex solution. I
> was thinking more like AMIproxy/ AstmanProxy
> thing.
>
> BR,
> Sammy
>
>
>
> On Tue, Aug 6, 2013 at 10:40 AM, Nathan Neulinger <nneul at mst.edu <
> mailto:nneul at mst.edu <nneul at mst.edu>>> wrote:
>
> With HAProxy, you could just define a list of target servers. You'd
> configure your app to talk to the HA IP, and
> then each request would go to next available server in the pool you have
> defined.
>
> You could also simply do a DNS round robin if you wanted. All depends on
> what infrastructure/etc. you have available
> to you and how resilient it needs to be.
>
> -- Nathan
>
>
> On 08/06/2013 12:38 PM, SamyGo wrote:
>
> Dear Nathan,
>
> I think I've missed something. I don't understand how HAproxy and Floating
> IP and KeepAlived will help me? I need to
> have all Active FS Servers and some mechanism to send ESL commands to them
> in round-robin fashion. I've an
> autodialer
> script so that Proxy will help me use many FS Servers at the same time !
>
> Thanks,
> Sammy
>
>
>
> On Tue, Aug 6, 2013 at 10:22 AM, Nathan Neulinger <nneul at mst.edu <
> mailto:nneul at mst.edu <nneul at mst.edu>> <mailto:nneul at mst.edu<nneul at mst.edu>
> <mailto:nneul at mst.edu <nneul at mst.edu>>>> wrote:
>
> You might look at the keepalived page on wiki, that's what I use to float
> an IP in the case where only one
> of the FS
> instances should be online.
>
> You could also use HAProxy to define a group of systems for it to talk to
> if you want multiple to be online
> at once,
> but rotating between them.
>
> -- Nathan
>
>
> On 08/06/2013 12:19 PM, SamyGo wrote:
>
> Hi Nathan,
>
> I can only think of Round Robin with failover. I definitely don't want to
> parallel fork an ESL command.
>
> --
> Sammy
>
>
>
> On Tue, Aug 6, 2013 at 10:16 AM, Nathan Neulinger <nneul at mst.edu <
> mailto:nneul at mst.edu <nneul at mst.edu>>
> <mailto:nneul at mst.edu <nneul at mst.edu> <mailto:nneul at mst.edu<nneul at mst.edu>>>
> <mailto:nneul at mst.edu <nneul at mst.edu> <mailto:nneul at mst.edu<nneul at mst.edu>
> >
>
> <mailto:nneul at mst.edu <nneul at mst.edu> <mailto:nneul at mst.edu<nneul at mst.edu>>>>>
> wrote:
>
> Are you saying "round robin" or "mirrored" for the commands?
>
> i.e. if you send a command over this proxy, would it be duplicated to all
> of the FS servers, or
> sent to "first
> available"?
>
> -- Nathan
>
>
> On 08/06/2013 12:05 PM, SamyGo wrote:
>
> Dear Users,
>
> I have come up with a requirement to have ESL connection made with
> multiple FS Servers at the
> same time
> and send
> them
> commands(no event receiving is required for now) The connections to FS
> should be pooled and
> monitored
> if any FS
> goes down.
>
> Is there any ESLproxy available to be used readily?
>
> Thanks,
> Sammy
>
>
> --
> ------------------------------______--------------------------__--__--
> Nathan Neulinger nneul at mst.edu <mailto:nneul at mst.edu <nneul at mst.edu>> <
> mailto:nneul at mst.edu <nneul at mst.edu>
> <mailto:nneul at mst.edu <nneul at mst.edu>>> <mailto:nneul at mst.edu<nneul at mst.edu><
> mailto:nneul at mst.edu <nneul at mst.edu>> <mailto:nneul at mst.edu<nneul at mst.edu><
> mailto:nneul at mst.edu <nneul at mst.edu>>>>
>
>
> Missouri S&T Information Technology (573) 612-1412
> System Administrator - Architect
>
>
>
> --
> ------------------------------____----------------------------__--
> Nathan Neulinger nneul at mst.edu <mailto:nneul at mst.edu <nneul at mst.edu>> <
> mailto:nneul at mst.edu <nneul at mst.edu> <mailto:nneul at mst.edu <nneul at mst.edu>
> >>
> Missouri S&T Information Technology (573) 612-1412
> System Administrator - Architect
>
>
>
> --
> ------------------------------__------------------------------
> Nathan Neulinger nneul at mst.edu <mailto:nneul at mst.edu <nneul at mst.edu>>
> Missouri S&T Information Technology (573) 612-1412
> System Administrator - Architect
>
>
> --
> ------------------------------------------------------------
> Nathan Neulinger nneul at mst.edu
> Missouri S&T Information Technology (573) 612-1412
> System Administrator - Architect
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
>
>
> _______________________________________________
>
> 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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20130806/bb325622/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list