Hi All,<div><br></div><div>I am running into an intermittent problem with outbound calling. I originate calls (using FreeTDM to Sangoma hardware) from a lua script, and every so often (10-50% of the time) the call disconnects just as the endpoints answers the call. I am executing these calls identically and to the same phone number. Here is CLI output for a call that doesn&#39;t disconnect:</div>

<div><a href="http://pastebin.freeswitch.org/15409">http://pastebin.freeswitch.org/15409</a></div><div><br></div><div>And here is an example of one that does upon answering on the endpoint:</div><div><a href="http://pastebin.freeswitch.org/15408">http://pastebin.freeswitch.org/15408</a></div>

<div><br></div><div>I noticed that one difference is that in the disconnected call there is the following output:</div><div><br></div>2011-02-17 23:11:48.747752 [DEBUG] switch_core_state_machine.c:204 FreeTDM/2:1/09586550654 Standard SOFT_EXECUTE<br>

2011-02-17 23:11:48.747752 [DEBUG] switch_core_state_machine.c:372 (FreeTDM/2:1/09586550654) State SOFT_EXECUTE going to sleep<br><b>2011-02-17 23:11:48.747752 [DEBUG] switch_cpp.cpp:981 FreeTDM/2:1/09586550654 destroy/unlink session from object</b><br>

2011-02-17 23:11:48.747752 [DEBUG] switch_channel.c:2535 (FreeTDM/2:1/09586550654) Callstate Change ACTIVE -&gt; HANGUP<div><br></div><div>I&#39;m wondering what&#39;s triggering that destroy/unlink. I&#39;ve taken this issue up with Sangoma support, they are saying that there is nothing from the HW side that would trigger this, though freeTDM may possible be passing back some variables in a way that causes this and subsequent callstate change.</div>

<div><br></div><div>In case it&#39;s useful, pcaps for the normal,connected call and disconnected fault call are attached.</div><div><br></div><div>Thanks in advance,</div><div>Neil<br><div><br></div></div>