Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siproxd: option registration_file does not work #854

Open
schuettecarsten opened this issue Jan 9, 2024 · 0 comments
Open

siproxd: option registration_file does not work #854

schuettecarsten opened this issue Jan 9, 2024 · 0 comments

Comments

@schuettecarsten
Copy link

schuettecarsten commented Jan 9, 2024

If I try to add option registration_file /opt/data/siproxd/siproxd-general.reg to siproxd config file, the setting is lost and not processed. Without a value for registration_file in config file, the generated siproxd-general.conf contains a default value for this setting, if I try to overwrite it, the whole setting is lost.

My /etc/config/siproxd (comments removed):

config siproxd general
        option registration_file /opt/data/siproxd/siproxd-general.reg
        option hosts_allow_reg 192.168.10.0/24
        option sip_listen_port 5060
        option if_inbound br-eth0.999
        option if_outbound pppoe-wan
        list load_plugin 'plugin_logcall.so'
        list load_plugin 'plugin_fix_bogus_via.so'
        option plugin_fix_bogus_via_networks 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16

Generated /var/etc/siproxd/siproxd-general.conf:

# config auto-generated from /etc/config/siproxd
hosts_allow_reg = 192.168.10.0/24
sip_listen_port = 5060
if_inbound = br-eth0.999
if_outbound = pppoe-wan
load_plugin = plugin_logcall.so
load_plugin = plugin_fix_bogus_via.so
plugin_fix_bogus_via_networks = 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
autosave_registrations = 300
rtp_port_low = 7070
rtp_port_high = 7089
rtp_timeout = 300
rtp_dscp = 46
tcp_timeout = 600
tcp_keepalive = 20
default_expires = 600
daemonize = 0
user = nobody
plugindir = /usr/lib/siproxd/

If I comment out my option registration_file, the generated siproxd-general.conf looks like this:

[...]
user = nobody
registration_file = /var/lib/siproxd/siproxd-general.reg
plugindir = /usr/lib/siproxd/

I want to move the registration file to a persistant storage, which does not work at the moment. According to siproxd documentation (https://siproxd.tuxworld.ch/siproxd_guide.pdf), making the registration file persistent is a common scenario, so it should be supported by OpenWrt.

Notify Maintainer: @guidosarducci

@schuettecarsten schuettecarsten changed the title sixproxd option registration_file not respected sixproxd: option registration_file does not work Jan 9, 2024
@schuettecarsten schuettecarsten changed the title sixproxd: option registration_file does not work siproxd: option registration_file does not work Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant