If you know the uuid of the call you can get any piece of information with uuid_getvar. You can also use uuid_dump to get the complete picture. I believe you can check several vars for information. I'd look at things like endpoint_disposition and DIALSTATUS vars specifically, although I recommend uuid_dump on an existing channel in various scenarios so that you can get a clear picture of what's happening.

Of course, if the originate failed then you'll get that as the result of the originate command instead of a "+OK"

-MC

On Wed, Apr 3, 2013 at 12:38 AM, Ashish gautam <ashish@nms.co.in> wrote:
Hi,

I have connected a PRI line to FreeSWITCH working with mod_freetdm enabled. Calls are going properly. Now, what I want is to get the originate status of each call i.e. whether the call was connected, failed, user busy or whatever the status is. How can I get this status from FreeSWTICH or FreeTDM? I am generating outgoing calls through event socket which receives originate request from a Perl script running on the same server.

Please help and throw some light on this.

--
Regards,
Ashish 

_________________________________________________________________________
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-users mailing list
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




--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org