Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1373

    At first I thought I had been using the wrong filetype, bitrate, file signing, sample rate, and channel settings.

    But after looking at all of the files in use
    ( such as in:
    /usr/share/examples/openrepeater/install/svxlink/echolink/
    /usr/share/openrepeater/sounds/courtesy_tones/
    /usr/share/svxlink/sounds/en_US/*
    etc..)

    ALL files appear to be 16-bit MS-signed .wav files, mono at 16000HZ.

    This is fine, but even when I export files in this format from audio tools, the Web UI will not accept them as an upload.

    It’s selectable with the “Choose File” dialog in the Courtesy Tones page on the top, and the “Uplaod” button does appear to send the data along to nginx (web server) but the file never appears in the library, and is never selectable.

    I am going to experiment and SCP a .wav file to the unit, place it in the directory, and rebuild/restart svxlink and see if it “finds” the file.

    -jre

    #1374

    Actually, it appears all I needed to do was place the file in /usr/share/openrepeater/sounds/courtesy_tones/ and then refresh the Courtesy Tones section on the page.

    It finds it, I can select it, and it shows “active” but the active tone is the previous tone I had selected before the change. :/

    -jre

    #1379
    Richard, N4CNR
    Forum Moderator

    ok found the issue and fixed it in the install script . and will get it fixed in the next img.

    in the /etc/nginx/sites-avaible/openrepeater
    add these to lines like this

    client_max_body_size 25M;
    client_body_buffer_size 128k;

    server{
    listen 443;
    listen [::]:443 default_server ipv6only=on;

    include snippets/snakeoil.conf;
    ssl on;

    root /var/www/openrepeater;

    index index.php;

    server_name $gui_name;

    location / {
    try_files \$uri \$uri/ =404;
    }

    client_max_body_size 25M;
    client_body_buffer_size 128k;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    save it and the sevice nginx restart and it will be fixed

    #1380
    Richard, N4CNR
    Forum Moderator

    Let me know if this fixes your upload issue

    #1381

    My file looked a little different than the order of lines you presented above.

    Almost everything was identical, except:
    location / {
    try_files $uri $uri/ =404;
    }

    I changed mine to what you suggested:
    location / {
    try_files \$uri \$uri/ =404;
    }

    to be safe I just rebooted the RPi.

    The web service fails to start completely now.
    nginx shows running, but nothing on the page loads correctly.

    I removed the backslashes and restarted nginx using “service nginx restart”

    Things working again.
    Here is the file, please let me know what needs modifying:

    ///

    server{
    listen 127.0.0.1:80;
    server_name 127.0.0.1;
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    client_max_body_size 25M;
    client_body_buffer_size 128k;

    root /var/www/openrepeater;
    index index.php;

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    }

    # Disable viewing .htaccess & .htpassword & .db
    location ~ .htaccess {
    deny all;
    }
    location ~ .htpassword {
    deny all;
    }
    location ~^.+.(db)$ {
    deny all;
    }
    }
    server{
    listen 443;
    listen [::]:443 default_server ipv6only=on;

    include snippets/snakeoil.conf;
    ssl on;

    root /var/www/openrepeater;

    index index.php;

    server_name openrepeater;

    location / {
    try_files $uri $uri/ / =404;
    }

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME /var/www/openrepeater/$fastcgi_script_name;
    }

    # Disable viewing .htaccess & .htpassword & .db
    location ~ .htaccess {
    deny all;
    }
    location ~ .htpassword {
    deny all;
    }
    location ~^.+.(db)$ {
    deny all;
    }
    }

    ///

    Thanks!
    73
    Joe N8CN

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘uploading courtesy tones doesn't work’ is closed to new replies.