summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2007-05-15 20:45:20 +0000
committerMatthew Fredrickson <creslin@digium.com>2007-05-15 20:45:20 +0000
commit9b5454232c07cde5510c2d1415ccdb0b09618dc7 (patch)
tree1931fecb38a5c266a70ece629fd3e22c7aaae530
parent16a9f0844f58c0af3fc18e17a4789545dbc999ef (diff)
XXX-XXX-XXX appears to be the standard ANSI pointcode format
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_zap.c2
-rw-r--r--configs/zapata.conf.sample2
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 3aa200f74..e5e28e55c 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -7482,7 +7482,7 @@ static unsigned int parse_pointcode(char *pcstring)
unsigned int code1, code2, code3;
int numvals;
- numvals = sscanf(pcstring, "%d.%d.%d", &code1, &code2, &code3);
+ numvals = sscanf(pcstring, "%d-%d-%d", &code1, &code2, &code3);
if (numvals == 1)
return code1;
if (numvals == 3)
diff --git a/configs/zapata.conf.sample b/configs/zapata.conf.sample
index b997cbbae..cdec2940f 100644
--- a/configs/zapata.conf.sample
+++ b/configs/zapata.conf.sample
@@ -676,7 +676,7 @@ immediate=no
; Point code of the linkset. For ITU, this is the decimal number
; format of the point code. For ANSI, this can either be in decimal
-; number format or in the xxx.xxx.xxx format
+; number format or in the xxx-xxx-xxx format
;pointcode = 1
; Point code of node adjacent to this signaling link (Possibly the STP between you and