you can't that's why i said it was a horrible approach.<br>That's also why i posted you the instructions on the only elegant solution to your problem.<br><br><br><div class="gmail_quote">On Mon, Feb 2, 2009 at 9:21 AM, shehzad p <span dir="ltr"><<a href="mailto:pmhshz@gmail.com">pmhshz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
one question is that when javascript is being called from dial plan, I get<br>
the session object already available, It is for A leg of channel,<br>
So when javascript is called after Bridge how can I get the session object<br>
for B leg also?<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
Anthony Minessale-2 wrote:<br>
><br>
> the leg you are running the script on is not hungup, the other leg of the<br>
> call is.<br>
><br>
> If it was hungup you would not be executing the script.<br>
><br>
> Asterisk and the h ext and the whole dead-agi thing are all poor design<br>
> showing it's teeth.<br>
> We do not support anything like it.<br>
><br>
><br>
> You can however try this: (see the link below)<br>
><br>
> <a href="http://www.nabble.com/Re:-Conference-javascript-and-hanuphooks-giving-me-headaches-p21614840.html" target="_blank">http://www.nabble.com/Re:-Conference-javascript-and-hanuphooks-giving-me-headaches-p21614840.html</a><br>
><br>
><br>
><br>
> On Mon, Feb 2, 2009 at 6:53 AM, shehzad p <<a href="mailto:pmhshz@gmail.com">pmhshz@gmail.com</a>> wrote:<br>
><br>
>><br>
>> Is there any settings that when call hangup control can be transferred to<br>
>> another context and these CDR values can be accessible there? (just like<br>
>> in<br>
>> Asterisk, h extension)<br>
>><br>
>> shehzad p wrote:<br>
>> ><br>
>> > Hi all,<br>
>> ><br>
>> > I need to process some CDR variables in Dialplan, like call duration,<br>
>> > Answered time etc.<br>
>> > but when I place info application after bridge, it is not listing them<br>
>> > properly as below:<br>
>> > ===========================================<br>
>> > Caller-Channel-Created-Time: [1233573341672157]<br>
>> > Caller-Channel-Answered-Time: [1233573342712939]<br>
>> > Caller-Channel-Hangup-Time: [0]<br>
>> > ==========================================<br>
>> > Here Hangup time is 0, So how can I find actual values?<br>
>> ><br>
>> > --I know that we can use xml_cdr or cdr_csv, but my current need is to<br>
>> get<br>
>> > those values from dialplan itself so that can be passed to some<br>
>> script...<br>
>> ><br>
>> ><br>
>> > thanks,<br>
>> > msp<br>
>> ><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp21788550p21789152.html" target="_blank">http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp21788550p21789152.html</a><br>
>> Sent from the Freeswitch-users mailing list archive at Nabble.com.<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Freeswitch-users mailing list<br>
>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
</div></div>> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
<div class="Ih2E3d">> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
</div>> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> pstn:213-799-1400<br>
><br>
<div class="Ih2E3d">> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
--<br>
</div>View this message in context: <a href="http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp21788550p21791503.html" target="_blank">http://www.nabble.com/Call-Variable-not-available-when-call-hangup-tp21788550p21791503.html</a><br>
<div><div></div><div class="Wj3C7c">Sent from the Freeswitch-users mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>