maybe you can try doing this in a lua script

sessionB = freeswitch.Session(dial_string)
cause = sessionB:hangupCause()

hopefully you will get the cause value in 'cause',
this should be the equivalent of bridge_hangup_cause in XML dialplan 
but i dont know why the latter is not working (sometimes).



2013/7/10 Lloyd Aloysius <lloyd.aloysius@gmail.com>
Hi All 

When originate fail . The cli shows

mod_dptools.c:3123 Originate Failed.  Cause: ALLOTTED_TIMEOUT

Which channel variables gives this cause value. I try several no luck

bridge_hangup_cause
last_bridge_hangup_cause
hangup_cause_q850


Thanks
LLoyd


_________________________________________________________________________
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