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
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.
Is there something you were curious about beyond sending audio to the caller in early media mode?
-MC
Thanks for your reply Anthony,But i think you didn't quite understand my question. Custom Ring Back Tones (Early Media) is one of the features listed in FreeSWITCH features page and details of FreeSWITCH Early Media mode is detailed in FreeSWITCH wiki : http://wiki.freeswitch.org/wiki/Early_MediaBy 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.The question again is how can the FreeSWITCH Early Media feature be used from mod_httapi?Also, is there any performance benefit for using mod_httapi over a framework like Plivo that provide RESTFul features to FreeSWITCH?RegardsKarl C.
you can send anything you want via the dialplan inside the {foo=bar}if you try to play a file it will pre-answer by itself
var expressions and if you enable the permissions you can get the full
call data
On Wed, Feb 1, 2012 at 10:41 AM, Karl Seacrest <karlseacrest@yahoo.com> wrote:
> Hello,
> I will like to know how i can use Pre-Answer feature using the mod_httapi.
> This is useful to perform operations like playing playing custom caller
> tunes or validate the callers phone number from database before the call is
> answered.
>
> How can i achieve this using the FreeSWITCH mod_httapi?
>
> Also does mod_httapi send caller information (Caller ID, etc) along when
> requesting a URI?
>
>
> Regards
> Karl C.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting@freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
Hi team,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.local aa=session:getVariable("context");local bb=session:getVariable("destination_number");local cc=session:getVariable("caller_id_name");local dd=session:getVariable("caller_id_number");local ee=session:getVariable("network_addr");local ff=session:getVariable("ani");local ii=session:getVariable("source");local jj=session:getVariable("chan_name");local kk=session:getVariable("uuid");local ll=session:getVariable("created_time");local aa1=session:getVariable("direction");local bb1=session:getVariable("username");local cc1=session:getVariable("dialplan");local dd1=session:getVariable("caller_id_number");local ee1=session:getVariable("unique_id");session:execute("bridge","user/601");session:hangup();local ff1=session:getVariable("answered_time");local hh1=session:getVariable("created_time");local gg1=session:getVariable("hangup_time");local gg2=session:getVariable("end_stamp");I am getting values for all the above variables except end_stamp, hangup_time, duration, billsec,hangup_cause.Thanks for your time.Thanks,Bala
_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org