One last thing... put this as the last line of your script:
I made the corrections you suggested in my code, but still the same behavior. The bridge app seems to be in some type of internal loop and it does not end.
Sent: Tuesday, August 2, 2011 3:14 PM
From: Michael Collins <msc@freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] (no subject)Just a thought... try adding another "breakout" for your loop...#!/usr/bin/perl -w
our $session;
my $ringback_tone = "%(2000,4000,440,480)"; #US RINGBACK TONEmy $end_call = 0;
if ( $session->ready() && !$end_call )
{
#set bridge settings
$session->execute("set", "ringback=$ringback_tone"); #set the ringback tone type
$session->execute("set", "instant_ringback=true"); #set to ring instantly
$session->execute("set", "ignore_early_media=false"); #set to NOT ignore early media
$session->execute("set", "call_timeout=20"); #only works if "ignore_early_media=true"
$session->execute("set", "bridge_answer_timeout=20");
$session->execute("set", "progress_timeout=15");
$session->execute("set", "continue_on_fail=false");
$session->execute("set", "hangup_after_bridge=true");
$session->execute("set", "bridge_pre_execute_bleg_app=info");
$session->execute("bridge", "sofia/gateway/carrier1/5214498052059");
$session->hangup();
$end_call = 1;}Also, I don't know if it was a typo or not, but you had this:if ($session->ready ())as opposed toif ($session->ready())Make sure that you fix that before testing further. :)-MCOn Tue, Aug 2, 2011 at 1:38 PM, Sam <lakersman2006@yahoo.com> wrote:In the pastebin, that was only 1 single call that was executed with the bridge app. The issue is that once the call channel is shutdown, a new channel gets created even though the call should be hung up. And I have noticed that this occurs when I leave out $session->answer(); in the beginning of the script. I was told by someone else on the mailing list to leave out $session->answer(); since the call has already been answered by the dialplan.
Sent: Tuesday, August 2, 2011 1:29 PM
From: Michael Collins <msc@freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] (no subject)In your pastebin of the call log, how many different calls was that? I saw like 4 incoming calls, however I couldn't specifically see the issue you were experiencing. Can you look at your log and see if you can isolate the approximate log lines where the issue is occurring?-MCOn Tue, Aug 2, 2011 at 1:19 PM, Sam <lakersman2006@yahoo.com> wrote:Here is my dialplan, pretty straight forward.<extension name="public_did">
<condition field="destination_number" expression="^(\d{11})|(\d{10})$">
<action application="perl" data="/usr/local/freeswitch/scripts/test2.pl"/>
</condition>
</extension>
From: Michael Collins <msc@freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Sent: Tuesday, August 2, 2011 1:08 PM
Subject: Re: [Freeswitch-users] (no subject)
_______________________________________________On Tue, Aug 2, 2011 at 12:30 PM, Sam <lakersman2006@yahoo.com> wrote:
Not sure what is happening. Pastebin the dialplan extension(s) that handle this call. Something interesting must be going on.-MC
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org