Difference between revisions of "Zaptel configuration for MOR"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 29: Line 29:
  switchtype=euroisdn
  switchtype=euroisdn
  '''context=from-pstn1'''
  '''context=from-pstn1'''
  group=0
  '''group=1'''
  signalling=pri_cpe
  signalling=pri_cpe
  channel =>1-15,17-31
  channel =>1-15,17-31
Line 36: Line 36:
  switchtype=euroisdn
  switchtype=euroisdn
  '''context=from-pstn2'''
  '''context=from-pstn2'''
  group=0
  '''group=2'''
  signalling=pri_cpe
  signalling=pri_cpe
  channel =>32-46,48-62
  channel =>32-46,48-62
Line 43: Line 43:
  switchtype=euroisdn
  switchtype=euroisdn
  '''context=from-pstn3'''
  '''context=from-pstn3'''
  group=0
  '''group=3'''
  signalling=pri_cpe
  signalling=pri_cpe
  channel =>63-77,79-93
  channel =>63-77,79-93
Line 50: Line 50:
  switchtype=euroisdn
  switchtype=euroisdn
  '''context=from-pstn4'''
  '''context=from-pstn4'''
  group=0
  '''group=4'''
  signalling=pri_cpe
  signalling=pri_cpe
  channel =>94-108,110-124
  channel =>94-108,110-124


'''IMPORTANT! Your file can look different. Make changes ONLY to 'context=' field, DO NOT EDIT ANYTHING ELSE!'''
'''IMPORTANT! Your file can look different. Make changes ONLY to 'context=' and 'group=' fields, DO NOT EDIT ANYTHING ELSE!'''




<br><br>
<br><br>
= MOR Configuration =
= MOR Configuration =

Revision as of 11:43, 12 February 2010

Checking if Zaptel is installed/configured to work with Asterisk properly

In order to configure Zaptel for MOR, Zaptel should be installed and connected to work with Asterisk properly.

To check that in Asterisk CLI issue such command:

CLI> zap show status
Description                              Alarms     IRQ        bpviol     CRC4
wanpipe1 card 0                          OK        0          0          0
wanpipe2 card 1                          OK        0          0          0
wanpipe3 card 2                          OK        0          0          0
wanpipe4 card 3                          OK        0          0          0

Output can be different, but Alarms should show OK.

If you get:

CLI> zap show status
No such command 'zap show' (type 'help' for help)

That means Zaptel is not installed/configured to work with Asterisk properly. Fix it and only after that you can continue in this manual.



Configuring /etc/asterisk/zapata.conf

We as example here will configure each port of ISDN card as separate Provider. For this in /etc/asterisk/zapata.conf file make such changes to context field:

;Sangoma A104 port 1 [slot:1 bus:6 span:1] <wanpipe1>
switchtype=euroisdn
context=from-pstn1
group=1
signalling=pri_cpe
channel =>1-15,17-31
;Sangoma A104 port 2 [slot:1 bus:6 span:2] <wanpipe2>
switchtype=euroisdn
context=from-pstn2
group=2
signalling=pri_cpe
channel =>32-46,48-62
;Sangoma A104 port 3 [slot:1 bus:6 span:3] <wanpipe3>
switchtype=euroisdn
context=from-pstn3
group=3
signalling=pri_cpe
channel =>63-77,79-93
;Sangoma A104 port 4 [slot:1 bus:6 span:4] <wanpipe4>
switchtype=euroisdn
context=from-pstn4
group=4
signalling=pri_cpe
channel =>94-108,110-124

IMPORTANT! Your file can look different. Make changes ONLY to 'context=' and 'group=' fields, DO NOT EDIT ANYTHING ELSE!




MOR Configuration