<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>OK. After a bit of further digging I've found that the CF_AUDIO flag is never set on one of the legs (I'm&nbsp;assuming it's&nbsp;leg A working on the principle that the thread always passes data from channel A to channel B). &nbsp;As the flag is not set the function calls&nbsp;<span style="font-size: 12pt;">switch_ivr_sleep()
 for that leg </span><span style="font-size: 12pt;">and that causes the</span><span style="font-size: 12pt;">&nbsp;code to&nbsp;</span><span style="font-size: 12pt;">write</span><span style="font-size: 12pt;">&nbsp;a comfort noise frame.</span></p>
<p><br>
</p>
<p>I've tried changing the&nbsp;<span>flag value in the debugger and I do get the audio stream transmitted to the server (and echoed back) although it's a bit choppy. &nbsp;Now I need to try and determine where this would normally get set and why it isn't in this case.</span></p>
<p><span><br>
</span></p>
<p><span>Paul</span></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> freeswitch-users-bounces@lists.freeswitch.org &lt;freeswitch-users-bounces@lists.freeswitch.org&gt; on behalf of Paul Mateer &lt;Paul.Mateer@outlook.com&gt;<br>
<b>Sent:</b> 10 January 2017 11:18:27<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] No input audio with FSClient</font>
<div>&nbsp;</div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>OK, so I amended the FreeSWITCH.xml for FSClient to add a record_session action before the bridge action&nbsp;of the &quot;number&quot; extension in the default context of the dialplan section, and&nbsp;the client records the input audio stream fine.</p>
<p>I did the same thing in the&nbsp;&quot;echo&quot; extension of the default.xml in the FreeSWITCH&nbsp;dialplan folder and I get a recording of silence. This would seem to fit in with the fact that I don't see any RTP traffic data from the client to the server.</p>
<p><br>
</p>
<p>I have logs from both the server and the client (Debug Level set to 9 with SIP Trace active) but there is nothing notable logged between the start of the call and it's termination (I can provide the logs if that's of any help - and a WireShark trace).</p>
<p><br>
</p>
<p>Paul</p>
<p><br>
</p>
<p>PS. Sorry about the mailing issue yesterday - I think I hit reply to all instead of just reply.</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> freeswitch-users-bounces@lists.freeswitch.org &lt;freeswitch-users-bounces@lists.freeswitch.org&gt; on behalf of Mitch Capper &lt;mitch.capper@gmail.com&gt;<br>
<b>Sent:</b> 09 January 2017 20:44:53<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] No input audio with FSClient</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr"><span style="font-size:12.8px">Under options in FSClient for the event socket you can change them but otherwise just connect like normal debugging and sip_trace might be a good start, &nbsp;you can use fs_logger as well to collect the logs for you
 if desired.&nbsp; Let us know the result of the recording test as well.</span><br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr"><br>
<div>~mitch</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Mon, Jan 9, 2017 at 9:08 AM, Mitch Capper <span dir="ltr">
&lt;<a href="mailto:mitch.capper@gmail.com" target="_blank">mitch.capper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Paul,
<div>One place to start would be to record the call with FSClient and Freeswitch itself see if the audio is on the client but not FS.&nbsp; Enabling logging on the client/server using fs_cli and see anything interesting there.&nbsp; Finally make sure you have the right
 mic input selected in the FSClient options.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="m_-4771717968471077622gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr"><br>
<div>~mitch</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div>
<div class="h5">On Mon, Jan 9, 2017 at 8:58 AM, Paul Mateer <span dir="ltr">&lt;<a href="mailto:paul.mateer@outlook.com" target="_blank">paul.mateer@outlook.com</a>&gt;</span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div lang="EN-GB">
<div class="m_-4771717968471077622m_-2205802969810508195WordSection1">
<p class="MsoNormal">I seem to have a problem with audio input when using FSClient.</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">I have one box running FreeSWITCH and another running FSClient. I can call the server no problem and get audio back (I dialled 9198 to get the Tetris tune) but when I provide an audio stream using the mic and dial 9196 I get nothing back.</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">I know the mic is providing sound and the FreeSWITCH server is operating OK because I can use X-Lite to perform the same test and I get the audio feed played back to me.</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">I'm not sure if there is something amiss in the configuration of FSClient (although it should be the default config) or if something else is amiss (there doesn't appear to be anything odd in the FreeSWITCH log for the client).</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Does anyone have any thoughts on what might be wrong, or what i should look at?</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Paul</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Sent from my Windows 10 phone</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
</div>
</div>
<br>
</div>
</div>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>