Sangoma A102 auto-configuration

callinectes
Posts: 198
Member Since:
2007-05-12

Can anyone help me with setting up a Sangoma A102 on a trixbox Pro SE? During installation I noticed that it was recognized but there was no configuration generated; I confirmed this in the control panel as there are no cards showing as detected. If I run auto detection from the web control panel I do get a notice that "Sangoma A102 with Dual T1/E1
has been detected." but there is no card shown in the drop down box to configure. Also, when I run auto detection from the console I almost immediately get the message "No such file or directory at /var/adm/bin/detect_pstn_cards.pl line 278. Sangoma A102 with Dual T1/E1", then a few lines later I see " WARNING[5952]: asterisk.c:882 quit_handler: Cancelling asterisk shutdown, task already in progress" (which I don't think is related because I have run it again and not received the warning message), then it displays the configuration menu again. If I choose "Show T1 status" I get "No T1 spans found." Can someone take a look at this or at least offer some advice? I would like to stick with auto-detection options if possible but I will obviously resort to editing the config files if necessary. The server is 123135.

FYI, this PCI card appears to be a Sangoma A101 with an A103 daughter card which gives it a second T1 port but is recognized as a A102.

Thanks in advance!



callinectes
Posts: 198
Member Since:
2007-05-12
Also, I checked the

Also, I checked the interrupts and noticed there was no wanpipe interrupt listed.



Mike Joyce
Posts: 402
Member Since:
2007-03-07
callinectes, I ran the

callinectes,

I ran the 'detect pstn' script by hand and it configured your card properly. Not sure to make of this. I'll chat with the Sangoma guys and see if they have any insight here.

Thanks,
Mike



callinectes
Posts: 198
Member Since:
2007-05-12
Okay - so I ran

Okay - so I ran "setup-sangoma" and at the end I got the following:

###################################################################
# SUMMARY #
###################################################################

2 T1/E1 port(s) detected, 2 configured
0 ISDN BRI port(s) detected, 0 configured
0 analog card(s) detected, 0 configured

Configurator has created the following files:
1. Wanpipe config files in /etc/wanpipe
2. Zaptel config file /etc/zaptel.conf
3. Zapata config file /etc/asterisk/zapata-auto.conf

Your original configuration files will be saved to:
1. /etc/zaptel.conf.bak
2. /etc/asterisk/zapata-auto.conf.bak

Your configuration has been saved in /etc/wanpipe/debug-2008-05-14.tgz.
When requesting support, email this file to techdesk@sangoma.com

Press any key to continue:

Zaptel and Wanpipe configuration complete: choose action
1. Save cfg: Restart Asterisk & Wanpipe now
2. Save cfg: Restart Asterisk & Wanpipe when convenient
3. Save cfg: Stop Asterisk & Wanpipe now
4. Save cfg: Stop Asterisk & Wanpipe when convenient
5. Do not save cfg: Exit
[1-5]:1

Error executing command:
amportal stop

Would you like to continue?
1. No - exit
2. YES
[1-2, ENTER='No']:2

Stopping Wanpipe...

Unloading Zaptel modules...

Removing old configuration files...

Copying new Wanpipe configuration files...

Copying new Zaptel configuration file (/etc/zaptel.conf)...

Copying new chan_zap configuration files (/etc/asterisk/zapata-auto.conf)...

Starting Wanpipe...

Starting WAN Router...
Loading WAN drivers: wanpipe done.
Starting up device: wanpipe1
Starting up device: wanpipe2
Configuring interfaces: w1g1
done.
Configuring interfaces: w2g1
done.

Loading Zaptel...
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected

Error executing command:
ztcfg -v

Would you like to continue?
1. No - exit
2. YES
[1-2, ENTER='No']:2

Starting Amportal...
Error executing command:
amportal start

Would you like to continue?
1. No - exit
2. YES
[1-2, ENTER='No']:2

Wanrouter start complete...
Current boot level is 3

Wanrouter boot scripts configuration...

Removing existing wanrouter boot scripts...OK
Would you like wanrouter to start on system boot?
1. YES
2. NO
[1-2]:1

Verifying Zaptel boot scripts...Not installed
Verifying Zaptel shutdown scripts...Not installed
Enabling wanrouter boot scripts ...(level:8)
Enabling wanrouter shutdown scripts ...(level:91)

Would you like to execute 'ztcfg' each time wanrouter starts?
1. YES
2. NO
[1-2]:1

Sangoma cards configuration complete, exiting...

The server then locked up. I rebooted and now in the console when I choose option 9 to "Show T1 Status" I get the following:
Span 1: WPT1/0 B8ZS/ESF Status: OK
Span 2: WPT1/0 B8ZS/ESF Status: OK
(note: they are not connected to T1 service or loopback at this time)

But when I go to the web control panel it still shows no cards configured under basic but under advanced everything seems to be setup properly.

Also, now when I check interrupts IRQ 153 shows wanpipe1, wanpipe2.

Is this sufficient even though the basic interface does not show the card?



callinectes
Posts: 198
Member Since:
2007-05-12
uh oh - we were on there at

uh oh - we were on there at the same time...

How do you run that script by hand?

Thanks Mike (AGAIN!)



Mike Joyce
Posts: 402
Member Since:
2007-03-07
perl

perl /var/adm/bin/detect_pstn_cards.pl -c

Thanks,
Mike



callinectes
Posts: 198
Member Since:
2007-05-12
Okay - so I tried to change

Okay - so I tried to change the configuration since it did start showing the card and after I save the config changes and restart asterisk the server locks up and I have to reboot it. When it comes back up asterisk will not load and I can't get the card to show back up unless I run setup-sangoma (the perl script doesnt seem to work). My biggest issue is that when I run the setup-sangoma and I try to set for fractional channels the setup errors out and fails. So my question is, how do I manually set the channels? Should I manually edit the configs created by setup-sangoma?



callinectes
Posts: 198
Member Since:
2007-05-12
Okay, so I manually edited

Okay, so I manually edited zaptel and zapata - should that be enough? Also, are my manual changes going to get overwritten if any other changes are made via the web interface? This is my concern about manually editing and why I would hope the auto/web configurations would work.



Mike Joyce
Posts: 402
Member Since:
2007-03-07
You can manually change

You can manually change zaptel and zapata in the web interface using the cards page. Clicking on 'advanced mode' essentially opens up a text-editor so that you can edit zaptel and zapata on 'our side' so that the files getting overwritten isn't an issue.



callinectes
Posts: 198
Member Since:
2007-05-12
After getting some sleep and

After getting some sleep and pondering on it a little that obvious alternative presented itself and that is what I did. Thanks!

Any clue why I had to use setup-sangoma (with a little manual editing) to get it to work and why, when I use the basic web interface to change anything, it causes the server to crash? Could it be a firmware issue? If you think so can someone point me in the right direction for finding out and updating if necessary?



Mike Joyce
Posts: 402
Member Since:
2007-03-07
It may be due to your

It may be due to your somewhat to your t1 configuration:

> FYI, this PCI card appears to be a Sangoma A101
> with an A103 daughter card which gives it a second
> T1 port but is recognized as a A102.

I have never seen this setup, it is definitively something we don't test for.

Thanks,
Mike



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.