Getting setup-pstn (via genzaptelconf) to work with Rhino Cards....

cvander
Posts: 637
Member Since:
2006-06-26

Maybe I'm missing out on something here, but when I run setup-rhino on a brand new trixbox 2.6.1 system, it finds the card just fine and tells you to run setup-pstn, but setup-pstn doesn't work... Turns out that the culprit is genzaptelconf in /usr/sbin The rcbfx module (probably the other modules as well) is not included in the $ALL_MODULES= argument. I've found that adding the rcbfx entry here resolves the issue and causes setup-pstn to work as expected. I guess the question is why doesn't the setup-rhino script modify genzaptelconf for you so that a newbie doesn't have to go hunting down and hand editing files?? Or is this issue particular to my installs (I'm using a PowerEdge 840)?

-Chris



cvander
Posts: 637
Member Since:
2006-06-26
Anyone from Rhino care to

Anyone from Rhino care to chime in on this? Am I the only one who has experienced this issue?



jfinstrom
Posts: 2013
Member Since:
2007-03-07
I have a bug in to the trix

I have a bug in to the trix team and in to the genzaptelconf author. you can get it to work by doing the following:

sed -i 's/ALL_MODULES=\"\(.*\)\"/ALL_MODULES=\"rxt1 r1t1 rcbfx \1\"/' $(which genzaptelconf)
--



cvander
Posts: 637
Member Since:
2006-06-26
Thanks James, it's nice to

Thanks James, it's nice to know that I at least got the correction right (and that there was a problem!). I was thinking that you guys could put the necessary command in your install script, at least until the other issues are resolved. Is there a reason that doing so is a bad idea? I'm a little rusty on my *nix scripting, but it seems like an addition to the install script.

-Chris



cvander
Posts: 637
Member Since:
2006-06-26
Contribution: Script for fixing setup-pstn

I know it's been a while, but I wanted to update this thread with a little something I whipped up to automatically fix the genzaptelconf file on trixbox, you can run it anytime you need, since it will check the file to see if it's been updated before.

I've named my file fix-setup-pstn.sh
you'll want to create the file (nano -w fix-setup-pstn.sh) and past the contents below into it:

#!/bin/bash
word="rxt1 r1t1 rcbfx"
filename=/usr/sbin/genzaptelconf

if grep -q "$word" "$filename"    #q causes no standard output (quiet)
then
  echo "Your setup-pstn probably aready works"
else
  sed -i 's/ALL_MODULES=\"\(.*\)\"/ALL_MODULES=\"rxt1 r1t1 rcbfx \1\"/' $(which genzaptelconf)
  echo "You genzaptelconf file has been updated to include Rhino modules"
  echo "You can now run setup-pstn to autoconfigure your card"
fi

exit 0

Save the file: Ctrl + X, answer Y
Make the file executable: chmod +x fix-setup-pstn.sh
execute the file: ./fix-setup-pstn.sh

Enjoy!

-Chris



Comment viewing options

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