[Freeswitch-users] (no subject)

Sam lakersman2006 at yahoo.com
Wed Aug 3 03:26:23 MSD 2011


No, still same behavior.



________________________________
From: Michael Collins <msc at freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Sent: Tuesday, August 2, 2011 3:56 PM
Subject: Re: [Freeswitch-users] (no subject)


One last thing... put this as the last line of your script:

1;

In other words, end it with w "true" value. I saw that on the wiki, and as you know, wikis are NEVER wrong. :P

-MC



On Tue, Aug 2, 2011 at 3:48 PM, Sam <lakersman2006 at yahoo.com> wrote:

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.
>
>
>
>
>________________________________
>From: Michael Collins <msc at freeswitch.org>
>To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>Sent: Tuesday, August 2, 2011 3:14 PM
>
>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 TONE
>my $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 to 
>
>
>if ($session->ready())
>
>
>Make sure that you fix that before testing further. :)
>
>
>-MC
>
>On Tue, Aug 2, 2011 at 1:38 PM, Sam <lakersman2006 at 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.
>>
>>
>>
>>
>>________________________________
>>From: Michael Collins <msc at freeswitch.org>
>>To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>>Sent: Tuesday, August 2, 2011 1:29 PM
>>
>>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?
>>
>>
>>-MC
>>
>>
>>On Tue, Aug 2, 2011 at 1:19 PM, Sam <lakersman2006 at 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 at freeswitch.org>
>>>To: FreeSWITCH Users Help <freeswitch-users at 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 at yahoo.com> wrote:
>>>
>>>MC,
>>>>
>>>>
>>>>Here is the link to the console/ sip trace log http://pastebin.freeswitch.org/16945
>>>>
>>>>
>>>
>>>
>>>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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110802/7867b268/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list