Hi Adam,<br><br>The key piece of information is this:<br><font face="courier new, monospace">[NOTICE] switch_core_state_machine.c:226 sofia/external/<a href="tel:18005551234" value="+18005551234" target="_blank">18005551234</a> has executed the last dialplan instruction, hanging up.<br>
</font><br>You've enabled "fax detection" on the call but you haven't told the call to actually do anything. From what you're doing it seems like you're wanting to detect a fax and then run the txfax application. But what happens if a fax is not detected? Also, what happens to the call in the interim, i.e. between the time you enable fax detect and the time it actually detects a fax tone? The call needs to do "something" while waiting for a fax tone. You may be better off sending this call to an extension and then having several dialplan actions, like "answer", "spandsp_start_fax_detect", and then a "sleep" or "playback" app, or something for the channel to do while it's waiting for fax tone.<br>
<br>Question: what do you want the call to do if no fax is detected?<br><br>-MC<br><br><div class="gmail_quote">On Fri, Sep 21, 2012 at 10:26 AM, Adam Johnston <span dir="ltr"><<a href="mailto:ajohnston@blimessaging.com" target="_blank">ajohnston@blimessaging.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<div><br></div><div>I've been trying to use the spandsp_start_fax_detect application (with txfax as the callback) from the originate command but I keep getting a hangup before it completes.</div>
<div><br></div><div>
So far I've tried calling the app directly:</div><div><font face="courier new, monospace">originate {ignore_early_media='true'}sofia/gateway/mygateway/<a href="tel:18005551234" value="+18005551234" target="_blank">18005551234</a> &spandsp_start_fax_detect('txfax /tmp/myfax.tif 3 ced')</font></div>
<div><br></div><div>Inline dialplan:</div><div><font face="courier new, monospace">originate {ignore_early_media='true'}sofia/gateway/mygateway/<a href="tel:18005551234" value="+18005551234" target="_blank">18005551234</a> 'spandsp_start_fax_detect:txfax /tmp/myfax.tif 3 ced' inline</font>
</div><div><br></div><div>..plus some other permutations but all end with the same result:</div><div><br></div><div><div><font face="courier new, monospace">[NOTICE] mod_spandsp.c:107 Enabling fax detection 'txfax' '/tmp/myfax.tif'</font></div>
<div><font face="courier new, monospace">[DEBUG] switch_core_media_bug.c:456 Attaching BUG to sofia/external/<a href="tel:18005551234" value="+18005551234" target="_blank">18005551234</a></font></div><div><font face="courier new, monospace">[NOTICE] switch_core_state_machine.c:226 sofia/external/<a href="tel:18005551234" value="+18005551234" target="_blank">18005551234</a> has executed the last dialplan instruction, hanging up.</font></div>
</div><div><br></div><div>Am I misunderstanding how spandsp_start_fax_detect works?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Adam Johnston<br>
</div>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>