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.- ChrisOn Aug 6, 2013, at 1:58 PM, freeswitch-users-request@lists.freeswitch.org wrote:Send FreeSWITCH-users mailing list submissions to
freeswitch-users@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@lists.freeswitch.org
You can reach the person managing the list at
freeswitch-users-owner@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@c3i.bg>
Subject: Re: [Freeswitch-users] Can not make out going call from sangoma A200
Date: August 6, 2013 12:19:57 PM CDT
Reply-To: FreeSWITCH Users Help <freeswitch-users@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@davri.com
To: freeswitch-users@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@davri.com <mailto:bdfoster@davri.com>
Indianapolis, Indiana
Sent from a mobile device.
On Aug 2, 2013 10:39 PM, "James zhu" <zhulizhong@live.com
<mailto:zhulizhong@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@davri.com <mailto:bdfoster@davri.com>
To: freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@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@davri.com <mailto:bdfoster@davri.com>
Indianapolis, Indiana
Sent from a mobile device.
On Aug 2, 2013 3:09 AM, "James zhu" <zhulizhong@live.com
<mailto:zhulizhong@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@192.168.0.173 <mailto:1008@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@192.168.0.173
<mailto:1008@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>consulting@freeswitch.org <mailto:consulting@freeswitch.org>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:<mailto:FreeSWITCH-users@lists.freeswitch.org>
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________consulting@freeswitch.org <mailto:consulting@freeswitch.org>
Professional FreeSWITCH Consulting Services:<mailto:FreeSWITCH-users@lists.freeswitch.org>
http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The
CudaTel Communication Server http://www.cudatel.com Official
FreeSWITCH Sites http://www.freeswitch.org
http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users
mailing list FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org_________________________________________________________________________consulting@freeswitch.org <mailto:consulting@freeswitch.org>
Professional FreeSWITCH Consulting Services:
<mailto:FreeSWITCH-users@lists.freeswitch.org>
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@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@freeswitch.org
http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The
CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH
Sites http://www.freeswitch.org http://wiki.freeswitch.org
http://www.cluecon.com FreeSWITCH-users mailing list
FreeSWITCH-users@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@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@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@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@lists.freeswitch.org>
Reply-To: FreeSWITCH Users Help <freeswitch-users@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.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 ofdifferent solutions. If you're looking for load balancing/calculated assignment of which one to use/etc. then you'regoing 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 someoneelse may be aware of something like it.-- NathanOn 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/ AstmanProxything.BR,SammyOn Tue, Aug 6, 2013 at 10:40 AM, Nathan Neulinger <nneul@mst.edu <mailto:nneul@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, andthen 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 availableto you and how resilient it needs to be.-- NathanOn 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 tohave all Active FS Servers and some mechanism to send ESL commands to them in round-robin fashion. I've anautodialerscript so that Proxy will help me use many FS Servers at the same time !Thanks,SammyOn Tue, Aug 6, 2013 at 10:22 AM, Nathan Neulinger <nneul@mst.edu <mailto:nneul@mst.edu> <mailto:nneul@mst.edu<mailto:nneul@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 oneof the FSinstances 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 onlineat once,but rotating between them.-- NathanOn 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.--SammyOn Tue, Aug 6, 2013 at 10:16 AM, Nathan Neulinger <nneul@mst.edu <mailto:nneul@mst.edu><mailto:nneul@mst.edu <mailto:nneul@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, orsent to "firstavailable"?-- NathanOn 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 thesame timeand sendthemcommands(no event receiving is required for now) The connections to FS should be pooled andmonitoredif any FSgoes down.Is there any ESLproxy available to be used readily?Thanks,Sammy--------------------------------______--------------------------__--__--<mailto:nneul@mst.edu>> <mailto:nneul@mst.edu <mailto:nneul@mst.edu> <mailto:nneul@mst.edu <mailto:nneul@mst.edu>>>Missouri S&T Information Technology (573) 612-1412System Administrator - Architect
--------------------------------____----------------------------__--Missouri S&T Information Technology (573) 612-1412System Administrator - Architect--------------------------------__------------------------------Nathan Neulinger nneul@mst.edu <mailto:nneul@mst.edu>Missouri S&T Information Technology (573) 612-1412System Administrator - Architect--------------------------------------------------------------Nathan Neulinger nneul@mst.eduMissouri S&T Information Technology (573) 612-1412System Administrator - Architect_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-users mailing list
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org