Rpt playback command via DTMF is it possible

I have been trying to get this to work and have not been able to figure it out.
localplay works fine, but playback does not.
I have the console set to max verbosity and nothing prints on the screen when I try my DTMF command for this.
in rpt.conf:
61 = localplay,audiofile WORKS
Any combination to try and use playback does not.
where “XXXXX” is the node number-
61 = playback,XXXXX audiofile
61 = rpt,playback XXXXX audiofile
61 = rpt playback,XXXXX /full/path/to/audiofile
Any combination of spaces commas etc. that I have tried does not work.
Nor have I been able to find any examples online that work.
The console shows absolutely nothing when the command is attempted.
Other than the DTMF digits being dialed-
Any thoughts?
Thanks!

I have it working with an external bash script-
But I really thought I should be able to run rpt playback within rpt via DTMF.
Still would prefer that.
Is that possible?

You might check your rpt.conf
Make sure the autopatch command is not also issued with the ‘61’ command
Looks like a conflict unless you have changed the defaults.
And I don’t believe you need to issue the ‘rpt’ in the string, only the CLI> command line to select the channel.

61 =  playback,XXXXX /full/path/to/audiofile

I’m almost certain I tried this exactly.
I’ll try again to be sure.
I also assumed 61 was available as all of the autopatch stuff is commented out be default.
But realize this (61) might actually be hardcoded in and you can change it here, so not necessarily available even if it “looks” like it is.
So I will have to try a different sequence as well.
Thanks!

No, it’s not hard-coded.
But due to some issues I am seeing,
please try to issue this via command line CLI>

rpt fun node# *61

I have a busy system right now anything I try that needs asterisk restarted drops all the links, so I will play with this more after hours.
I also need to work on bringing up a test node here (on a separate Internet connection) that I can watch more closely.
I have an outside shell script that calls the playback which works.
So of course in this configuration rpt fun node# *61 works.
I’d like to do it within Asterisk ( 61 = playback,XXXXX /full/path/to/audiofile)
Which so far- does nothing.
And *61 always worked with the localplay as mentioned above.
No conflict with autopatch, which is commented out completely.
I’ll mess with it more later tonight.
Thanks!

Still zero success with
61 = playback,XXXXX /full/path/to/audiofilename
61 = playback,XXXXX /full/path/to/audiofilename.ulaw

Just sits there and does absolutely nothing.
No error no action of any kind happening.
The command appears to just be completely ignored and nothing is indicated in the console nor logged.
If I switch that to localplay it works fine.
And if I call it from bash on same DTMF command (asterisk -rx "rpt playback 2586 audiofilename)
It works.

I will admit, I can not use playback as a dtmf function.
And I am still sorting through it, but I suspect a bug now.
Mine seems to have something to do with bridging from a sip phone.

You may be stuck running it from a script through asterisk.

I’m still testing a few more angles on mine.

Yeah, might be a bug or also might be by design for some reason or another right?
I’m getting it done by going out to the shell (bash) and running it from there.
That works but feels klunky/kludgy to me.
I’m not too worried about it but am insanely curious about it and why that does not work the expected way :slight_smile: