summaryrefslogtreecommitdiff
path: root/dahdi_cfg.c
AgeCommit message (Collapse)Author
2011-11-02Fix GCC 4.6 "set but not used" warningsTzafrir Cohen
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10311 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-11-02dahdi_cfg: add '-S <spanno>' and '-C <chan-ranges>'Tzafrir Cohen
* dahdi_cfg -S <num>: only apply changes to span <num>. * If span is analog (no 'span=<num>,<channels>,...' statement in system.conf), we need to set range: -C <channels> * With the <basechan> and <channels> attributes in sysfs we easily configure each device on the fly. Simply run: dahdi_cfg -S <spanno> -C <basechan>+<channels>-1 from udev script Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10306 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-09-20dahdi_cfg: DAHDI_INDIRECT -> DAHDI_SPECIFY when configuring pciradio channels.Shaun Ruffell
While slightly less efficient, this is only used when configuring the channels initially (not the hot path) and allows dahdi-base.c to assume that the open "file" pointer always refers to the channel on which to perform the operation. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9352 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-30dahdi_cfg: Display more appropriate error messages when an invalid signaling ↵Kinsey Moore
is chosen along with suggestions on how to fix the problem. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9067 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-06-15Convert all '%i' to '%d' in dahdi_cfgTzafrir Cohen
Various values in system.conf were parsed using %i. This means that a value with a leading 0x was considered hexadecimal and a value with a leading 0 would be considered octal ('030' == '24' == '0x1E'). This was never documented and seems a potential cause for confusion in case a leading zero sneaks in. It is thus removed. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8777 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-05-09Remove duplicate code: rad_apply_channelsTzafrir Cohen
rad_apply_channels() was the same as apply_channels() git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8615 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-05-04Report correct span number in dahdi_cfg verbose output.Kevin P. Fleming
When the DAHDI configuration file does not configure every single span in the system, but leaves spans unconfigured, the verbose output from dahdi_cfg would show incorrect span numbers when reporting the line configuration, as it printed the index into the array of configured spans, instead of their actual span numbers. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8606 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-26dahdi_cfg, dahdi_genconf: Add support for Hx8 series cards.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8125 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-14dahdi_cfg: Default to the us tonezone if not specified in system.conf.Shaun Ruffell
If there are not "loadzone" and "defaultzone" lines in /etc/dahdi/system.conf, default to the us zone. This mimics the behavior of older zaptel releases. DAHDI-29. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6619 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-26when /etc/dahdi/system.conf does not have an echo canceller defined for a ↵Kevin P. Fleming
channel, but the channel previously had one assigned, running dahdi_cfg does not remove the assigned echo canceller from the channel as it should. this commit changes that behavior, so that every channel with a defined signaling mode is updated to have the proper (or no) echo canceller assigned. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6259 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-12-14Allow the span timing to be up to 255. Tzafrir Cohen
The test for 15 was ineffective anyway. Some drivers can use higher values. See issue #13954 . git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5530 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-24dahdi_cfg: {} as per coding guidelines.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5381 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-24dahdi_cfg: Make the message about echo canceller selection verbose.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5380 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-16Close the /dev/dahdi/channel file handle if we're unable to associate it withShaun Ruffell
a particular channel. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4914 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-16Provide system error information if open on /dev/dahdi/channel fails.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4913 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-27add --enable-dev-mode support, and fix up a couple of warnings found using ↵Kevin P. Fleming
it (only two, surprisingly) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4845 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-25Fix more crazy formattingJason Parker
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4827 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-25Reverse some incorrect logic, and cleanup some very ugly formatting in passing.Jason Parker
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4826 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-24We've got a new "zap" string to zap.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4822 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-24dahdi_cfg.c: Reduce nesting in main() .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4821 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-24Add support for 56 KB HDLC as well as selectable rate in system.confMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4818 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05clean up license headers in files, add LICENSE files, and apply LGPL ↵Kevin P. Fleming
(instead of GPL) to libtonezone files git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4708 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05use a different name for this file, so it won't try to overwrite existing ↵Kevin P. Fleming
(non-version-controlled) files in existing checkouts git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4707 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02do not give error or even bother parsing a blank/new lineJeff Peeler
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4661 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01reduce the amount of recompiling necessary when the version string changesKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4646 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01clean up error exit conditions and improve code in various placesKevin P. Fleming
(closes issue #13039) Reported by: bbryant Patches: 20080709__dahdi_cfg_fixes_2.diff uploaded by bbryant (license 36) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4645 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-29build against the new dahdi/user.h (which is now typedef-free!)Kevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4629 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-10* Changed the 'echocanceler' system.conf parameter to 'echocanceller'Shaun Ruffell
* Added a section to describe how to set up the echocancellers in system.conf. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4596 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-24add initial set of upgrade instructions; much more to comeKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4451 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-20add ability to specify echocan for channels (no default settings yet)Kevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4435 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23Remove remaining references to zap devices and some zaptel referencesMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4352 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23Replace Zapata references with DAHDI in error messagesMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4349 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23svn-commit.tmpKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4348 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23Remove Linux Support Services referencesMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4347 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23add version string to all tools, visible using "strings" for nowKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4346 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23yay, all the tools compile nowKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4339 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23initial copyKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4335 a0bf4364-ded3-4de4-8d8a-66a801d63aff