Change the abbreviated TON from 'A' to 'V', since 'A' is a legitimate DTMF
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Dec 2007 03:34:09 +0000 (03:34 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Dec 2007 03:34:09 +0000 (03:34 +0000)
character.  Also, fix the documentation to match the code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94772 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c
configs/zapata.conf.sample

index d3adaf3..2d61d8c 100644 (file)
@@ -2562,7 +2562,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
                        case 'S':
                                pridialplan = (PRI_TON_SUBSCRIBER << 4) | (pridialplan & 0xf);
                                break;
-                       case 'A':
+                       case 'V':
                                pridialplan = (PRI_TON_ABBREVIATED << 4) | (pridialplan & 0xf);
                                break;
                        case 'R':
@@ -2632,7 +2632,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
                                case 'S':
                                        prilocaldialplan = (PRI_TON_SUBSCRIBER << 4) | (prilocaldialplan & 0xf);
                                        break;
-                               case 'A':
+                               case 'V':
                                        prilocaldialplan = (PRI_TON_ABBREVIATED << 4) | (prilocaldialplan & 0xf);
                                        break;
                                case 'R':
index 5b48ff9..fac1870 100644 (file)
 ; pridialplan may be also set at dialtime, by prefixing the dialled number with
 ; one of the following letters:
 ; U - Unknown
-; P - Private
-; L - Local
-; N - National
 ; I - International
-; D - Dynamic
-; R - Redundant
+; N - National
+; L - Local (Net Specific)
+; S - Subscriber
+; V - Abbreviated
+; R - Reserved (should probably never be used but is included for completeness)
 ;
 ; Additionally, you may also set the following NPI bits (also by prefixing the
 ; dialled string with one of the following letters):
 ; u - Unknown
-; e - E.163/E.164
-; x - X.121
-; f - F.69
+; e - E.163/E.164 (ISDN/telephony)
+; x - X.121 (Data)
+; f - F.69 (Telex)
 ; n - National
 ; p - Private
-; r - Reserved
+; r - Reserved (should probably never be used but is included for completeness)
 ;
 ; You may also set the prilocaldialplan in the same way, but by prefixing the
 ; Caller*ID Number, rather than the dialled number.  Please note that telcos