[Freeswitch-dev] FreeTDM delay reconnecting E1/T1
Hi, I have a question for FreeTDM experts. When I have a T1/E1 ISDN-PRI link connected through Sangoma card, I can check signalling and physical status using this command:
ftdm sangoma_isdn show_spans wp1 span:wp1 physical:OK signalling:UP
Unplugging E1/T1 cable some alarms are raised, but show_spans command still returns "OK" and "UP". After some time (more than one minute) I get the disconnected status:
ftdm sangoma_isdn show_spans wp1 span:wp1 physical:ALARMED signalling:DOWN
Using sangoma wanpipemon command I can get disconnected status immediately: # wanpipemon -i w1g1 -c Ta Loss of Signal: ON My question is why FreeTDM takes this big delay to detect a disconnected cable? Is there a way to reduce this time? The same happens when I reconnect the cable, FreeTMD takes a minute or more to detect it. thanks, Glaucio
On Thu, Oct 13, 2011 at 12:27 PM, Glaucio Vaz de Mello <gvmello@yx.cl>wrote:
My question is why FreeTDM takes this big delay to detect a disconnected cable? Is there a way to reduce this time? The same happens when I reconnect the cable, FreeTMD takes a minute or more to detect it.
It should not be delayed. Did you try using "ftdm dump x x"? what does the physical status says in that case? If you can contact me on IRC and give me ssh I can take a look at your problem. *Moises Silva **Software Engineer, Development Manager*** 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> VegaStream is now part of Sangoma!<http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html> Ask us about both Gateway Appliances<http://sangoma.com/products/media_gateways/vega.html> and Internal Gateways<http://sangoma.com/products/software_products/netborder_suite/netborder_express.html>
Hi, Thanks for the help. Yes, I tried ftdm dump and got the same results. This command was issued after unplugging the cable: freeswitch@internal> ftdm dump wp1 1 span_id: 1 chan_id: 1 physical_span_id: 1 physical_chan_id: 1 physical_status: ok signaling_status: UP type: B state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none) -- No state history -- On Sat, Oct 15, 2011 at 1:32 PM, Moises Silva <moises.silva@gmail.com>wrote:
On Thu, Oct 13, 2011 at 12:27 PM, Glaucio Vaz de Mello <gvmello@yx.cl>wrote:
My question is why FreeTDM takes this big delay to detect a disconnected cable? Is there a way to reduce this time? The same happens when I reconnect the cable, FreeTMD takes a minute or more to detect it.
It should not be delayed. Did you try using "ftdm dump x x"? what does the physical status says in that case? If you can contact me on IRC and give me ssh I can take a look at your problem.
*Moises Silva **Software Engineer, Development Manager***
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>
VegaStream is now part of Sangoma!<http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html>
Ask us about both Gateway Appliances<http://sangoma.com/products/media_gateways/vega.html> and Internal Gateways<http://sangoma.com/products/software_products/netborder_suite/netborder_express.html>
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
On Mon, Oct 17, 2011 at 10:50 AM, Glaucio Vaz de Mello <gvmello@yx.cl>wrote:
Hi,
Thanks for the help. Yes, I tried ftdm dump and got the same results. This command was issued after unplugging the cable:
freeswitch@internal> ftdm dump wp1 1 span_id: 1 chan_id: 1 physical_span_id: 1 physical_chan_id: 1 physical_status: ok signaling_status: UP type: B state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none)
-- No state history --
That 's odd. Are you using latest git HEAD? if you are using latest git HEAD, ping me on IRC and I can take a quick look. If is not solved within 10 mins we'll have to open a JIRA ticket. *Moises Silva **Software Engineer, Development Manager*** 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> VegaStream is now part of Sangoma!<http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html> Ask us about both Gateway Appliances<http://sangoma.com/products/media_gateways/vega.html> and Internal Gateways<http://sangoma.com/products/software_products/netborder_suite/netborder_express.html>
No, I'm not using the latest git head. I'm going to upgrade and test it again. Thanks. On Mon, Oct 17, 2011 at 1:16 PM, Moises Silva <moises.silva@gmail.com>wrote:
On Mon, Oct 17, 2011 at 10:50 AM, Glaucio Vaz de Mello <gvmello@yx.cl>wrote:
Hi,
Thanks for the help. Yes, I tried ftdm dump and got the same results. This command was issued after unplugging the cable:
freeswitch@internal> ftdm dump wp1 1 span_id: 1 chan_id: 1 physical_span_id: 1 physical_chan_id: 1 physical_status: ok signaling_status: UP type: B state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none)
-- No state history --
That 's odd. Are you using latest git HEAD? if you are using latest git HEAD, ping me on IRC and I can take a quick look. If is not solved within 10 mins we'll have to open a JIRA ticket.
*Moises Silva **Software Engineer, Development Manager***
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>
VegaStream is now part of Sangoma!<http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html>
Ask us about both Gateway Appliances<http://sangoma.com/products/media_gateways/vega.html> and Internal Gateways<http://sangoma.com/products/software_products/netborder_suite/netborder_express.html>
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Hello, Just to tell you that I tested it again with latest Git source and latest sangoma driver. Delay still happens, but are less than before. When E1/T1 cable is disconnected, wanpipemon command shows "Loss of Signal" in less than 1 second. Meanwhile, fs_cli "ftdm dump" still shows "physical status" as "ok" for 4 or 5 seconds, then it turns to "alarmed". Reconnecting the cable I experienced bigger delays: while wanpipemon shows "Loss of Signal OFF" in less than 1 second, fs_cli "ftdm dump" takes more than 20 seconds to became "ok" again. If you think this should be fixed and need more information, logs or ssh access, just let me know and I'll be glad to provide it. regards, Glaucio On Mon, Oct 17, 2011 at 1:35 PM, Glaucio Vaz de Mello <gvmello@yx.cl> wrote:
No, I'm not using the latest git head. I'm going to upgrade and test it again. Thanks.
On Mon, Oct 17, 2011 at 1:16 PM, Moises Silva <moises.silva@gmail.com>wrote:
On Mon, Oct 17, 2011 at 10:50 AM, Glaucio Vaz de Mello <gvmello@yx.cl>wrote:
Hi,
Thanks for the help. Yes, I tried ftdm dump and got the same results. This command was issued after unplugging the cable:
freeswitch@internal> ftdm dump wp1 1 span_id: 1 chan_id: 1 physical_span_id: 1 physical_chan_id: 1 physical_status: ok signaling_status: UP type: B state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none)
-- No state history --
That 's odd. Are you using latest git HEAD? if you are using latest git HEAD, ping me on IRC and I can take a quick look. If is not solved within 10 mins we'll have to open a JIRA ticket.
*Moises Silva **Software Engineer, Development Manager***
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>
VegaStream is now part of Sangoma!<http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html>
Ask us about both Gateway Appliances<http://sangoma.com/products/media_gateways/vega.html> and Internal Gateways<http://sangoma.com/products/software_products/netborder_suite/netborder_express.html>
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
On Thu, Oct 20, 2011 at 10:21 AM, Glaucio Vaz de Mello <gvmello@yx.cl>wrote:
Hello,
Just to tell you that I tested it again with latest Git source and latest sangoma driver. Delay still happens, but are less than before.
When E1/T1 cable is disconnected, wanpipemon command shows "Loss of Signal" in less than 1 second. Meanwhile, fs_cli "ftdm dump" still shows "physical status" as "ok" for 4 or 5 seconds, then it turns to "alarmed".
Reconnecting the cable I experienced bigger delays: while wanpipemon shows "Loss of Signal OFF" in less than 1 second, fs_cli "ftdm dump" takes more than 20 seconds to became "ok" again.
If you think this should be fixed and need more information, logs or ssh access, just let me know and I'll be glad to provide it.
The "loss of signal" indicator is a very low level indication that there is sudden disconnection, but the T1/E1 standard has a timer to indicate red alarm, 4 seconds sounds about right top off my head. However 20 seconds to recover from red alarm is too much. Please contact techdesk@sangoma.com to have a support engineer take a closer look at your problem. Feel free to ping me on IRC as well. *Moises Silva **Software Engineer, Development Manager*** 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> VegaStream is now part of Sangoma!<http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html> Ask us about both Gateway Appliances<http://sangoma.com/products/media_gateways/vega.html> and Internal Gateways<http://sangoma.com/products/software_products/netborder_suite/netborder_express.html>
participants (2)
-
Glaucio Vaz de Mello
-
Moises Silva