You can use ignore_early_media=true if your scenario allows it.<div>-MC<br><br><div class="gmail_quote">On Tue, Jun 14, 2011 at 8:30 AM,  <span dir="ltr">&lt;<a href="mailto:wes-fs@499x.com">wes-fs@499x.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 bgcolor="#ffffff" text="#000000">
    based on the documentation here, it looks like I might be able to
    execute a script, instead of directly doing the record command. 
    Then the script could maybe set the parameters I need?<br>
    <br>
    <a href="http://wiki.freeswitch.org/wiki/Mod_commands#originate" target="_blank">http://wiki.freeswitch.org/wiki/Mod_commands#originate</a><div><div></div><div class="h5"><br>
    <br>
    <br>
    <br>
    On 6/14/2011 10:06 AM, <a href="mailto:wes-fs@499x.com" target="_blank">wes-fs@499x.com</a> wrote:
    <blockquote type="cite">
      
      This did not work, I still heard the ringing.<br>
      <br>
      On 6/10/2011 5:30 PM, Michael Collins wrote:
      <blockquote type="cite">Try this:
        <div><br>
        </div>
        <div>
          
          originate
          {<a href="mailto:media_bug_answer_req=true%7Dsofia/sipinterface_1/912625551212@141.xxx.xxx.xxx" target="_blank">media_bug_answer_req=true}sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx</a> &amp;record(/tmp/myrecording.wav)</div>

        
        <div><br>
        </div>
        <div>Let us know if it works.</div>
        <div>-MC</div>
        <div><br>
          <div class="gmail_quote">On Fri, Jun 10, 2011 at 1:05 PM, <span dir="ltr">&lt;<a href="mailto:wes-fs@499x.com" target="_blank">wes-fs@499x.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"> I&#39;m extremely new to freeswitch, and
              anything like it, so please forgive me!<br>
              <br>
              I&#39;d like to be able to use the API to originate a call and
              record it.<br>
              So far, I have the following figured out:<br>
              <br>
              originate <a href="mailto:sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx" target="_blank">sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx</a><br>
              &amp;record(/tmp/myrecording.wav)<br>
              And it dials out to an external number and successfully
              records the<br>
              conversation.<br>
              <br>
              But, it also records the ringing.  When I was trying this
              through a<br>
              dialplan, I found an option:<br>
              &lt;action application=&quot;set&quot;
              data=&quot;media_bug_answer_req=true&quot;/&gt;<br>
              which delayed the recording until the call was answered.<br>
              <br>
              Is there a way to do the same thing through the API?<br>
              <br>
              Thanks!<br>
              Wes<br>
              <br>
              _______________________________________________<br>
              FreeSWITCH-users mailing list<br>
              <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
            </blockquote>
          </div>
          <br>
        </div>
        <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
      </blockquote>
      <br>
      <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<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></div>