sip - Freeswitch spandsp.conf.xml Tone settings -
i'm using spandsp tone detection, i'm looking guidance in configuring sit, reorder , busy tone in spandsp.conf.xml brazil.
frequency (freq1/freq2) params in hz understandable, , min/max params seems tone duration. can find these values brazil?
this sample:
<descriptor name="1"> <tone name="ced_tone"> <element freq1="2100" freq2="0" min="700" max="0"/> </tone> <tone name="sit"> <element freq1="950" freq2="0" min="256" max="400"/> <element freq1="1400" freq2="0" min="256" max="400"/> <element freq1="1800" freq2="0" min="256" max="400"/> </tone> <tone name="ring_tone" description="north america ring"> <element freq1="440" freq2="480" min="1200" max="0"/> </tone> <tone name="reorder_tone"> <element freq1="480" freq2="620" min="224" max="316"/> <element freq1="0" freq2="0" min="168" max="352"/> <element freq1="480" freq2="620" min="224" max="316"/> </tone> <tone name="busy_tone"> <element freq1="480" freq2="620" min="464" max="536"/> <element freq1="0" freq2="0" min="464" max="572"/> <element freq1="480" freq2="620" min="464" max="536"/> </tone> </descriptor>
here brazil tones according itu standard:
http://www.itu.int/pub/t-sp-ob.781-2003
but there no mention min/max values. looking see if can provide sample configuration brazil spandsp.conf.xml or insights.
after turning debugging options spandsp.conf.xml found following settings brazil in asterisk indications.conf
busy = 425/250,0/250 congestion = 425/250,0/250,425/750,0/250
debugging freeswitch tone using <descriptors debug-level="2">
in spandsp.conf.xml using fs_cli:
2016-08-21 09:27:37.502533 [debug] mod_spandsp_dsp.c:705 tone segment: f1 = 1, f2 = -1, duration = 240 2016-08-21 09:27:37.762531 [debug] mod_spandsp_dsp.c:705 tone segment: f1 = -1, f2 = -1, duration = 256 2016-08-21 09:27:38.002616 [debug] mod_spandsp_dsp.c:705 tone segment: f1 = 1, f2 = -1, duration = 272 2016-08-21 09:27:38.262532 [debug] mod_spandsp_dsp.c:705 tone segment: f1 = -1, f2 = -1, duration = 240
f1 , f2 frequency , min , max tone duration configurable in min , max. example above:
<tone name="busy_tone"> <element freq1="425" freq2="0" min="224" max="240"/> <element freq1="0" freq2="0" min="240" max="256"/> <element freq1="425" freq2="0" min="240" max="272"/> <element freq1="0" freq2="0" min="224" max="240"/> </tone>
Comments
Post a Comment