Add National ISDN 1 support
authorMark Spencer <markster@digium.com>
Wed, 28 May 2003 22:40:26 +0000 (22:40 +0000)
committerMark Spencer <markster@digium.com>
Wed, 28 May 2003 22:40:26 +0000 (22:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1061 65c4cc65-6c06-0410-ace0-fbb531ad65f3

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

index c489e27..92fcacb 100755 (executable)
@@ -6591,6 +6591,10 @@ int load_module()
                } else if (!strcasecmp(v->name, "switchtype")) {
                        if (!strcasecmp(v->value, "national")) 
                                switchtype = PRI_SWITCH_NI2;
+#ifdef PRI_SWITCH_NI1
+                       else if (!strcasecmp(v->value, "ni1"))
+                               switchtype = PRI_SWITCH_NI1;
+#endif
                        else if (!strcasecmp(v->value, "dms100"))
                                switchtype = PRI_SWITCH_DMS100;
                        else if (!strcasecmp(v->value, "4ess"))
index 127207c..ae8e268 100755 (executable)
@@ -15,11 +15,12 @@ context=default
 ;
 ; Switchtype:  Only used for PRI.
 ;
-; national:      National ISDN
+; national:      National ISDN 2 (default)
 ; dms100:        Nortel DMS100
 ; 4ess:           AT&T 4ESS
 ; 5ess:                  Lucent 5ESS
 ; euroisdn:       EuroISDN
+; ni1:            Old National ISDN 1
 ;
 switchtype=national
 ;