<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 link to the console/ sip trace log http://pastebin.freeswitch.org/16945</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 size="2" face="Arial"><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> Tuesday, August 2, 2011 12:16 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] (no subject)<br></font><br><div id="yiv731842681">Get a console log
 w/ siptrace and drop it into <a rel="nofollow" target="_blank" href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a>. Be sure to use "FreeSWITCH Log" as the syntax highlighting. Usually the logs will have ample information to help determine what is happening.<div>
<br></div><div>-MC<br><br><div class="yiv731842681gmail_quote">On Tue, Aug 2, 2011 at 10:43 AM, 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="yiv731842681gmail_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>I am writing a perl script to bridge a call and need to be able to pass back any early media to the caller so I have set "ignore_early_media=false". My problem is that when I am getting early media and then the call finishes, the app seems to be calling the bridge app again to make a new call, even though I have no loops programmed into the script. I have set "hangup_after_bridge=true" but that does not help. Any help would be greatly appreciated.<br>
</div><div><br></div><div><br></div><div>###################################My code#############################################<br></div><div>#!/usr/bin/perl -w</div><div><br>our $session;<br><br>my $ringback_tone = "%(2000,4000,440,480)";&nbsp;&nbsp;&nbsp; #US RINGBACK TONE</div>
<div><br>if ($session-&gt;ready ()) <br>{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; #set
 bridge settings<br>&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "ringback=$ringback_tone");&nbsp;&nbsp;&nbsp; #set the ringback tone type<br>&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "instant_ringback=true");&nbsp;&nbsp;&nbsp; #set to ring instantly<br>
&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "ignore_early_media=false");&nbsp;&nbsp;&nbsp; #set to NOT ignore early media<br>&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "call_timeout=20");&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #only works if "ignore_early_media=true"<br>
&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "bridge_answer_timeout=20"); &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $session-&gt;execute("set",
 "progress_timeout=15");<br>&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "continue_on_fail=false");<br>&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "hangup_after_bridge=true"); <br>&nbsp;&nbsp;&nbsp; $session-&gt;execute("set", "bridge_pre_execute_bleg_app=info"); <br>
&nbsp;&nbsp;&nbsp; $session-&gt;execute("bridge", "sofia/gateway/carrier1/5214498052059");<br>&nbsp;&nbsp;&nbsp; $session-&gt;hangup();<br>}</div></div></div><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a rel="nofollow" target="_blank" href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE<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>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>