diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-28 22:40:26 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-28 22:40:26 +0000 |
commit | 19018a0200e4f40bedf08dd8e1546da1f8374a44 (patch) | |
tree | d39b29fb035897dece7548aa04b300393b96bc25 | |
parent | 77678e18f98b1dd2d91fa3102e4d17f2a827174b (diff) |
Add National ISDN 1 support
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1061 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_zap.c | 4 | ||||
-rwxr-xr-x | configs/zapata.conf.sample | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c489e27ec..92fcacbd4 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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")) diff --git a/configs/zapata.conf.sample b/configs/zapata.conf.sample index 127207c28..ae8e26870 100755 --- a/configs/zapata.conf.sample +++ b/configs/zapata.conf.sample @@ -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 ; |