Actually, Anthony understood your question and gave you a solution with bonus information. I especially liked the part where you tell Anthony what early media is. That&#39;s kind of like telling a neurosurgeon that a person&#39;s brain is inside the cranium. :P<br>
<br>If you issue a playback without actually answering the call then the net effect is that you are pre_answering the call and the file you are playing is in early media, i.e. you have not actually &quot;answered&quot; the call from a billing perspective. From the caller perspective the file you play is the ringback that they will hear.<br>
<br>Is there something you were curious about beyond sending audio to the caller in early media mode?<br><br>-MC<br><br><div class="gmail_quote">On Thu, Feb 2, 2012 at 1:15 AM, Karl Seacrest <span dir="ltr">&lt;<a href="mailto:karlseacrest@yahoo.com">karlseacrest@yahoo.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><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<span>Thanks for your reply Anthony, <br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span>But i think you didn&#39;t quite understand my question. </span><span>Custom Ring Back Tones (Early Media) is one of the features listed in FreeSWITCH features page and details of </span><span style="font-size:12pt"> </span><span style="font-size:12pt">FreeSWITCH </span><span style="font-size:12pt">Early Media mode is detailed in </span><span style="font-size:12pt">FreeSWITCH wiki</span><span style="font-size:12pt"> : </span><a href="http://wiki.freeswitch.org/wiki/Early_Media" style="font-size:12pt" target="_blank">http://wiki.freeswitch.org/wiki/Early_Media</a></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span><br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span>By pre-answer i mean picking a call in
Early Media mode (Early media is the exchange of information before establishment of a connection) which mean on early media mode, even though an audio is playing like Custom Ring Back Tones, the call is not connected so the caller is not billed.</span></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span>The question again is how can the </span><span style="font-size:12pt">FreeSWITCH</span><span style="font-size:12pt"> </span><span style="font-size:12pt">Early Media feature be used from mod_httapi?</span></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span style="font-size:12pt"><br></span></div><div><font size="3">Also, is there any </font>performance<font size="3"> benefit for using </font><span style="font-size:16px"> </span><span style="font-size:16px">mod_httapi over a framework like Plivo that provide RESTFul features to FreeSWITCH?</span></div>
<div><span style="font-size:16px"><br></span></div><div>Regards</div><div><br></div><div>Karl C.</div><div><br></div><div><br></div><div><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<span><br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span><br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<br></div>  <div style="font-size:12pt;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"> <div style="font-size:12pt;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"> <div dir="ltr">
 <font face="Arial"> <hr size="1">  </font></div><div><div><div><div><span style="font-size:12pt">On Wed, Feb 1, 2012 at
 16:05, Anthony Minessale </span><span dir="ltr" style="font-size:12pt">&lt;<a rel="nofollow" href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span><span style="font-size:12pt"> wrote:</span><br>
</div><div><div><span style="font-size:12pt"><br></span></div><div><span style="font-size:12pt">if you try to play a file it will pre-answer by itself</span></div></div></div></div></div>you can send anything you want via the dialplan inside the {foo=bar}<br>
var expressions and if you enable the permissions you can get the full<br>call data<br><br>On Wed, Feb 1, 2012 at 10:41 AM, Karl Seacrest &lt;<a href="mailto:karlseacrest@yahoo.com" target="_blank">karlseacrest@yahoo.com</a>&gt; wrote:<br>
&gt; Hello,<br>&gt; I will like to know how i can use Pre-Answer feature using the
 mod_httapi.<br>&gt; This is useful to perform operations like playing playing custom caller<br>&gt; tunes or validate the callers phone number from database before the call is<br>&gt; answered.<br>&gt;<br>&gt; How can i achieve this using the FreeSWITCH mod_httapi?<br>
&gt;<br>&gt; Also does mod_httapi send caller information (Caller ID, etc) along when<br>&gt; requesting a URI?<br>&gt;<br>&gt;<br>&gt; Regards<br>&gt; Karl C.<br>&gt;<br>&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>&gt;<br>&gt; Official FreeSWITCH Sites<br>&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>&gt;<br>&gt; FreeSWITCH-dev mailing list<br>&gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>&gt;<br><br><br><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br>MSN:<a href="mailto:anthony_minessale@hotmail.com" target="_blank">anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/PAYPAL:<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a><br>IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br>
sip:<a href="mailto:888@conference.freeswitch.org" target="_blank">888@conference.freeswitch.org</a><br>googletalk:conf+<a href="mailto:888@conference.freeswitch.org" target="_blank">888@conference.freeswitch.org</a><br>pstn:<a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a><br>
<br><br><div><div><div><div>Hi team,<div><br></div><div>I am trying to get these values from the lua script for custom CDR report, I am able to get few values but many variables are missing or getting null value. Any help would be appreciated.</div>






<div>

<br></div><div><div>local aa=session:getVariable(&quot;context&quot;);</div><div>local bb=session:getVariable(&quot;destination_number&quot;);</div><div>local cc=session:getVariable(&quot;caller_id_name&quot;);</div><div>








local dd=session:getVariable(&quot;caller_id_number&quot;);</div><div>local ee=session:getVariable(&quot;network_addr&quot;);</div><div>local ff=session:getVariable(&quot;ani&quot;);</div><div>local ii=session:getVariable(&quot;source&quot;);</div>








<div>local jj=session:getVariable(&quot;chan_name&quot;);</div><div>local kk=session:getVariable(&quot;uuid&quot;);</div><div>local ll=session:getVariable(&quot;created_time&quot;);</div><div>local aa1=session:getVariable(&quot;direction&quot;);</div>








<div>local bb1=session:getVariable(&quot;username&quot;);</div><div>local cc1=session:getVariable(&quot;dialplan&quot;);</div><div>local dd1=session:getVariable(&quot;caller_id_number&quot;);</div><div>local ee1=session:getVariable(&quot;unique_id&quot;);</div>








<div><br></div><div>session:execute(&quot;bridge&quot;,&quot;user/601&quot;);</div><div>session:hangup();</div><div><br></div><div>local ff1=session:getVariable(&quot;answered_time&quot;);</div><div>local hh1=session:getVariable(&quot;created_time&quot;);</div>








<div>local gg1=session:getVariable(&quot;hangup_time&quot;);</div><div>local gg2=session:getVariable(&quot;end_stamp&quot;);</div></div><div><br></div><div>I am getting values for all the above variables except end_stamp, hangup_time, duration, billsec,hangup_cause.</div>








<div><br></div><div><br></div><div>Thanks for your time.</div><div><br></div><div>Thanks,</div><div>Bala</div>
<br></div><br>
<br></div><br>
<br></div><br>
</div><br>_______________________________________________<br>FreeSWITCH-dev mailing list<br><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br><br> </div> </div>  </div></div><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-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>