[Asterisk-bsd] bristuffed asterisk for hfc-s chips

Georg gs at grin.com
Tue Jun 6 01:32:58 MST 2006


Hi everyone,

I'm trying to set up a system (with FreeBSD 6.0 and 6.1) with asterisk (bristuffed) and a HFC based 
ISDN card.
The same hardware works under Linux - but I wanted to do it with FreeBSD.

So I installed the port /usr/ports/net/asterisk-bristuff.
The installation went without any problems.

Just one basic question: Is this port designed to work with HFC based cards/chips??

My /usr/local/etc/zaptel.conf looks like this:
------------
loadzone=nl
defaultzone=nl
span=1,1,3,ccs,ami
bchan=1-2
dchan=3
------------

In my zapata.conf in /usr/local/etc/asterisk/zapata.conf I use the following settings (which work 
fine under Linux):
------------------
switchtype=euroisdn
signalling=bri_net_ptmp
------------------


When I startup asterisk I always get the following error:
----
   == Parsing '/usr/local/etc/asterisk/zapata.conf': Found
Jun  6 07:56:46 ERROR[26954]: chan_zap.c:10648 setup_zap: Unknown signalling method 'bri_net_ptmp'
Jun  6 07:56:46 ERROR[26954]: chan_zap.c:10273 setup_zap: Signalling must be specified before any 
channels are.
Jun  6 07:56:46 WARNING[26954]: loader.c:414 __load_resource: chan_zap.so: load_module failed, 
returning -1
Jun  6 07:56:46 WARNING[26954]: loader.c:554 load_modules: Loading module chan_zap.so failed!

----

So I startet looking in the source and at the libraries. The first thing is: Why are there different 
sized chan_zap.so and why is the smaller one (which differs from bristuff-port) from the 
non-bristuff installed?:
----------------
[server] /usr/ports/net/asterisk-bristuff# ls -la 
/usr/ports/net/asterisk-bristuff/work/asterisk-1.2.7.1/channels/chan_zap.so
-rwxr-xr-x  1 root  wheel  265654 Jun  6 07:30 
/usr/ports/net/asterisk-bristuff/work/asterisk-1.2.7.1/channels/chan_zap.so

[server] /usr/ports/net/asterisk-bristuff# ls -la /usr/local/lib/asterisk/modules/chan_zap.so*
-r-xr-xr-x  1 root  wheel  257680 Jun  6 07:32 /usr/local/lib/asterisk/modules/chan_zap.so
----------------


Lokking at chan_zap.c I could not find any line saying something about "bri_*"-signalling like in 
the patched sources on my linux-box:
Here is the code on my 6.0 FreeBSD box:
------------
#ifdef ZAPATA_PRI
                                 } else if (!strcasecmp(v->value, "pri_net")) {
                                         cur_radio = 0;
                                         cur_signalling = SIG_PRI;
                                         pritype = PRI_NETWORK;
                                 } else if (!strcasecmp(v->value, "pri_cpe")) {
                                         cur_signalling = SIG_PRI;
                                         cur_radio = 0;
                                         pritype = PRI_CPE;
                                 } else if (!strcasecmp(v->value, "gr303fxoks_net")) {
                                         cur_signalling = SIG_GR303FXOKS;
                                         cur_radio = 0;
                                         pritype = PRI_NETWORK;
                                 } else if (!strcasecmp(v->value, "gr303fxsks_cpe")) {
                                         cur_signalling = SIG_GR303FXSKS;
                                         cur_radio = 0;
                                         pritype = PRI_CPE;
#endif
#ifdef ZAPATA_R2
------------

...and here on my Linux-Box:
----------------
#ifdef ZAPATA_PRI
                                 } else if (!strcasecmp(v->value, "pri_net")) {
                                         cur_radio = 0;
                                         cur_signalling = SIG_PRI;
                                         pritype = PRI_NETWORK;
                                 } else if (!strcasecmp(v->value, "pri_cpe")) {
                                         cur_signalling = SIG_PRI;
                                         cur_radio = 0;
                                         pritype = PRI_CPE;
                                 } else if (!strcasecmp(v->value, "gr303fxoks_net")) {
                                         cur_signalling = SIG_GR303FXOKS;
                                         cur_radio = 0;
                                         pritype = PRI_NETWORK;
                                 } else if (!strcasecmp(v->value, "gr303fxsks_cpe")) {
                                         cur_signalling = SIG_GR303FXSKS;
                                         cur_radio = 0;
                                         pritype = PRI_CPE;
                         } else if (!strcasecmp(v->value, "bri_net_ptmp")) {
                                 cur_radio = 0;
                                 cur_signalling = SIG_PRI;
                                 pritype = BRI_NETWORK_PTMP;
                         } else if (!strcasecmp(v->value, "bri_cpe_ptmp")) {
                                 cur_signalling = SIG_PRI;
                                 cur_radio = 0;
                                 pritype = BRI_CPE_PTMP;
                         } else if (!strcasecmp(v->value, "bri_net")) {
                                 cur_radio = 0;
                                 cur_signalling = SIG_PRI;
                                 pritype = BRI_NETWORK;
                         } else if (!strcasecmp(v->value, "bri_cpe")) {
                                 cur_signalling = SIG_PRI;
                                 cur_radio = 0;
                                 pritype = BRI_CPE;
#endif
#ifdef ZAPATA_R2
----------------

It seems that all the code for the signalling with HFC-based cards is missing or am I doing 
something comletely wrong? What do I have to do to enable all the "bri_*"-type signalling?


Thanks for any reply!

Regards,

Georg


More information about the Asterisk-BSD mailing list