wdoekes / asterisk-chan-dongle

chan_dongle channel driver for Huawei UMTS cards, works with Asterisk 14+
Other
298 stars 104 forks source link

Please specify where to put dongle.conf #109

Closed sergei-mironov closed 4 years ago

sergei-mironov commented 4 years ago

Hi. I'm working on packaging asterisk-chan-dongle into Nix expression. So far I managed to compile requirements, but can't figure out where to put dongle.conf to make it visible for Asterisk (or maybe there is some other trouble). Note that NixOS relies on custom /etc directories for every package, so I usually have to explicitly configure things like --with-configdir=....

The error I see is:

[Jul 27 22:15:49] ERROR[24384]: chan_dongle.c:1750 public_state_init: Errors reading config file dongle.conf, Not loading module

I tried to put dongle.conf into {asterisk}/etc, {asterisk}/etc/asterisk, {system}/etc/ - all without success. Could you please explain the loading rules?

sergei-mironov commented 4 years ago

Ref https://github.com/grwlf/asterisk-dongle-setup/blob/master/default.nix#L55

sergei-mironov commented 4 years ago

Fixed by https://github.com/grwlf/asterisk-dongle-setup/commit/9256dcb6e260cef9575fe756747d362e45fa8ecb

sergei-mironov commented 4 years ago

In usual cases the location is /etc/asterisk/dongle.conf