<html><body><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)"; #US RINGBACK TONE</div><div><br>if ($session->ready ()) <br>{ <br> #set
bridge settings<br> $session->execute("set", "ringback=$ringback_tone"); #set the ringback tone type<br> $session->execute("set", "instant_ringback=true"); #set to ring instantly<br> $session->execute("set", "ignore_early_media=false"); #set to NOT ignore early media<br> $session->execute("set", "call_timeout=20"); #only works if "ignore_early_media=true"<br> $session->execute("set", "bridge_answer_timeout=20"); <br> $session->execute("set",
"progress_timeout=15");<br> $session->execute("set", "continue_on_fail=false");<br> $session->execute("set", "hangup_after_bridge=true"); <br> $session->execute("set", "bridge_pre_execute_bleg_app=info"); <br> $session->execute("bridge", "sofia/gateway/carrier1/5214498052059");<br> $session->hangup();<br>}</div></div></body></html>