<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks!<div><br></div><div>I was getting pressure from the client, so I downgraded to openzap. I looked at the code there, though, and it does the same thing, so it will be interesting to see if it exhibits the same issue. If it does, I'll get the updated freetdm in place and see if that fixes it.<div><br></div><div>Is it possible that the interrupt was just reporting something else bad, and that the messages from freetdm are just symptoms, and not the cause?<br><div></div></div><div><br></div><div>-Troy</div><div><div><br></div><div>On Nov 16, 2010, at 9:42 PM, Moises Silva wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">That is good enough. I committed a patch that should fix it, try git pull please.<div><br clear="all">Moises Silva<br>Senior Software Engineer<br>Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada<br>
t. 1 905 474 1990 x128 | e. <a href="mailto:moy@sangoma.com" target="_blank">moy@sangoma.com</a><br>
<br><br><div class="gmail_quote">On Sun, Nov 14, 2010 at 7:10 PM, Troy Anderson <span dir="ltr"><<a href="mailto:freeswitch@tlainvestments.com">freeswitch@tlainvestments.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've been looking deeper into this, and it seems that poll() in zt_wait ftmod_zt.c is returning EINTR, which means it was interrupted by a signal while in the system call (as the error points out). After STFW for a while, the advice is to immediately call poll() again if receiving an EINTR. I would patch the code and try it, but the only place I'm experiencing this is in a busy installation, and I don't want to risk the downtime before getting some feedback as the the viability of such an approach.<br>
<br>
In addition, I am not familiar enough with linux signals to be sure this is a good idea. Is there a way to find out what signal is interrupting the system call? That may be helpful in determining what's going on here.<br>
<br>
Here's the patch I'm considering:<br>
<br>
--- a/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c<br>
+++ b/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c<br>
@@ -885,7 +885,8 @@ static FIO_WAIT_FUNCTION(zt_wait)<br>
memset(&pfds[0], 0, sizeof(pfds[0]));<br>
pfds[0].fd = ftdmchan->sockfd;<br>
pfds[0].events = inflags;<br>
- result = poll(pfds, 1, to);<br>
+ while ((result = poll(pfds, 1, to)) < 0 && errno == EINTR)<br>
+ continue;<br>
*flags = 0;<br>
<br>
if (pfds[0].revents & POLLERR) {<br>
<br>
Any thoughts?<br>
<div class="im"><br>
Thanks,<br>
Troy<br>
<br>
On Nov 12, 2010, at 10:26 AM, Anthony Minessale wrote:<br>
<br>
</div><div><div></div><div class="h5">> sigh, another case of DAHDI issues.<br>
><br>
><br>
> On Fri, Nov 12, 2010 at 10:25 AM, Troy Anderson<br>
> <<a href="mailto:freeswitch@tlainvestments.com">freeswitch@tlainvestments.com</a>> wrote:<br>
>> Thanks for the code change providing additional diagnostics. I finally saw another call drop, but didn't have full logging on at the time. The additional logging provided the following:<br>
>><br>
>> 2010-11-12 11:12:54.906656 [ERR] ftmod_zt.c:904 [s1c23][1:23] Failed to poll DAHDI device: Interrupted system call<br>
>> 2010-11-12 11:12:54.906656 [ERR] ftmod_zt.c:904 [s1c19][1:19] Failed to poll DAHDI device: Interrupted system call<br>
>> 2010-11-12 11:12:54.906656 [WARNING] mod_freetdm.c:660 failed to wait for I/O<br>
>> 2010-11-12 11:12:54.906656 [WARNING] mod_freetdm.c:660 failed to wait for I/O<br>
>> 2010-11-12 11:12:54.906656 [ERR] ftmod_zt.c:904 [s1c20][1:20] Failed to poll DAHDI device: Interrupted system call<br>
>> 2010-11-12 11:12:54.906656 [WARNING] mod_freetdm.c:660 failed to wait for I/O<br>
>> 2010-11-12 11:12:54.906656 [ERR] ftmod_zt.c:904 [s1c21][1:21] Failed to poll DAHDI device: Interrupted system call<br>
>> 2010-11-12 11:12:54.906656 [WARNING] mod_freetdm.c:660 failed to wait for I/O<br>
>><br>
>> I'll turn up logging and see what shows up next time, but any ideas on what may cause this?<br>
>><br>
>> Thanks!<br>
>> Troy<br>
>><br>
>> On Nov 6, 2010, at 2:17 PM, Moises Silva wrote:<br>
>><br>
>>> On Fri, Nov 5, 2010 at 12:58 PM, Troy Anderson<br>
>>> <<a href="mailto:freeswitch@tlainvestments.com">freeswitch@tlainvestments.com</a>> wrote:<br>
>>>> We have an installation with a dual PRI and lots of call volume. Among many successful calls each day, we have been experiencing a one or two dropped per day, and they always coincide with a "failed to wait for I/O" warning from mod_freetdm. I have attempted to track down the root cause in the source and by poring over the logs, but cannot figure it out. I have included the redacted logs here. The log file in question is 10MB and has lots of call data that doesn't relate - I know I risked removing something important, but I tried to put in all the data related to this call.<br>
>>>><br>
>>>> I appreciate any insights or advice on tracking this down.<br>
>>>><br>
>>><br>
>>> If you update your git tree you will be able to get more information<br>
>>> the next time it happens. I added some code to print the reason for<br>
>>> that error to happen.<br>
>>><br>
>>> Moises Silva<br>
>>> Senior Software Engineer<br>
>>> Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON<br>
>>> L3R 9R6 Canada<br>
>>> t. 1 905 474 1990 x128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>
>>><br>
>>> _______________________________________________<br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
> Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
> IRC: <a href="http://irc.freenode.net/" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
> pstn:+19193869900<br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>