Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Call Variable not available when call hangup


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
krice at freeswitch.org
Guest





PostPosted: Mon Feb 02, 2009 7:12 am    Post subject: [Freeswitch-users] Call Variable not available when call han Reply with quote

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....


Quote:
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-tp21788550p
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



_______________________________________________
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
Back to top
pmhshz at gmail.com
Guest





PostPosted: Mon Feb 02, 2009 7:56 am    Post subject: [Freeswitch-users] Call Variable not available when call han Reply with quote

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:
Quote:

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-tp21788550p21789152.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
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Feb 02, 2009 9:10 am    Post subject: [Freeswitch-users] Call Variable not available when call han Reply with quote

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



On Mon, Feb 2, 2009 at 6:53 AM, shehzad p <pmhshz@gmail.com (pmhshz@gmail.com)> wrote:
Quote:

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:
Quote:

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-tp21788550p21789152.html

Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
pmhshz at gmail.com
Guest





PostPosted: Mon Feb 02, 2009 10:28 am    Post subject: [Freeswitch-users] Call Variable not available when call han Reply with quote

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:
Quote:

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



On Mon, Feb 2, 2009 at 6:53 AM, shehzad p <pmhshz@gmail.com> wrote:

Quote:

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:
Quote:

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
Quote:
those values from dialplan itself so that can be passed to some
script...
Quote:


thanks,
msp


--
View this message in context:
http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp21788550p21789152.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




--
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-tp21788550p21791503.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
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Feb 02, 2009 10:43 am    Post subject: [Freeswitch-users] Call Variable not available when call han Reply with quote

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 (pmhshz@gmail.com)> wrote:
Quote:


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:
Quote:

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



On Mon, Feb 2, 2009 at 6:53 AM, shehzad p <pmhshz@gmail.com (pmhshz@gmail.com)> wrote:

Quote:

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:
Quote:

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
Quote:
those values from dialplan itself so that can be passed to some
script...
Quote:


thanks,
msp


--
View this message in context:
http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp21788550p21789152.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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


Quote:
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email]) <MSN%3Aanthony_minessale@hotmail.com ([email]MSN%253Aanthony_minessale@hotmail.com[/email])>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])<PAYPAL%3Aanthony.minessale@gmail.com ([email]PAYPAL%253Aanthony.minessale@gmail.com[/email])>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference

Quote:
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email]) <sip%3A888@conference.freeswitch.org ([email]sip%253A888@conference.freeswitch.org[/email])>
iax:guest@conference.freeswitch.org/888

Quote:
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])<googletalk%3Aconf%2B888@conference.freeswitch.org ([email]googletalk%253Aconf%252B888@conference.freeswitch.org[/email])>
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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-tp21788550p21791503.html

Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services