you can&#39;t that&#39;s why i said it was a horrible approach.<br>That&#39;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">&lt;<a href="mailto:pmhshz@gmail.com">pmhshz@gmail.com</a>&gt;</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>
&gt;<br>
&gt; the leg you are running the script on is not hungup, the other leg of the<br>
&gt; call is.<br>
&gt;<br>
&gt; If it was hungup you would not be executing the script.<br>
&gt;<br>
&gt; Asterisk and the h ext and the whole dead-agi thing are all poor design<br>
&gt; showing it&#39;s teeth.<br>
&gt; We do not support anything like it.<br>
&gt;<br>
&gt;<br>
&gt; You can however try this: (see the link below)<br>
&gt;<br>
&gt; <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>

&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Feb 2, 2009 at 6:53 AM, shehzad p &lt;<a href="mailto:pmhshz@gmail.com">pmhshz@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Is there any settings that when call hangup control can be transferred to<br>
&gt;&gt; another context and these CDR values can be accessible there? (just like<br>
&gt;&gt; in<br>
&gt;&gt; Asterisk, h extension)<br>
&gt;&gt;<br>
&gt;&gt; shehzad p wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I need to process some CDR variables in Dialplan, like call duration,<br>
&gt;&gt; &gt; Answered time etc.<br>
&gt;&gt; &gt; but when I place info application after bridge, it is not listing them<br>
&gt;&gt; &gt; properly as below:<br>
&gt;&gt; &gt; ===========================================<br>
&gt;&gt; &gt; Caller-Channel-Created-Time: [1233573341672157]<br>
&gt;&gt; &gt; Caller-Channel-Answered-Time: [1233573342712939]<br>
&gt;&gt; &gt; Caller-Channel-Hangup-Time: [0]<br>
&gt;&gt; &gt; ==========================================<br>
&gt;&gt; &gt; Here Hangup time is 0, So how can I find actual values?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --I know that we can use xml_cdr or cdr_csv, but my current need is to<br>
&gt;&gt; get<br>
&gt;&gt; &gt; those values from dialplan itself so that can be passed to some<br>
&gt;&gt; script...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; thanks,<br>
&gt;&gt; &gt; msp<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <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>

&gt;&gt; Sent from the Freeswitch-users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt;<br>
&gt; AIM: anthm<br>
</div></div>&gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> &lt;<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>&gt;<br>
&gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a>&lt;<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>&gt;<br>
<div class="Ih2E3d">&gt; IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
</div>&gt; <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> &lt;<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>&gt;<br>
<div class="Ih2E3d">&gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>&gt; <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a>&lt;<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>&gt;<br>

&gt; pstn:213-799-1400<br>
&gt;<br>
<div class="Ih2E3d">&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<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>