Problem with setting up ZAP extensions

Hi all,

this is my first posting on this forum, but I’m running my trixbox succesfully since about three or four weeks.

But I can’t reboot my system without modding files by hand after the reboot . But let my explain my system first:

Trixbox 1.2.3, FreePBX 2.2.0Beta2 with 2 HFC cards (TE + NT)

My problem is if I setup a zap extension I’ve to enter a parameter in the “channel” field, but no matter what I enter in this field Asterisk won’t come up on a reboot.

Here’s a cut from zapata_additional.conf:
;;;;;;[160]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/g1/160
context=from-internal
callprogress=no
callerid=device <160>
busydetect=no
busycount=7
accountcode=
channel=>4-5

As I said it before no matter what parameter I enter for “channel=>” Asterisk won’t start. Only if I remove the complete line “channel=>4-5” or whatever I put in, Asterisk is starting without a problem. But on the next reboot the parameter’s are reentered in the file, and I can’t setup a extension without setting a parameter.

So I hope someone can give me a hint how I can solve that problem!!

Edit:

I forgot to mention my zapata-BRI-HFC.conf, here it is:

; Basic ISDN Card TE mode config
resetinterval=never
immediate=no
switchtype=euroisdn
signalling=bri_cpe_ptmp
pridialplan=dynamic
prilocaldialplan=local
nationalprefix=0
internationalprefix=00
usecallingpres=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=100
context=from-zaptel
group=0

channel=>1-2

; Basic ISDN Card NT mode config
immediate=no
signalling=bri_net_ptmp
context=from-internal
group=1

channel=>4-5

Since setting up Test system using the TB Beta2 I’ve those two “channel” entry’s in zapata-BRI-HFC.conf which I also have to comment out to get Asterisk up and running.

The only way I see to get this done is using phpmyadmin to empty the channel field.

2nd Edit:

I did some researching using ‘grep’ and found this file:

/var/www/html/admin/modules/core/functions.inc.php

$tmparr[‘channel’] = array(‘value’ => ‘’, ‘level’ => 0, ‘jsvalidation’ => ‘isEmpty()’, ‘failvalidationmsg’ => $msgInvalidChannel);

I commented out the above mentioned line and now I’ve no more prob’s adding or modiving a zap extension.

But I’m still willing to read about an alternate way to solve the problem.

Greetz
Mircsicz