[Freeswitch-users] Delayed start of tone_detect

Michael Collins msc at freeswitch.org
Tue Mar 22 20:26:04 MSK 2011


On Tue, Mar 22, 2011 at 1:29 AM, Stephen Wilde <wstephen80 at gmail.com> wrote:

> I have tested this trick with 1 call and it worked fine but when tested on
> a production environment doesn't work.
>
> The problem seems to be the "sleep" called by "execute_extension" executed
> on answer.
>
> If I activate this extension, I see in freeswitch log:
>
> 2011-03-22 09:18:10.191304 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1326
> 2011-03-22 09:18:10.193260 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1326
> 2011-03-22 09:18:10.194796 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1323
> 2011-03-22 09:18:10.194796 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1323
> 2011-03-22 09:18:10.199238 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1317
> 2011-03-22 09:18:10.204815 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1314
> 2011-03-22 09:18:10.204815 [CRIT] mod_sofia.c:3896 Error Creating Session
> 2011-03-22 09:18:10.214916 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1302
> 2011-03-22 09:18:10.214916 [CRIT] mod_sofia.c:3896 Error Creating Session
> *2011-03-22 09:18:10.377962 [CRIT] switch_time.c:788 Over Session Rate of
> 200!*
>
Notice the above line!

You are overwhelming your system with too many calls in such a short period
of time. Slow things down a bit on your call generation. Also, you can
probably experiment with the sleep time. 500ms might be too long. Try
setting it to something shorter, like 100ms or so. That might help speed
things up a bit. Shaving 400ms off the call may not seem like a lot but if
you're doing hundreds of calls per second then that 400ms will add up
quickly.

-MC



> 2011-03-22 09:18:33.938094 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1266
> 2011-03-22 09:18:33.938094 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1266
> 2011-03-22 09:18:33.939077 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1266
> 2011-03-22 09:18:33.939077 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1266
> 2011-03-22 09:18:33.944077 [CRIT] switch_core_session.c:1646 Throttle
> Error! 1264
> 2011-03-22 09:18:33.944077 [CRIT] mod_sofia.c:3896 Error Creating Session
>
> Stephen
>
> On Tue, Mar 22, 2011 at 8:54 AM, Stephen Wilde <wstephen80 at gmail.com>wrote:
>
>> Thank you Michael, with this trick it works fine!
>>
>>
>> On Tue, Mar 22, 2011 at 6:33 AM, Michael Collins <msc at freeswitch.org>wrote:
>>
>>> Add this to your dialplan...
>>>
>>> <extension name="start tone detect">
>>>    <condition field="destination_number"
>>> data="custom_start_tone_detect">
>>>     <action application="sleep" data="500"/>
>>>     <action application="tone_detect" data="MYTONE 680 ro +5000 set
>>> MYTONE=1"/>
>>>   </condition>
>>> </extension>
>>>
>>> ...then change your export...
>>> <action application="export"
>>> data="nolocal:execute_on_answer=execute_extension
>>> custom_start_tone_detect"/>
>>>
>>> Let us know if that does the trick.
>>>
>>> -MC
>>>
>>> On Mon, Mar 21, 2011 at 12:33 PM, Stephen Wilde <wstephen80 at gmail.com>wrote:
>>>
>>>> I start the tone_detect on answer using "execute_on_answer" as:
>>>>
>>>> <action application="export" data="nolocal:execute_on_answer=tone_detect
>>>> MYTONE 680 ro +5000 set MYTONE=1" />
>>>>
>>>> but I have the necessity to start the tone_detect for example 500ms
>>>> after answer: there is a way to do that in dialplan?
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
> _______________________________________________
> 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/20110322/64a4c155/attachment-0001.html 


More information about the FreeSWITCH-users mailing list