<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Thanks for your reply&nbsp;Anthony,&nbsp;<br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>But i think you didn't quite understand my question.&nbsp;</span><span>Custom Ring Back Tones (Early Media) is one of the features listed in FreeSWITCH features page and details of&nbsp;</span><span style="font-size: 12pt; ">&nbsp;</span><span style="font-size: 12pt; ">FreeSWITCH&nbsp;</span><span style="font-size: 12pt; ">Early Media mode is detailed in&nbsp;</span><span style="font-size: 12pt; ">FreeSWITCH wiki</span><span style="font-size: 12pt; ">&nbsp;:&nbsp;</span><a href="http://wiki.freeswitch.org/wiki/Early_Media" style="font-size: 12pt;
 ">http://wiki.freeswitch.org/wiki/Early_Media</a></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>By pre-answer i mean picking a call in
Early Media&nbsp;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: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>The question again is how can the&nbsp;</span><span style="font-size: 12pt; ">FreeSWITCH</span><span style="font-size: 12pt; ">&nbsp;</span><span style="font-size: 12pt; ">Early Media feature be used from mod_httapi?</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; "><br></span></div><div><font size="3">Also, is there any&nbsp;</font>performance<font size="3">&nbsp;benefit for using&nbsp;</font><span style="font-size: 16px;
 ">&nbsp;</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: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  </font></div><div id="yiv1198763641"><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" ymailto="mailto:anthony.minessale@gmail.com" target="_blank" href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span><span style="font-size: 12pt; "> wrote:</span><br></div><div><div class="yiv1198763641gmail_quote"><span style="font-size: 12pt; "><br></span></div><div class="yiv1198763641gmail_quote"><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 ymailto="mailto:karlseacrest@yahoo.com" href="mailto:karlseacrest@yahoo.com">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&nbsp;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&nbsp;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 ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">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 ymailto="mailto:FreeSWITCH-dev@lists.freeswitch.org" href="mailto:FreeSWITCH-dev@lists.freeswitch.org">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 ymailto="mailto:anthony_minessale@hotmail.com" href="mailto:anthony_minessale@hotmail.com">anthony_minessale@hotmail.com</a><br>GTALK/JABBER/PAYPAL:<a ymailto="mailto:anthony.minessale@gmail.com" href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a><br>IRC: irc.freenode.net #freeswitch<br><br>FreeSWITCH Developer Conference<br>sip:<a ymailto="mailto:888@conference.freeswitch.org" href="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</a><br>googletalk:conf+<a
 ymailto="mailto:888@conference.freeswitch.org" href="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</a><br>pstn:+19193869900<br><br><br><div id="yiv58209784"><div class="yiv58209784gmail_quote"><div class="yiv58209784gmail_quote"><div class="yiv58209784gmail_quote">Hi team,<div><br></div><div>I am trying to get these values from the lua script for&nbsp;custom&nbsp;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("context");</div><div>local bb=session:getVariable("destination_number");</div><div>local cc=session:getVariable("caller_id_name");</div><div>







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







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







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







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







<div>local gg1=session:getVariable("hangup_time");</div><div>local gg2=session:getVariable("end_stamp");</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 ymailto="mailto:FreeSWITCH-dev@lists.freeswitch.org" 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><br> </div> </div>  </div></body></html>