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's kind of like telling a neurosurgeon that a person'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 "answered" 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"><<a href="mailto:karlseacrest@yahoo.com">karlseacrest@yahoo.com</a>></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:'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" target="_blank">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 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"><<a rel="nofollow" href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></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 <<a href="mailto:karlseacrest@yahoo.com" target="_blank">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 href="mailto:consulting@freeswitch.org" target="_blank">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" 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><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("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 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>