<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello everyone,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is it possible to have some help in setting up mod_spandsp for call progress tone detection? I have not been successful thus far. I keep getting an “error reading frame” message like this one below.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>===============================================================================================<o:p></o:p></p><p class=MsoNormal>2012-04-09 16:03:22.550303 [DEBUG] mod_spandsp_dsp.c:379 (sofia/internal/sip:1000@184.162.247.104:32986) Starting tone detection for '1'<o:p></o:p></p><p class=MsoNormal>2012-04-09 16:03:22.550303 [INFO] mod_spandsp_dsp.c:411 (sofia/internal/sip:1000@184.162.247.104:32986) initializing tone detector<o:p></o:p></p><p class=MsoNormal>2012-04-09 16:03:22.550303 [DEBUG] switch_core_media_bug.c:462 Attaching BUG to sofia/internal/sip:1000@184.162.247.104:32986<o:p></o:p></p><p class=MsoNormal>2012-04-09 16:03:22.590301 [DEBUG] switch_core_io.c:340 Setting BUG Codec PCMU:0<o:p></o:p></p><p class=MsoNormal>2012-04-09 16:03:22.590301 [INFO] mod_spandsp_dsp.c:422 (sofia/internal/sip:1000@184.162.247.104:32986) error reading frame<o:p></o:p></p><p class=MsoNormal>2012-04-09 16:03:22.590301 [INFO] mod_spandsp_dsp.c:447 (sofia/internal/sip:1000@184.162.247.104:32986) destroying tone detector<o:p></o:p></p><p class=MsoNormal>===============================================================================================<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My spandsp.conf.xml file:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>===============================================================================================<o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver'>configuration</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"spandsp.conf"</span></i> <span style='color:#7F007F'>description</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"Tone detector descriptors"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>descriptors</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:#3F5FBF'><!-- These tones are defined in Annex to ITU Operational Bulletin No. 781 - 1.II.2003 --></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:#3F5FBF'><!-- Various Tones Used in National Networks (According to ITU-T Recommendation E.180)(03/1998) --></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:#3F5FBF'><!-- North America --></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>descriptor</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"1"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"CED_TONE"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"2100"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"500"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"SIT"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"950"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"256"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"400"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"1400"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"256"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"400"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"1800"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"256"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"400"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"REORDER_TONE"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"480"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"620"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"224"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"272"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"224"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"272"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"BUSY_TONE"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"480"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"620"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"464"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"516"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>element</span><span style='font-size:10.0pt;font-family:Consolas'> <span style='color:#7F007F'>freq1</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>freq2</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>min</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"464"</span></i> <span style='color:#7F007F'>max</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"516"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>tone</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>descriptor</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F'>descriptors</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>></span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Consolas;color:teal'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver'>configuration</span><span style='font-size:10.0pt;font-family:Consolas;color:teal'>><o:p></o:p></span></p><p class=MsoNormal>===============================================================================================<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you for your help.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Jean-Marc.<o:p></o:p></p></div></body></html>