Voice Playback File?

plays OK once after restart - then keys the station but no voice…and drops quickly - Did set fs to use entire disk (8GB sd). The file does have ext .gsm – /custom/NU5DLINK.gsm Error Codes below:

Connected to Asterisk GIT d1e9a8b currently running on repeater (pid = 1480)
repeaterCLI> rpt localplay 559821 /custom/NU5DLINK
[Aug 22 04:38:37] WARNING[2040]: file.c:602 ast_openstream_full: File /custom/NU5DLINK does not exist in any format
[Aug 22 04:38:37] WARNING[2040]: file.c:912 ast_streamfile: Unable to open /custom/NU5DLINK (format 0x44 (ulaw|slin)): No space left on device
[Aug 22 04:38:37] WARNING[2040]: app_rpt.c:9933 rpt_tele_thread: ast_streamfile failed on DAHDI/pseudo-1043566485
repeater
CLI>

root@repeater:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 7124536 1887544 5220608 27% /
devtmpfs 440756 0 440756 0% /dev
tmpfs 474036 0 474036 0% /dev/shm
tmpfs 474036 12360 461676 3% /run
tmpfs 5120 4 5116 1% /run/lock
tmpfs 474036 0 474036 0% /sys/fs/cgroup
tmpfs 474036 8164 465872 2% /tmp
/dev/mmcblk0p1 494632 39988 454644 9% /boot
log2ram 40960 40960 0 100% /var/log
tmpfs 94804 0 94804 0% /run/user/1000
root@repeater:/#

Thanks for any pointers, steve

Steve, it’s very hard to say exactly what is happening here.
I suguest a couple of tests to help narrow it down.

  1. play some different files and/or filetypes. If other stuff plays, you may have a issue with the file or program you used to create/convert it.

  2. clear buffer - you will have to look/set=up what is also known as a ‘birdbath’.
    xxx=cop,23 ; Bird Bath - Clean Residual stream
    Run your command for birdbath and try again.
    (don’t forget to restart if you are adding the command to your rpt.conf)

See what you get and let us know.

Thank you Mike - I did try the preinstalled sound files - in the sounds directory - same result. Will try birdbath and report back. 73 steve

OK, in rptconfig

; 921 = cop,21 ; Enable Parrot Mode
; 922 = cop,22 ; Disable Parrot Mode
923 = cop,23 ; Birdbath (Current Parrot Cleanup/Flush)
(uncomented birdbath and cli - restrart now)

After restart now - played once - then failed then birdbath and still fail…

Connected to Asterisk GIT d1e9a8b currently running on repeater (pid = 1480)
repeaterCLI> rpt playback 559821 /custom/NU5DLINK
[Aug 22 19:01:59] WARNING[25284]: file.c:602 ast_openstream_full: File /custom/NU5DLINK does not exist in any format
[Aug 22 19:01:59] WARNING[25284]: file.c:912 ast_streamfile: Unable to open /custom/NU5DLINK (format 0x44 (ulaw|slin)): No space left on device
[Aug 22 19:01:59] WARNING[25284]: app_rpt.c:9933 rpt_tele_thread: ast_streamfile failed on DAHDI/pseudo-1036236789
repeater
CLI> rpt fun 559821 923
repeater
CLI> rpt playback 559821 /custom/NU5DLINK
[Aug 22 19:02:17] WARNING[25317]: file.c:602 ast_openstream_full: File /custom/NU5DLINK does not exist in any format
[Aug 22 19:02:17] WARNING[25317]: file.c:912 ast_streamfile: Unable to open /custom/NU5DLINK (format 0x44 (ulaw|slin)): No space left on device
[Aug 22 19:02:17] WARNING[25317]: app_rpt.c:9933 rpt_tele_thread: ast_streamfile failed on DAHDI/pseudo-1103696420
repeater*CLI>

I am still much a newbie - hope rpt fun 559821 *923 does indeed invoke birdbath. The file will play once after restart now.

steve

Not sure if it makes any difference - Pi3B - 2 USBRadio - 559821 and 559824 - 2 stanzas in Rpt Config - and I did distinguish macros - and telemetry

telemetry = telemetry559821 → [telemetry559821]
macro = macro559821 → [macro559821]
scheduler = schedule559821 → [schedule559821]

ALSO - even though command line will not play - the station just spoke the ID - with no prob under it’s own control - idrecording = custom/NU5DLINK …

So I forced ID *721 - from the command line rpt fun 559821 *721 - works AOK…

If you want to play with it or take a look, I can send you a public ip address and credentials…
steve

So, one more test…
use
localplay and not playback to drive the soundfile.

If you run ls /custom/NU5DLINK.gsm from the Linux command line, does it show that a file exists there, or does it return nothing?

The errors in the log are the ones I get if I incorrectly type the path to the file, so it might be worth the sanity check to make sure you have the path right. For instance, you mention you got the same result with the preinstalled files. I have a file on my system /var/lib/asterisk/sounds/hello-world.ulaw so if you have the same file you can play it using the following command on the asterisk CLI: rpt localplay 559821 /var/lib/asterisk/sounds/hello-world

It does (I also have WinScp looking at the tree - Just thought of a possibility - In the 2ND stanza - 559824 - I have nounkeyct = 1 ; Set to a 1 to eliminate courtesy tones and associated delays. In the first sanza 559821 - nounkeyct = 0 ; Set to a 1 to eliminate courtesy tones and associated delays.

Will change and see. steve

No Unkey CT in the 2nd stanza did not fix - Image (screen shot) of directory tree - same file and location plays for ID…

You have 2 different file locations mentioned. I assume the file is in…

/var/lib/asterisk/sounds/custom

You said the id recording plays

idrecording = custom/NU5DLINK

and it is fine. That is because Asterisk looks in the default sound directory for a directory called custom for the file.

But you say you’re sending…

rpt localplay 559821 /custom/NU5DLINK

With the / before custom your tell Asterisk not to look in the default directory but to start in root and look for the custom directory which it can’t find so it fails.

--------‐----------------------

/custom/NU5DLINK looks in…

/custom/NU5DLINK

--------‐----------------------

custom/NU5DLINK looks in…

/var/lib/asterisk/sounds/custom/NU5DLINK

--------‐----------------------

custom/NU5DLINK
/custom/NU5DLINK

Are 2 different things.

I could be wrong but I think removing the leading / should fix your problem.

Thank you - let me look. steve

Tony - that did the trick - big thank you - I sure have lots to learn and very grateful for everyone being patient with me. 73, steve

Glad it worked for you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.