[Freeswitch-users] How to force FS generate fake tone on ring-ready (180) message?

Dmitry Mordovin d.mordovin at dwide.com
Fri Sep 23 12:24:10 MSD 2016


Yes, default behavior is correct and used in many cases.

But it would be very flexible to set on B leg variable like 
ringback_start_after_180=true to control RBT

DM

On 09/23/2016 09:50 AM, Michael Jerris wrote:
> that's how it works by default, your doing something to make it do 
> otherwise.
>
> On Thursday, September 22, 2016, Dmitry Mordovin <d.mordovin at dwide.com 
> <mailto:d.mordovin at dwide.com>> wrote:
>
>     My mistake, now ringback configured.
>
>     I made tests for two cases, please see result.
>
>     Case #1 - 180 message. Fake ringback start before recv 180 message
>     (~6sec difference)
>     Log
>     2016-09-22 22:36:38.964370 [NOTICE] switch_channel.c:1104 New
>     Channel sofia/external/11111 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/11111 at 1.1.1.1');>
>     [4df846e3-1c1e-4040-9a76-33d73d5df91b]
>     2016-09-22 22:36:38.984374 [DEBUG] switch_ivr_originate.c:1342
>     Play Ringback Tone [%(2000, 4000, 440.0, 480.0)]
>     2016-09-22 22:36:38.984374 [DEBUG] switch_core_state_machine.c:621
>     (sofia/external/11111 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/11111 at 1.1.1.1');>)
>     State CONSUME_MEDIA
>     ...
>     2016-09-22 22:36:44.024369 [NOTICE] sofia.c:7070 Ring-Ready
>     sofia/external/11111 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/11111 at 1.1.1.1');>!
>     2016-09-22 22:36:44.024369 [DEBUG] switch_channel.c:3343
>     (sofia/external/11111 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/11111 at 1.1.1.1');>)
>     Callstate Change DOWN -> RINGING
>
>
>     Case #2 - 183 message with early media. Fake ringback play 5sec
>     and was replaced with early media from B leg
>     Log
>     2016-09-22 22:42:54.384371 [NOTICE] switch_channel.c:1104 New
>     Channel sofia/external/22222 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/22222 at 1.1.1.1');>
>     [3e7bcf68-a114-4cfd-9b37-f440b5ff59c0]
>     2016-09-22 22:42:54.404374 [DEBUG] switch_ivr_originate.c:1342
>     Play Ringback Tone [%(2000, 4000, 440.0, 480.0)]
>     2016-09-22 22:42:54.404374 [DEBUG] switch_core_state_machine.c:621
>     (sofia/external/22222 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/22222 at 1.1.1.1');>)
>     State CONSUME_MEDIA
>     ...
>     2016-09-22 22:42:59.404371 [NOTICE] sofia_media.c:92 Pre-Answer
>     sofia/external/22222 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/22222 at 1.1.1.1');>!
>     2016-09-22 22:42:59.404371 [DEBUG] switch_channel.c:3471
>     (sofia/external/22222 at 1.1.1.1
>     <javascript:_e(%7B%7D,'cvml','sofia/external/22222 at 1.1.1.1');>)
>     Callstate Change DOWN -> EARLY
>
>
>     For Case #1 - Does it possible configure ringback start play after
>     180 message received? (not before)
>
>
>     DM
>
>
>     On 09/23/2016 02:26 AM, Michael Jerris wrote:
>>     do you have the ringback var set?
>>
>>
>>     like in this example
>>
>>     https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+ring_ready
>>     <https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+ring_ready>
>>
>>>     On Sep 22, 2016, at 6:18 PM, Dmitry Mordovin
>>>     <d.mordovin at dwide.com
>>>     <javascript:_e(%7B%7D,'cvml','d.mordovin at dwide.com');>> wrote:
>>>
>>>     Hello!
>>>
>>>     Don't know what to do in case when no early media...
>>>
>>>     Simplest dialplan configuration
>>>
>>>     <action application="answer"/>
>>>     <action application="set" data="ignore_early_media=false" />
>>>     <action application="set" data="hangup_after_bridge=true" />
>>>
>>>     <action application="bridge" data="sofia/gateway/GW-1/111111 at gw-1"/>
>>>
>>>     <action application="playback" data="subscriber_not_reached.mp3"/>
>>>     <action application="hangup"/>
>>>
>>>     Sometimes recv 183 with early media (rings)
>>>     Sometimes, 180 without early media
>>>
>>>     In last case, A leg hear silence instead alerting.
>>>
>>>     Does it possible to generate tone if no early media?
>>>
>>>     Thnaks
>>>     DM
>>
>>
>>
>>     _________________________________________________________________________
>>     Professional FreeSWITCH Consulting Services:
>>     consulting at freeswitch.org  <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>>     http://www.freeswitchsolutions.com  <http://www.freeswitchsolutions.com>
>>
>>     Official FreeSWITCH Sites
>>     http://www.freeswitch.org
>>     http://confluence.freeswitch.org  <http://confluence.freeswitch.org>
>>     http://www.cluecon.com
>>
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org  <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users  <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users  <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>     http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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/20160923/e19c46c2/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list