Originate the call with api or bgapi originate, then use the xml or json CDR modules to post the results to the webservice From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Shan Randhawa Sent: Friday, January 29, 2016 8:38 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Async Call My goal is to make an asynchronous call and then return the hangup cause or the uuid of the session to php script on xampp server. <https://mailtrack.io/trace/mail/2c80a1fffd25e650733e5b7514cbc5660c70c8e6326470.png> On Fri, Jan 29, 2016 at 7:28 PM, Brian West <brian@freeswitch.org <mailto:brian@freeswitch.org> > wrote: What is you goal? On Friday, January 29, 2016, Shan Randhawa <randhawaay@gmail.com <mailto:randhawaay@gmail.com> > wrote: Respected all, I need some help . I m using this script to make an outbound call and return the status ,How can i make this asynchronous like using bgapi or using execute on answer and run new script but i will still be needing want info about the session in that new script. this_sess = freeswitch.Session("{ignore_early_media=true,setAutoHangup=false,originate_timeout=20,origination_caller_id_number="..callerid.."}sofia/gateway/proxy-301/"..phno) <data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7> -- Brian West brian@freeswitch.org <mailto:brian@freeswitch.org> <http://billing.freeswitch.org/templates/default/img/whmcslogo.png> Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira> ! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> T:+19184209001 <tel:%2B19184209001> | F:+19184209002 <tel:%2B19184209002> | M:+1918424WEST (9378) iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org