<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 Anthony, <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. </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;
">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 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 </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: '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 </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: '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; "><<a rel="nofollow" ymailto="mailto:anthony.minessale@gmail.com" target="_blank" href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></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 <<a ymailto="mailto:karlseacrest@yahoo.com" href="mailto:karlseacrest@yahoo.com">karlseacrest@yahoo.com</a>> wrote:<br>> Hello,<br>> I will like to know how i can use Pre-Answer feature using the
mod_httapi.<br>> This is useful to perform operations like playing playing custom caller<br>> tunes or validate the callers phone number from database before the call is<br>> answered.<br>><br>> How can i achieve this using the FreeSWITCH mod_httapi?<br>><br>> Also does mod_httapi send caller information (Caller ID, etc) along when<br>> requesting a URI?<br>><br>><br>> Regards<br>> Karl C.<br>><br>> _________________________________________________________________________<br>> Professional FreeSWITCH Consulting Services:<br>> <a ymailto="mailto:consulting@freeswitch.org" 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 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><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 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("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>