Index: indications.c =================================================================== RCS file: /usr/cvsroot/asterisk/indications.c,v retrieving revision 1.30 diff -u -r1.30 indications.c --- indications.c 24 Oct 2005 20:12:05 -0000 1.30 +++ indications.c 22 Nov 2005 16:31:14 -0000 @@ -432,8 +432,8 @@ free(zone->tones); zone->tones = tmp; } - if (zone->ringcadance) - free((void*)zone->ringcadance); + if (zone->ringcadence) + free((void*)zone->ringcadence); free(zone); } Index: configs/indications.conf.sample =================================================================== RCS file: /usr/cvsroot/asterisk/configs/indications.conf.sample,v retrieving revision 1.30 diff -u -r1.30 indications.conf.sample --- configs/indications.conf.sample 4 Oct 2005 22:51:59 -0000 1.30 +++ configs/indications.conf.sample 22 Nov 2005 16:31:14 -0000 @@ -20,7 +20,7 @@ ; alias = iso[,iso]* ; List of other countries 2-letter iso codes, which have the same ; tone indications. -; ringcadance = num[,num]* +; ringcadence = num[,num]* ; List of durations the physical bell rings. ; dial = tonelist ; Set of tones to be played when one picks up the hook. @@ -61,7 +61,7 @@ [at] description = Austria -ringcadance = 1000,5000 +ringcadence = 1000,5000 ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf dial = 420 busy = 420/400,0/400 @@ -78,7 +78,7 @@ description = Australia ; Reference http://www.acif.org.au/__data/page/3303/S002_2001.pdf ; Normal Ring -ringcadance = 400,200,400,2000 +ringcadence = 400,200,400,2000 ; Distinctive Ring 1 - Forwarded Calls ; 400,400,200,200,400,1400 ; Distinctive Ring 2 - Selective Ring 2 + Operator + Recall @@ -116,7 +116,7 @@ [br] description = Brazil -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425 busy = 425/250,0/250 ring = 425/1000,0/4000 @@ -149,7 +149,7 @@ [ch] description = Switzerland ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425 busy = 425/500,0/500 ring = 425/1000,0/4000 @@ -165,7 +165,7 @@ [cl] description = Chile ; According to specs from Telefonica CTC Chile -ringcadance = 1000,3000 +ringcadence = 1000,3000 dial = 400 busy = 400/500,0/500 ring = 400/1000,0/3000 @@ -179,7 +179,7 @@ [cn] description = China ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 450 busy = 450/350,0/350 ring = 450/1000,0/4000 @@ -194,7 +194,7 @@ [cz] description = Czech Republic ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425/330,0/330,425/660,0/660 busy = 425/330,0/330 ring = 425/1000,0/4000 @@ -211,7 +211,7 @@ [de] description = Germany ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425 busy = 425/480,0/480 ring = 425/1000,0/4000 @@ -227,7 +227,7 @@ [dk] description = Denmark ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425 busy = 425/500,0/500 ring = 425/1000,0/4000 @@ -244,7 +244,7 @@ [ee] description = Estonia ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425 busy = 425/300,0/300 ring = 425/1000,0/4000 @@ -276,7 +276,7 @@ [fi] description = Finland -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425 busy = 425/300,0/300 ring = 425/1000,0/4000 @@ -290,7 +290,7 @@ [fr] description = France ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1500,3500 +ringcadence = 1500,3500 ; Dialtone can also be 440+330 dial = 440 busy = 440/500,0/500 @@ -307,7 +307,7 @@ [gr] description = Greece -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 425/200,0/300,425/700,0/800 busy = 425/300,0/300 ring = 425/1000,0/4000 @@ -321,7 +321,7 @@ [hu] description = Hungary ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1250,3750 +ringcadence = 1250,3750 dial = 425 busy = 425/300,0/300 ring = 425/1250,0/3750 @@ -365,7 +365,7 @@ [mx] description = Mexico -ringcadance = 2000,4000 +ringcadence = 2000,4000 dial = 425 busy = 425/250,0/250 ring = 425/1000,0/4000 @@ -379,7 +379,7 @@ [nl] description = Netherlands ; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf -ringcadance = 1000,4000 +ringcadence = 1000,4000 ; Most of these 425's can also be 450's dial = 425 busy = 425/500,0/500 @@ -440,7 +440,7 @@ [pt] description = Portugal -ringcadance = 1000,5000 +ringcadence = 1000,5000 dial = 425 busy = 425/500,0/500 ring = 425/1000,0/5000 @@ -453,7 +453,7 @@ [ru] description = Russia / ex Soviet Union -ringcadance = 800,3200 +ringcadence = 800,3200 dial = 425 busy = 425/350,0/350 ring = 425/800,0/3200 @@ -465,7 +465,7 @@ [se] description = Sweden -ringcadance = 1000,5000 +ringcadence = 1000,5000 dial = 425 busy = 425/250,0/250 ring = 425/1000,0/5000 @@ -502,7 +502,7 @@ [uk] description = United Kingdom -ringcadance = 400,200,400,2000 +ringcadence = 400,200,400,2000 ; These are the official tones taken from BT SIN350. The actual tones ; used by BT include some volume differences so sound slightly different ; from Asterisk-generated ones. @@ -537,7 +537,7 @@ [us] description = United States / North America -ringcadance = 2000,4000 +ringcadence = 2000,4000 dial = 350+440 busy = 480+620/500,0/500 ring = 440+480/2000,0/4000 @@ -550,7 +550,7 @@ [us-old] description = United States Circa 1950/ North America -ringcadance = 2000,4000 +ringcadence = 2000,4000 dial = 600*120 busy = 500*100/500,0/500 ring = 420*40/2000,0/4000 @@ -574,7 +574,7 @@ ; reorder tone 480+620Hz 0.25 sec. on,0.25 sec. off ; ringing tone 440+480Hz 1 sec. on ,2 sec. off ; -ringcadance = 1000,4000 +ringcadence = 1000,4000 dial = 350+440 busy = 480+620/500,0/500 ring = 440+480/1000,0/2000 @@ -593,7 +593,7 @@ ; Alcatel switches -- mainly in the Western Cape, and Siemens elsewhere. ; The former use 383+417 in dial, ringback etc. The latter use 400*33 ; I've provided both, uncomment the ones you prefer -ringcadance = 400,200,400,2000 +ringcadence = 400,200,400,2000 ; dial/ring/callwaiting for the Siemens switches: dial = 400*33 ring = 400*33/400,0/200,400*33/400,0/2000 Index: include/asterisk/indications.h =================================================================== RCS file: /usr/cvsroot/asterisk/include/asterisk/indications.h,v retrieving revision 1.6 diff -u -r1.6 indications.h --- include/asterisk/indications.h 24 Oct 2005 20:12:06 -0000 1.6 +++ include/asterisk/indications.h 22 Nov 2005 16:31:14 -0000 @@ -53,8 +53,8 @@ char country[5]; /* Country code */ char alias[5]; /* is this an alias? */ char description[40]; /* Description */ - int nrringcadance; /* # registered ringcadance elements */ - int *ringcadance; /* Ring cadence */ + int nrringcadence; /* # registered ringcadence elements */ + int *ringcadence; /* Ring cadence */ struct tone_zone_sound *tones; /* The known tones for this zone */ }; Index: res/res_indications.c =================================================================== RCS file: /usr/cvsroot/asterisk/res/res_indications.c,v retrieving revision 1.17 diff -u -r1.17 res_indications.c --- res/res_indications.c 8 Nov 2005 04:48:00 -0000 1.17 +++ res/res_indications.c 22 Nov 2005 16:31:14 -0000 @@ -182,11 +182,11 @@ ast_cli(fd,"Country Indication PlayList\n" "=====================================\n"); } - j = snprintf(buf,sizeof(buf),"%-7.7s %-15.15s ",tz->country,""); - for (i=0; inrringcadance; i++) { - j += snprintf(buf+j,sizeof(buf)-j,"%d,",tz->ringcadance[i]); + j = snprintf(buf,sizeof(buf),"%-7.7s %-15.15s ",tz->country,""); + for (i=0; inrringcadence; i++) { + j += snprintf(buf+j,sizeof(buf)-j,"%d,",tz->ringcadence[i]); } - if (tz->nrringcadance) j--; + if (tz->nrringcadence) j--; ast_copy_string(buf+j,"\n",sizeof(buf)-j); ast_cli(fd,buf); for (ts=tz->tones; ts; ts=ts->next) @@ -271,26 +271,26 @@ while(v) { if (!strcasecmp(v->name, "description")) { ast_copy_string(tones->description, v->value, sizeof(tones->description)); - } else if (!strcasecmp(v->name,"ringcadance")) { + } else if ((!strcasecmp(v->name,"ringcadence"))||(!strcasecmp(v->name,"ringcadance"))) { char *ring,*rings = ast_strdupa(v->value); c = rings; ring = strsep(&c,","); while (ring) { int *tmp, val; if (!isdigit(ring[0]) || (val=atoi(ring))==-1) { - ast_log(LOG_WARNING,"Invalid ringcadance given '%s' at line %d.\n",ring,v->lineno); + ast_log(LOG_WARNING,"Invalid ringcadence given '%s' at line %d.\n",ring,v->lineno); ring = strsep(&c,","); continue; } - tmp = realloc(tones->ringcadance,(tones->nrringcadance+1)*sizeof(int)); + tmp = realloc(tones->ringcadence,(tones->nrringcadence+1)*sizeof(int)); if (!tmp) { ast_log(LOG_WARNING, "Out of memory\n"); ast_config_destroy(cfg); return -1; } - tones->ringcadance = tmp; - tmp[tones->nrringcadance] = val; - tones->nrringcadance++; + tones->ringcadence = tmp; + tmp[tones->nrringcadence] = val; + tones->nrringcadence++; /* next item */ ring = strsep(&c,","); }