<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>MC,</span></div><div><br><span></span></div><div><span>Here is the pastebin http://pastebin.freeswitch.org/17056 of my perl script. For the script I just made it display the various channel variables so I can see what values freeswitch will provide me after the call has been bridged or not.</span></div><div><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Michael Collins &lt;msc@freeswitch.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, August 15, 2011 5:30
 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] ORIGINATE_DISPOSITION<br></font><br><div id="yiv522551971"><br><br><div class="yiv522551971gmail_quote">On Mon, Aug 15, 2011 at 5:05 PM, Sam <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:lakersman2006@yahoo.com" target="_blank" href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv522551971gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div><span>I am using perl's $session-&gt;get_variable("originate_disposition");</span></div>
</div></div></blockquote><div>Are you looking at the b-leg's session?</div><div>&nbsp;</div><blockquote class="yiv522551971gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">
<div><br><span></span></div><div><span>Also, how come the "hangup_time" shows zero on answered calls?</span></div></div></div></blockquote><div>Because hangup_time refers to the point in time at which the call was hung up. Since you are in the middle of a call (using the $session object) you will never see the hangup_time because the object ceases to exist once the call leg is disconnected.</div>
<div><br></div><div>I get the impression that you may be using the wrong tool for this particular job, but I'm not sure without seeing it. If you don't mind dropping it on pastebin we'll have a look and give you some suggestions.</div>
<div><br></div><div>-MC</div><div><br></div><blockquote class="yiv522551971gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">
<div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><font face="Arial" size="2"><div class="yiv522551971im"><hr size="1">
<b><span style="font-weight:bold;">From:</span></b> Michael Collins &lt;<a rel="nofollow" ymailto="mailto:msc@freeswitch.org" target="_blank" href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;<br><b><span style="font-weight:bold;">To:</span></b> FreeSWITCH Users Help &lt;<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</div><b><span style="font-weight:bold;">Sent:</span></b> Monday, August 15, 2011 4:58 PM<div><div></div><div class="yiv522551971h5"><br><b><span style="font-weight:bold;">Subject:</span></b> Re: [Freeswitch-users]
 ORIGINATE_DISPOSITION<br></div></div></font><div><div></div><div class="yiv522551971h5"><br><div>And how are you checking the variable? Do you have an event socket open or ... ?<div>-MC<br><br><div>On Mon, Aug 15, 2011 at 4:57 PM, Sam <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:lakersman2006@yahoo.com" target="_blank" href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">
<div><span>It is being generated with a bridge.<br></span></div><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">

<font face="Arial" size="2"><div><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Michael Collins &lt;<a rel="nofollow" ymailto="mailto:msc@freeswitch.org" target="_blank" href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;<br><b><span style="font-weight:bold;">To:</span></b> FreeSWITCH Users Help &lt;<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

</div><b><span style="font-weight:bold;">Sent:</span></b> Monday, August 15, 2011 4:54 PM<div><div></div><div><br><b><span style="font-weight:bold;">Subject:</span></b> Re: [Freeswitch-users] ORIGINATE_DISPOSITION<br>
</div></div></font><div><div></div><div><br><div>And how is it being generated? WIth a bridge or originate or ... ?<div>-MC<br><br><div>On Mon, Aug 15, 2011 at 4:49 PM, Sam <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:lakersman2006@yahoo.com" target="_blank" href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br>


<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">
<div><span>I want to know the B-leg status of the call.<br></span></div><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">


<font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Michael Collins &lt;<a rel="nofollow" ymailto="mailto:msc@freeswitch.org" target="_blank" href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;<br><b><span style="font-weight:bold;">To:</span></b> FreeSWITCH Users Help &lt;<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>


<b><span style="font-weight:bold;">Sent:</span></b> Monday, August 15, 2011 4:31 PM<br><b><span style="font-weight:bold;">Subject:</span></b> Re: [Freeswitch-users] ORIGINATE_DISPOSITION<br></font><div><div></div><div>
<br><div>I think you may be wanting "endpoint_disposition" depending on exactly what you're looking
 at.<div><br></div><div>-MC<br><br><div>On Mon, Aug 15, 2011 at 3:35 PM, Sam <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:lakersman2006@yahoo.com" target="_blank" href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">
<div>For the ORIGINATE_DISPOSITION channel variable, does "SUCCESS" mean the call was ANSWERED?<br></div></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br><br>FreeSWITCH-users mailing list<br><a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>


UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>


<br><br></div></div></div></div></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br><br>FreeSWITCH-users mailing list<br><a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>

<br><br></div></div></div></div></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br><br>FreeSWITCH-users mailing list<br><a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br><br></div></div></div></div></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div><br><br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" 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></div></div></div></body></html>