<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB">
<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. I'm wondering if this is a possible bug in the FreeSWITCH code?</p>
<p>I see two threads running - each with it's own session and channel. One is an outbound channel called&nbsp;&quot;sofia/softphone/9196&quot;, whilst the other is the inbound channel called&nbsp;&quot;portaudio/<span>sofia/gateway/2/9196&quot;.</span></p>
<p><span><br>
</span></p>
<p><span>Now the CF_AUDIO flag is set on the inbound channel during a call to <span>
switch_core_media_negotiate_sdp()</span>, but as far as I can tell the outbound channel never gets its CF_AUDIO flag set, which is why there's no audio transmitted.&nbsp;</span><span style="font-size: 12pt;">I can correct the problem by adding
</span><span style="font-size: 12pt;">the following call to the if(channel_caller) statement block at the end of&nbsp;switch_ivr</span><span style="font-size: 12pt;">_</span><span style="font-size: 12pt;">originate() method:</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;"><span>&nbsp; &nbsp; switch_channel_set_flag(caller_channel, CF_AUDIO);</span><br>
</span></p>
<p><br>
</p>
<p>but as I only started working with FreeSWITCH before Christmas, I'm&nbsp;not sure if this is a definite issue and whether this is an appropriate correction.</p>
<p><br>
</p>
<p>Does anyone have any thoughts on this?</p>
<p><br>
</p>
<p>Paul</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> Paul Mateer &lt;paul.mateer@outlook.com&gt;<br>
<b>Sent:</b> 09 January 2017 16:58:53<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> No input audio with FSClient</font>
<div>&nbsp;</div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">I seem to have a problem with audio input when using FSClient.</p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></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"><o:p>&nbsp;</o:p></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"><o:p>&nbsp;</o:p></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"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Does anyone have any thoughts on what might be wrong, or what i should look at?</p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Paul</p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Sent from my Windows 10 phone</p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>