On 9/7/07, Apa Minerala <[EMAIL PROTECTED]> wrote: > > I have got this response from the people who are making support for us. > That the daemon is not working because I used an windows editor for > a2billing.conf > > Is this possible? I would like to have opinions as they have been paid > already, the first time they were paid to do service but they made a > re-install, and the second time they made a re-install wasn't really usable > ( broken links, missing images etc. ).
Opinions? Drop any vendor whose support people use 'u' and 'ur' in their responses. The guys just finished installing a2billing on asterisk 1.4 > > After 2 days the machine gives this error at reboot : > > Undefined value for daemon a2billing-callback-daemon , line 25, expected > value for "val" > > Response from their support : > ------------------------------------------- > Probably u made some wrong changes in a2billing.conf > > > I have test the callback daemon and worked 100% > ------------------------------------------------------------ > Probably the issue is that u used a windows text editor. > > NOw the callback works. > > Be carefoul when u edit a2billing.conf > > p.s the a2billing.conf file what i added is just to make callback > work... so u will have to reconfigure ur custom setting , or try to > use dos2unix when u edit files from windows I don't know a2billing well, but what they suggest is possible. The issue is that notepad will add the DOS CR character (Control-M in UNIX) at the end of every line (DOS uses CRLF for line endings, Unix uses just LF). After editing a unix file on a windows machine, a line that used to read "foo = 100" now reads "foo = 100^M" when viewed from Unix. When a2billing goes and tries to convert "100^M" into a number, it fails. The dos2unix trick will work, but you might just want to get an editor with network support that understands UNIX line endings. jEdit (www.jedit.org) is one, and it's open source. It has an FTP plugin that will load files via FTP or SFTP, and you can set a buffer to unix-style line endings, which will make it always save lines out with just 'LF' instead of 'CRLF'. -- j.
