I am using PBX in a Flash 1.3, Centos 5.2, FreePBX 2.4 and asterisk 1.4.
Installed the latest and have done all the updates and configuration. Four lines coming in on a TDM400. Can make calls out from softphone to my cell. Can call in from my cell to my extension, no audio but that’s another problem.
Logging in and going to FreePBX the FOP I can see everything except Trunks. No Trunks shown at all but they are there bacause I can make the phone calls. I have not been able to find a fix for this. Anyway know how I can get those 4 trunks to show up?
You need to edit /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
Find the line that reads:
$zapataconf = $ARGV[1]."/zapata.conf";
and change it to read:
$zapataconf = $ARGV[1]."/zapata-channels.conf";
also change the line that reads:
$zapataconf="/etc/asterisk/zapata.conf";
to read:
$zapataconf="/etc/asterisk/zapata-channels.conf";
Unfortunately this file will get overwritten when you update freepbx (I think it’s the framework module), so you should keep a backup copy of the working file so you don’t have to edit it every time.
Tried that and it didn’t work. Just for more info, I have a TDM400P for four regular phone lines. Lines are not plugged in yet.
Here are the results of various logs or queries:
[Sep 16 12:54:08] VERBOSE[2805] logger.c: app_flash.so => (Flash channel application)
[Sep 16 12:54:08] VERBOSE[2805] logger.c: == Registered channel type ‘Phone’ (Standard Linux Telephony API Driver)
[Sep 16 12:54:08] VERBOSE[2805] logger.c: == Registered channel type ‘SIP’ (Session Initiation Protocol (SIP))
from cli, zap show channels
Chan Extension Context Language MOH Interpret
pseudo default en default
1 from-pstn en default
2 from-pstn en default
3 from-pstn en default
4 from-pstn en default
zap show status
Description Alarms IRQ bpviol CRC4
Wildcard TDM400P REV I Board 1 OK 0 0 0
You should NOT have to edit retrieve_op_conf_from_mysql.pl to make this happen. The stock script that is provided works just fine as I have several system with TDM400 cards in various combinations of fxo and fxs cards and they always show up in my trunk list just fine and have for over 2 years through all the updates.
last time I had this problem the Zap channels were not configured properly. That’s what the genzaptelconf script does is query everything and build the file properly. Did you run that step or hand code your zaptel files?
if you have the proper genzaptelconf file it should generate two files. zapata.conf and zapata-channels.conf both being identical to each other. If not then just copy one to the other so that you do and things will be happy. Or create a symbolic link to zapata-channels.conf for zapata.conf