Hello,<br>the bench that gives me a problem is the following:<br><br><span style="font-family: courier new,monospace; background-color: rgb(255, 102, 102);">asterisk1 + spandsp ===>===PSTN===>=== asterisk2 + spandsp
</span><br><br>1) i put a .call file inside Asterisk spool directory<br>2) the fax is sent successfully, I got this message in the sender's log:<br><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">
....</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:02] DEBUG[17610] app_txfax.c: FLOW FAX Set tx type 8
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:03] DEBUG[17610] app_txfax.c: FLOW FAX Set rx type 0
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:03] DEBUG[17610] app_txfax.c: FLOW FAX Set tx type 4
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:04] DEBUG[17610] app_txfax.c: FLOW FAX Set rx type 4
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:04] DEBUG[17610] app_txfax.c: FLOW FAX Set tx type 0
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:05] DEBUG[17610] app_txfax.c: FLOW FAX Set rx type 0
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:05] DEBUG[17610] app_txfax.c: FLOW FAX Set tx type 4
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:06] DEBUG[17610] app_txfax.c: FLOW FAX Set rx type 0
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:06] DEBUG[17610] app_txfax.c: FLOW FAX Set tx type 1
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:07] DEBUG[17610] app_txfax.c: FLOW FAX Set rx type 13
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:07] DEBUG[17610] app_txfax.c: FLOW FAX FAX exchange complete
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:07] DEBUG[17610] app_txfax.c: FLOW FAX Set tx type 13
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">[Oct 4 17:57:07] DEBUG[17610] app_txfax.c: FLOW FAX FAX exchange complete
</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><br>3) the fax .tiff file is well created on the rx side<br>4) But the .call file is never erased by Asterisk, because app_txfax.c never finish.
<br>Same behavior at the other end for app_rxfax.c, it never finish.<br>It is as if spandsp did not detect that the fax session was finished.<br><br>Nota: I have tried with this bench also, and I got the same behavior : the app_txfax.c stay inside the while loop :
<br><span style="font-family: courier new,monospace; background-color: rgb(255, 102, 102);">asterisk1 + spandsp ===>===PSTN===>=== HW fax</span><br><br>I have tried put some traces inside app_txfax and app_rxfax, and I see well that both programs are staying inside the while loop without leaving it.
<br><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">while (ast_waitfor(chan, -1) > -1)</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"> {</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">
....</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);"> }</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">
<br>Is it a configuration problem, or a bug?<br>Any help is welcome.<br><br>Pirlouwi.<br><br>