zonedata: Ensure all zones have a default DAHDI_TONE_DIALRECALL.
authorShaun Ruffell <sruffell@digium.com>
Tue, 18 Dec 2012 19:21:04 +0000 (13:21 -0600)
committerRuss Meyerriecks <rmeyerriecks@digium.com>
Fri, 1 Aug 2014 20:53:48 +0000 (15:53 -0500)
The default 'us' tone is most likely better than silence when Asterisk tries to
generate the recall tone on a DAHDI channel.

Internal-Issue-ID: DAHTOOL-63
Reported-By: Igor Kravets
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>

zonedata.c

index 3330c13..437ab0c 100644 (file)
@@ -928,6 +928,8 @@ struct tone_zone builtin_zones[] =
                        { DAHDI_TONE_RECORDTONE, "1400/400,0/15000" },
                        { DAHDI_TONE_INFO, "950/330,1440/330,1800/330,0/1000" },
                        { DAHDI_TONE_STUTTER, "!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425" },
                        { DAHDI_TONE_RECORDTONE, "1400/400,0/15000" },
                        { DAHDI_TONE_INFO, "950/330,1440/330,1800/330,0/1000" },
                        { DAHDI_TONE_STUTTER, "!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425" },
+                       /* DIALRECALL - not specified */
+                       { DAHDI_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" },
                },
          .dtmf_high_level = -10,
          .dtmf_low_level = -10,
                },
          .dtmf_high_level = -10,
          .dtmf_low_level = -10,
@@ -948,6 +950,8 @@ struct tone_zone builtin_zones[] =
                        /* This should actually be 950+1400+1800, but we only support 2 tones at a time */
                        { DAHDI_TONE_INFO,       "!950+1400/300,!0/1000,!950+1400/300,!0/1000,!950+1400/1000,0" },
                        { DAHDI_TONE_STUTTER,    "!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,450" },
                        /* This should actually be 950+1400+1800, but we only support 2 tones at a time */
                        { DAHDI_TONE_INFO,       "!950+1400/300,!0/1000,!950+1400/300,!0/1000,!950+1400/1000,0" },
                        { DAHDI_TONE_STUTTER,    "!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,!450/100,!0/100,450" },
+                       /* DIALRECALL - not specified */
+                       { DAHDI_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" },
                },
                .dtmf_high_level = -10,
                .dtmf_low_level = -10,
                },
                .dtmf_high_level = -10,
                .dtmf_low_level = -10,
@@ -996,6 +1000,8 @@ struct tone_zone builtin_zones[] =
                        { DAHDI_TONE_INFO, "950/333,1400/333,1800/333,0/1000" },
                        /* STUTTER TONE - not specified */
                        { DAHDI_TONE_STUTTER, "!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425" },
                        { DAHDI_TONE_INFO, "950/333,1400/333,1800/333,0/1000" },
                        /* STUTTER TONE - not specified */
                        { DAHDI_TONE_STUTTER, "!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425" },
+                       /* DIALRECALL - not specified */
+                       { DAHDI_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" },
                },
                .dtmf_high_level = -10,
                .dtmf_low_level = -10,
                },
                .dtmf_high_level = -10,
                .dtmf_low_level = -10,
@@ -1044,6 +1050,8 @@ struct tone_zone builtin_zones[] =
                        { DAHDI_TONE_INFO, "950/330,1450/330,1850/330,0/1000" },
                        /* STUTTER TONE */
                        { DAHDI_TONE_STUTTER, "380+420" },
                        { DAHDI_TONE_INFO, "950/330,1450/330,1850/330,0/1000" },
                        /* STUTTER TONE */
                        { DAHDI_TONE_STUTTER, "380+420" },
+                       /* DIALRECALL - not specified */
+                       { DAHDI_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" },
                },
                .dtmf_high_level = -10,
                .dtmf_low_level = -10,
                },
                .dtmf_high_level = -10,
                .dtmf_low_level = -10,