the leg you are running the script on is not hungup, the other leg of the call is.
If it was hungup you would not be executing the script.
Asterisk and the h ext and the whole dead-agi thing are all poor design showing it's teeth.
We do not support anything like it.
You can however try this: (see the link below)
http://www.nabble.com/Re:-Conference-javascript-and-hanuphooks-giving-me-headaches-p21614840.html
Is there any settings that when call hangup control can be transferred to
another context and these CDR values can be accessible there? (just like in
Asterisk, h extension)
View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp21788550p21789152.html
shehzad p wrote:
>
> Hi all,
>
> I need to process some CDR variables in Dialplan, like call duration,
> Answered time etc.
> but when I place info application after bridge, it is not listing them
> properly as below:
> ===========================================
> Caller-Channel-Created-Time: [1233573341672157]
> Caller-Channel-Answered-Time: [1233573342712939]
> Caller-Channel-Hangup-Time: [0]
> ==========================================
> Here Hangup time is 0, So how can I find actual values?
>
> --I know that we can use xml_cdr or cdr_csv, but my current need is to get
> those values from dialplan itself so that can be passed to some script...
>
>
> thanks,
> msp
>
--
Sent from the Freeswitch-users mailing list archive at Nabble.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