Call Variable not available when call hangup
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 -- View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855... Sent from the Freeswitch-users mailing list archive at Nabble.com.
As I told you on IRC, the call is not completed at that stage... So there is no hangup time... You must post process the call or figure out your own start answer and stop times....
From: shehzad p <pmhshz@gmail.com> Reply-To: <freeswitch-users@lists.freeswitch.org> Date: Mon, 2 Feb 2009 04:07:57 -0800 (PST) To: <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] Call Variable not available when call hangup
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 -- View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855... 21788550.html 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
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) 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
-- View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855... Sent from the Freeswitch-users mailing list archive at Nabble.com.
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-hea... On Mon, Feb 2, 2009 at 6:53 AM, shehzad p <pmhshz@gmail.com> wrote:
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)
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
-- View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855... 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
one question is that when javascript is being called from dial plan, I get the session object already available, It is for A leg of channel, So when javascript is called after Bridge how can I get the session object for B leg also? Anthony Minessale-2 wrote:
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-hea...
On Mon, Feb 2, 2009 at 6:53 AM, shehzad p <pmhshz@gmail.com> wrote:
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)
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
-- View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855... 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855... Sent from the Freeswitch-users mailing list archive at Nabble.com.
you can't that's why i said it was a horrible approach. That's also why i posted you the instructions on the only elegant solution to your problem. On Mon, Feb 2, 2009 at 9:21 AM, shehzad p <pmhshz@gmail.com> wrote:
one question is that when javascript is being called from dial plan, I get the session object already available, It is for A leg of channel, So when javascript is called after Bridge how can I get the session object for B leg also?
Anthony Minessale-2 wrote:
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-hea...
On Mon, Feb 2, 2009 at 6:53 AM, shehzad p <pmhshz@gmail.com> wrote:
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)
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
-- View this message in context:
http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855...
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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com>< MSN%3Aanthony_minessale@hotmail.com<MSN%253Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> <PAYPAL%3Aanthony.minessale@gmail.com<PAYPAL%253Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org>< sip%3A888@conference.freeswitch.org<sip%253A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> <googletalk%3Aconf%2B888@conference.freeswitch.org<googletalk%253Aconf%252B888@conference.freeswitch.org>
pstn:213-799-1400
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp2178855... 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (3)
-
Anthony Minessale
-
Ken Rice
-
shehzad p