[Freeswitch-users] dtmf-duration

Podrigal, Aron aronp at guaranteedplus.com
Tue Feb 17 19:31:44 MSK 2015


I see, but looks like the dtmf duration is sent with multiples of the rtp
session interval src/switch_rtp.c:4418

On Tue, Feb 17, 2015 at 9:55 AM, Brian West <brian at freeswitch.org> wrote:

> The code in sofia looks at this specifically:
>
> #define *SWITCH_DEFAULT_DTMF_DURATION* 2000
>
> } else if (!strcasecmp(var, "dtmf-duration")) {
>
>
>  uint32_t dur = atoi(val);
>
>
>  if (dur >= switch_core_min_dtmf_duration(0) && dur <=
> switch_core_max_dtmf_duration(0)) {
>
>
>    profile->dtmf_duration = dur;
>
>
>  } else {
>
>
>    profile->dtmf_duration = SWITCH_DEFAULT_DTMF_DURATION;
>
>
>    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Duration out
> of bounds, using default of %d!\n", SWITCH_DEFAULT_DTMF_DURATION);
>
>
>
>  }
>
>
>
>
> }
>
> So either you didn't reload it or you're seeing 'Duration out of bounds,
> using default of 2000' in your logs or you set it to something crazy in
> switch.conf.xml.
>
> On Mon, Feb 16, 2015 at 11:38 PM, Podrigal, Aron <aronp at guaranteedplus.com
> > wrote:
>
>> Hi,
>>
>>
>> I'm setting the dtmf-duration in my profile
>>
>> * <param name="dtmf-duration" value="800"/>*
>>
>> but freeswitch doesn't honor my setting when sending the dtmf
>>
>> 2015-02-17 05:28:36.210973 [DEBUG] switch_ivr_bridge.c:470 Send signal
>> sofia/internal/17183318463 at 198.24.59.141 [BREAK]
>> 2015-02-17 05:28:36.230973 [DEBUG] switch_rtp.c:4346 Send start packet
>> for [#] ts=93280 dur=160/160/2000 seq=39003 lw=93280
>> 2015-02-17 05:28:36.250973 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=320/320/2000 seq=39004 lw=93440
>> 2015-02-17 05:28:36.270973 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=480/480/2000 seq=39005 lw=93600
>> 2015-02-17 05:28:36.290980 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=640/640/2000 seq=39006 lw=93760
>> 2015-02-17 05:28:36.310975 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=800/800/2000 seq=39007 lw=93920
>> 2015-02-17 05:28:36.330975 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=960/960/2000 seq=39008 lw=94080
>> 2015-02-17 05:28:36.350973 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=1120/1120/2000 seq=39009 lw=94240
>> 2015-02-17 05:28:36.373149 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=1280/1280/2000 seq=39010 lw=94400
>> 2015-02-17 05:28:36.390974 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=1440/1440/2000 seq=39011 lw=94560
>> 2015-02-17 05:28:36.410974 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=1600/1600/2000 seq=39012 lw=94720
>> 2015-02-17 05:28:36.430973 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=1760/1760/2000 seq=39013 lw=94880
>> 2015-02-17 05:28:36.450974 [DEBUG] switch_rtp.c:4245 Send middle packet
>> for [#] ts=93280 dur=1920/1920/2000 seq=39014 lw=95040
>> 2015-02-17 05:28:36.470984 [DEBUG] switch_rtp.c:4245 Send end packet for
>> [#] ts=93280 dur=2080/2080/2000 seq=39015 lw=95040
>> 2015-02-17 05:28:36.470984 [DEBUG] switch_rtp.c:4245 Send end packet for
>> [#] ts=93280 dur=2080/2080/2000 seq=39016 lw=95040
>> 2015-02-17 05:28:36.470984 [DEBUG] switch_rtp.c:4245 Send end packet for
>> [#] ts=93280 dur=2080/2080/2000 seq=39017 lw=95040
>>
>>
>> any help? Thanks
>>
>> _________________________________________________________________________
>> 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
>>
>
>
>
> --
>
> *Brian West*
> brian at freeswitch.org
>
>
> *Twitter: @FreeSWITCH , @briankwest*
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
> _________________________________________________________________________
> 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/20150217/9c826af6/attachment-0001.html 


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