FreeSWITCH+Sangoma with dialup modems
Hello All, I am a newbie to FreeSWITCH, and have been experimenting with it. I am currently facing a problem, which, to be honest, I am not sure if is a FreeSWITCH misconfiguration problem, or if it is totally unrelated! My setup is as follows: Serial port based device(Caller)->Dlink dialup modem(DFM562E)->PBX->Sangoma A102 E1 Link(and FreeSWITCH)->PBX->Dlink dialup modem(DFM562E)->Server(Receiver) Problem: When the caller makes the call (using the modem with a lower baud rate 1200), Receiver modem receives the RING and answers the call (using the ATA command). But for some reason, both the ends timeout waiting for modem CONNECT. Freeswitch logs show: freeswitch@clock2> 2012-12-10 16:53:30.975599 [INFO] ftmod_sangoma_isdn_stack_rcv.c:96 [s1c30][1:31] Received SETUP (suId:1 suInstId:0 spInstId:5) 2012-12-10 16:53:30.975599 [INFO] ftmod_sangoma_isdn_stack_hndl.c:153 [s1c30][1:31] Incoming call: Called No:[997870] Calling No:[988869] 2012-12-10 16:53:30.975599 [NOTICE] switch_channel.c:953 New Channel FreeTDM/1:30/997870 [0f80e853-5e9b-4c33-af82-b960b261af19] 2012-12-10 16:53:30.975599 [INFO] ftmod_sangoma_isdn_stack_out.c:175 [s1c30][1:31] Sending PROCEED (suId:1 suInstId:5 spInstId:5 dchan:1 ces:0) 2012-12-10 16:53:30.975599 [INFO] mod_dialplan_xml.c:498 Processing <988869>->997870 in context default 2012-12-10 16:53:30.975599 [NOTICE] switch_channel.c:953 New Channel FreeTDM/1:1/988713 [b7eed81e-0404-4a79-b9db-17fa59add3bd] 2012-12-10 16:53:30.975599 [INFO] ftmod_sangoma_isdn_stack_out.c:62 [s1c1][1:1] Outgoing call: Called No:[988713] Calling No:[988869] 2012-12-10 16:53:30.975599 [INFO] ftmod_sangoma_isdn_stack_out.c:79 [s1c1][1:1] Sending SETUP (suId:1 suInstId:6 spInstId:0 dchan:1 ces:0) 2012-12-10 16:53:31.195550 [INFO] ftmod_sangoma_isdn_stack_rcv.c:194 [s1c1][1:1] Received PROCEED (suId:1 suInstId:6 spInstId:6 ces:0) 2012-12-10 16:53:32.695541 [INFO] ftmod_sangoma_isdn_stack_rcv.c:194 [s1c1][1:1] Received ALERT (suId:1 suInstId:6 spInstId:6 ces:0) 2012-12-10 16:53:32.695541 [NOTICE] mod_freetdm.c:2716 Ring-Ready FreeTDM/1:1/988713! 2012-12-10 16:53:32.695541 [INFO] ftmod_sangoma_isdn_stack_out.c:233 [s1c30][1:31] Sending ALERT (suId:1 suInstId:5 spInstId:5 dchan:1 ces:0) 2012-12-10 16:53:32.695541 [NOTICE] switch_ivr_originate.c:521 Ring Ready FreeTDM/1:30/997870! 2012-12-10 16:53:32.695541 [NOTICE] switch_ivr_originate.c:521 Ring-Ready FreeTDM/1:30/997870! 2012-12-10 16:53:34.635576 [INFO] ftmod_sangoma_isdn_stack_rcv.c:144 [s1c1][1:1] Received CONNECT/CONNECT ACK (suId:1 suInstId:6 spInstId:6 ces:0) 2012-12-10 16:53:34.635576 [NOTICE] mod_freetdm.c:2686 Channel [FreeTDM/1:1/988713] has been answered 2012-12-10 16:53:34.635576 [INFO] ftmod_sangoma_isdn_stack_out.c:269 [s1c30][1:31] Sending CONNECT (suId:1 suInstId:5 spInstId:5 dchan:1 ces:0) 2012-12-10 16:53:34.635576 [NOTICE] switch_ivr_originate.c:3376 Channel [FreeTDM/1:30/997870] has been answered 2012-12-10 16:53:34.735754 [INFO] ftmod_sangoma_isdn_stack_rcv.c:144 [s1c30][1:31] Received CONNECT/CONNECT ACK (suId:1 suInstId:5 spInstId:5 ces:0) And my dial plan is: <extension name="997870"> <condition field="destination_number" expression="997870"> <action application="set" data="api_hangup_hook=lua hook-test.lua"/> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="TEST_VAR=${lua(pool-test.lua)}"/> <action application="set" data="MY_VAR=${lua(helloworld.lua arg1 arg2)}"/> <action application="bridge" data="freetdm/wp1/a/988713"/> <!--<action application="answer"/> <action application="sleep" data="10000"/> <action application="hangup"/>--> </condition> </extension> Could you please help? With regards, Sirish
On Mon, Dec 10, 2012 at 2:40 AM, Sirish Masur Mohan < Sirish.MasurMohan@oa.com.au> wrote:
My setup is as follows:
**
Serial port based device(Caller)->Dlink dialup modem(DFM562E)->PBX->Sangoma A102 E1 Link(and FreeSWITCH)->PBX->Dlink dialup modem(DFM562E)->Server(Receiver)****
** **
Problem:****
When the caller makes the call (using the modem with a lower baud rate 1200), Receiver modem receives the RING and answers the call (using the ATA command). But for some reason, both the ends timeout waiting for modem CONNECT.
Are you sure there is no echo cancellers in the middle (make sure you have an A102 without echo canceller or that you disable it in wanpipe). You can always make sure you disable the ec in the dialplan too (<action application="disable_ec">) *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
Hi Moises, Thanks for the reply. I have been able to resolve this issue – looks like I had to explicitly choose the modem carrier (1200) using the +MS command. However, curious to know a bit more on the echo canceller that you are referring to – we are using the Sangoma card with echo canceller, and I haven’t explicitly turned it off! With regards, Sirish From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Moises Silva Sent: Tuesday, 11 December 2012 7:00 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH+Sangoma with dialup modems On Mon, Dec 10, 2012 at 2:40 AM, Sirish Masur Mohan <Sirish.MasurMohan@oa.com.au<mailto:Sirish.MasurMohan@oa.com.au>> wrote: My setup is as follows: Serial port based device(Caller)->Dlink dialup modem(DFM562E)->PBX->Sangoma A102 E1 Link(and FreeSWITCH)->PBX->Dlink dialup modem(DFM562E)->Server(Receiver) Problem: When the caller makes the call (using the modem with a lower baud rate 1200), Receiver modem receives the RING and answers the call (using the ATA command). But for some reason, both the ends timeout waiting for modem CONNECT. Are you sure there is no echo cancellers in the middle (make sure you have an A102 without echo canceller or that you disable it in wanpipe). You can always make sure you disable the ec in the dialplan too (<action application="disable_ec">) Moises Silva Manager, Software Engineering msilva@sangoma.com<mailto:msilva@sangoma.com> Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 <http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> <http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> <http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures>
On Mon, Dec 10, 2012 at 9:24 PM, Sirish Masur Mohan < Sirish.MasurMohan@oa.com.au> wrote:
Hi Moises,****
** **
Thanks for the reply. I have been able to resolve this issue – looks like I had to explicitly choose the modem carrier (1200) using the +MS command. ****
However, curious to know a bit more on the echo canceller that you are referring to – we are using the Sangoma card with echo canceller, and I haven’t explicitly turned it off!****
**
Echo cancellation is not a good idea in data calls. Mind you, depending on the type of data call there is variable tolerance. Also, some data calls (ie fax) start by sending a well-known tone that Sangoma echo canceller recognizes and then disables itself (see CED tone here: http://telecom.tbi.net/fax-call.htm). If it's working for you, good :) ... if you start having issues with some calls succeeding some not, now you know another thing to try (turn off the ec). *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
Thanks Moises, noted! With regards, Sirish From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Moises Silva Sent: Tuesday, 11 December 2012 4:22 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH+Sangoma with dialup modems On Mon, Dec 10, 2012 at 9:24 PM, Sirish Masur Mohan <Sirish.MasurMohan@oa.com.au<mailto:Sirish.MasurMohan@oa.com.au>> wrote: Hi Moises, Thanks for the reply. I have been able to resolve this issue – looks like I had to explicitly choose the modem carrier (1200) using the +MS command. However, curious to know a bit more on the echo canceller that you are referring to – we are using the Sangoma card with echo canceller, and I haven’t explicitly turned it off! Echo cancellation is not a good idea in data calls. Mind you, depending on the type of data call there is variable tolerance. Also, some data calls (ie fax) start by sending a well-known tone that Sangoma echo canceller recognizes and then disables itself (see CED tone here: http://telecom.tbi.net/fax-call.htm). If it's working for you, good :) ... if you start having issues with some calls succeeding some not, now you know another thing to try (turn off the ec). Moises Silva Manager, Software Engineering msilva@sangoma.com<mailto:msilva@sangoma.com> Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 <http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> <http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures>
participants (2)
-
Moises Silva
-
Sirish Masur Mohan