[asterisk-dev] Asterisk 1.2.15 on BSD - chan_zap broken

Dinesh Nair dinesh at alphaque.com
Sat Feb 10 00:28:04 MST 2007


chaps,

first up, thanx for the release of asterisk 1.2.15. i'm in the midst of 
porting it to *BSD, when this came up:

(we've got a PRI configured on span 1, zaptel.conf and zapata.conf attached)

Feb 10 15:19:58 ERROR[270]: chan_zap.c:7041 mkintf: Unable to get 
parameters, SUB_REAL=0, ZT_GET_PARAMS=1082411525,zfd=16,res=-1,errno=-25

Feb 10 15:19:58 ERROR[270]: chan_zap.c:10462 setup_zap: Unable to register 
channel '1-15'

Feb 10 15:19:58 WARNING[270]: loader.c:414 __load_resource: chan_zap.so: 
load_module failed, returning -1

Feb 10 15:19:58 WARNING[270]: loader.c:554 load_modules: Loading module 
chan_zap.so failed!

this is of course with the latest subversion repo of the zaptel-bsd 
drivers. asterisk 1.2.14 works fine with the zaptel-bsd drivers, but 
asterisk 1.2.15 borks with the above.

i tried loading the 1.2.15 chan_zap.so with asterisk 1.2.14 and the 1.2.14 
chan_zap.so with asterisk 1.2.15 and in both cases, the same borking happens.

a diff of chan_zap.c between 1.2.14 and 1.2.15 shows some changes but 
nothing it seems which would cause the above failure on the ioctl call at,

	res = ioctl(tmp->subs[SUB_REAL].zfd, ZT_GET_PARAMS, &p);
	if (res < 0) {
		ast_log(LOG_ERROR, "Unable to get parameters\n");
		destroy_zt_pvt(&tmp);
		return NULL;
	}

other information, i'm not loading codec_zap.so. is there a dependency 
between chan_zap.so on codec_zap.so ?

also, is zaptel-1.2.13 required to run asterisk 1.2.15 ? if so, then we'll 
need to port that over before asterisk 1.2.15 becomes usable on *BSD.

note that the present zaptel-bsd drivers work well with asterisk 1.2.14, so 
i'm just looking at what changed between asterisk 1.2.14 and 1.2.15 or in 
zaptel 1.2.13.

i'm writing to the -dev list because i'm not sure if this is a bug in 
chan_zap or its an issue only on BSD due to drivers or something else.

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)   http://www.openmalaysiablog.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+
-------------- next part --------------
loadzone=my
defaultzone=my
span=1,1,0,ccs,hdb3,crc4
span=2,0,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
bchan=17-31
bchan=32-46
dchan=47
bchan=48-62
-------------- next part --------------
[channels]
signalling=pri_cpe
context=from_tm
group=1
callgroup=1
pickupgroup=1
priindication=outofband
switchtype=euroisdn
context=from_tm
accountcode=E1_INCOMING
amaflags=default
busycount=4
callwaiting=no
transfer=yes
useincomingcalleridonzaptransfer=yes
threewaycalling=yes
callreturn=yes
relaxdtmf=no
busydetect=no
usecallerid=yes
hidecallerid=no
usecallingpres=yes
echocancel=no
echocancelwhenbridged=no
echotraining=no
immediate=no
overlapdial=yes
pridialplan=unknown
prilocaldialplan=unknown
channel => 1-15
channel => 17-31
signalling=pri_net
context=phones
group=2
callgroup=2
pickupgroup=2
priindication=outofband
switchtype=euroisdn
context=phones
accountcode=E1_NET
amaflags=default
busycount=4
callwaiting=no
transfer=yes
useincomingcalleridonzaptransfer=yes
threewaycalling=yes
callreturn=yes
relaxdtmf=no
busydetect=no
usecallerid=yes
hidecallerid=no
usecallingpres=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=no
immediate=no
overlapdial=yes
pridialplan=unknown
prilocaldialplan=unknown
channel => 32-46
channel => 48-62


More information about the asterisk-dev mailing list