I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment. Here is what I am currently doing: asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan" This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files. I tried stuff like asterisk -rx "rpt playback $node channel & digits/$chan" but I just get a syntax error. Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc? 73 Skyler KDØWHB\
Leading and trailing spaces with the & are not tolerated. e.g filename&filename2 OK filename & filename2 Not OK Thanks, Bob kk6ecm 73 Sent from iPad
On Apr 25, 2016, at 8:13 PM, Skyler F <electricity440@gmail.com> wrote:
I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment.
Here is what I am currently doing:
asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan"
This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files.
I tried stuff like
asterisk -rx "rpt playback $node channel & digits/$chan"
but I just get a syntax error.
Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc?
73 Skyler KDØWHB\ _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
Small Problem: rpt playback 42622 channel&channel ast_streamfile: Unable to open channel&channel 73 Skyler On Mon, Apr 25, 2016 at 10:23 PM, kk6ecm <kk6ecm@gmail.com> wrote:
Leading and trailing spaces with the & are not tolerated. e.g filename&filename2 OK filename & filename2 Not OK
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 8:13 PM, Skyler F <electricity440@gmail.com> wrote:
I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment.
Here is what I am currently doing:
asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan"
This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files.
I tried stuff like
asterisk -rx "rpt playback $node channel & digits/$chan"
but I just get a syntax error.
Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc?
73 Skyler KDØWHB\ _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Skyler Fennell amsatnet.info KDØWHB electricity440@gmail.com
Hmmm ... appears to be a mix of two syntaxes, and you may not achieve your goal... Xxxxxxx*CLI> help rpt playback Usage: rpt playback <nodename> <sound_file_base_name> Send an Audio File to a node, send to all other connected nodes (global) (seems there used to be a <delay> as a third variable) and playback, file&file1 on the current node, where the concatenated files are joined with the &, no spaces. I'm wondering... set delay to 0... not sure if there is a default, or even if it is still a feature. e.g.
asterisk -rx "rpt playback $node channel 0"
asterisk -rx "rpt playback $node digits/$chan 0"
Thanks, Bob kk6ecm 73 Sent from iPad
On Apr 25, 2016, at 9:26 PM, Skyler F <electricity440@gmail.com> wrote:
Small Problem:
rpt playback 42622 channel&channel
ast_streamfile: Unable to open channel&channel
73
Skyler
On Mon, Apr 25, 2016 at 10:23 PM, kk6ecm <kk6ecm@gmail.com> wrote: Leading and trailing spaces with the & are not tolerated. e.g filename&filename2 OK filename & filename2 Not OK
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 8:13 PM, Skyler F <electricity440@gmail.com> wrote:
I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment.
Here is what I am currently doing:
asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan"
This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files.
I tried stuff like
asterisk -rx "rpt playback $node channel & digits/$chan"
but I just get a syntax error.
Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc?
73 Skyler KDØWHB\ _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Skyler Fennell amsatnet.info KDØWHB electricity440@gmail.com
That apparently isn't a feature anymore root@pistar:~# asterisk -rx "rpt playback $node channel 0" Usage: rpt playback <nodename> <sound_file_base_name> Send an Audio File to a node, send to all other connected nodes (global) On Tue, Apr 26, 2016 at 5:20 AM, kk6ecm <kk6ecm@gmail.com> wrote:
Hmmm ... appears to be a mix of two syntaxes, and you may not achieve your goal...
Xxxxxxx*CLI> help rpt playback Usage: rpt playback <nodename> <sound_file_base_name> Send an Audio File to a node, send to all other connected nodes (global)
(seems there used to be a <delay> as a third variable)
and
playback, file&file1 on the current node, where the concatenated files are joined with the &, no spaces.
I'm wondering... set delay to 0... not sure if there is a default, or even if it is still a feature.
e.g.
asterisk -rx "rpt playback $node channel 0"
asterisk -rx "rpt playback $node digits/$chan 0"
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 9:26 PM, Skyler F <electricity440@gmail.com> wrote:
Small Problem:
rpt playback 42622 channel&channel
ast_streamfile: Unable to open channel&channel
73
Skyler
On Mon, Apr 25, 2016 at 10:23 PM, kk6ecm <kk6ecm@gmail.com> wrote:
Leading and trailing spaces with the & are not tolerated. e.g filename&filename2 OK filename & filename2 Not OK
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 8:13 PM, Skyler F <electricity440@gmail.com> wrote:
I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment.
Here is what I am currently doing:
asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan"
This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files.
I tried stuff like
asterisk -rx "rpt playback $node channel & digits/$chan"
but I just get a syntax error.
Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc?
73 Skyler KDØWHB\ _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Skyler Fennell amsatnet.info KDØWHB electricity440@gmail.com
-- Skyler Fennell amsatnet.info KDØWHB electricity440@gmail.com
I think the playback command only takes a single audio filename. Try this approach: cat /var/lib/asterisk/sounds/tide.gsm > /tmp/temp.gsm cat /var/lib/asterisk/sounds/times.gsm >> /tmp/temp.gsm cat /var/lib/asterisk/sounds/will-expire.gsm >> /tmp/temp.gsm cat /var/lib/asterisk/sounds/at-any-time.gsm >> /tmp/temp.gsm asterisk -rx "rpt playback $node /tmp/temp" rm -f /tmp/temp.gsm Note that once these audio segments are cat'ed together, a final call to sox can be used to change levels, formats, etc., if needed. 73, David KB4FXC On Tue, 26 Apr 2016, kk6ecm wrote:
Hmmm ... appears to be a mix of two syntaxes, and you may not achieve your goal...
Xxxxxxx*CLI> help rpt playback Usage: rpt playback <nodename> <sound_file_base_name> Send an Audio File to a node, send to all other connected nodes (global)
(seems there used to be a <delay> as a third variable)
and
playback, file&file1 on the current node, where the concatenated files are joined with the &, no spaces.
I'm wondering... set delay to 0... not sure if there is a default, or even if it is still a feature.
e.g.
asterisk -rx "rpt playback $node channel 0"
asterisk -rx "rpt playback $node digits/$chan 0"
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 9:26 PM, Skyler F <electricity440@gmail.com> wrote:
Small Problem:
rpt playback 42622 channel&channel
ast_streamfile: Unable to open channel&channel
73
Skyler
On Mon, Apr 25, 2016 at 10:23 PM, kk6ecm <kk6ecm@gmail.com> wrote: Leading and trailing spaces with the & are not tolerated. e.g filename&filename2 OK filename & filename2 Not OK
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 8:13 PM, Skyler F <electricity440@gmail.com> wrote:
I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment.
Here is what I am currently doing:
asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan"
This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files.
I tried stuff like
asterisk -rx "rpt playback $node channel & digits/$chan"
but I just get a syntax error.
Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc?
73 Skyler KDÃWHB\ _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Skyler Fennell amsatnet.info KDÃWHB electricity440@gmail.com
Or, if you are using WAV files ... catwav them (which uses sox) and play the result ... /bin/rm -f $WXT/$TEMPMSG #Make filename available for output /usr/local/bin/catwav $WXT/$TAILMSG $WXA/${P1}${P2}${P3} $WXT/$TEMPMSG /bin/rm -f $WXT/$TAILMSG #Make filename available for output /usr/local/bin/catwav $WXT/$TEMPMSG $WXA/spc.wav $WXT/$TAILMSG You would do the asterisk -rx " rpt localplay NODE cattedfile" here (I use it to build tailmessages with multiple announcements). ...STeve - KF5VH On 4/26/2016 6:51 AM, David McGough wrote:
I think the playback command only takes a single audio filename.
Try this approach:
cat /var/lib/asterisk/sounds/tide.gsm > /tmp/temp.gsm cat /var/lib/asterisk/sounds/times.gsm >> /tmp/temp.gsm cat /var/lib/asterisk/sounds/will-expire.gsm >> /tmp/temp.gsm cat /var/lib/asterisk/sounds/at-any-time.gsm >> /tmp/temp.gsm
asterisk -rx "rpt playback $node /tmp/temp"
rm -f /tmp/temp.gsm
Note that once these audio segments are cat'ed together, a final call to sox can be used to change levels, formats, etc., if needed.
73, David KB4FXC
On Tue, 26 Apr 2016, kk6ecm wrote:
Hmmm ... appears to be a mix of two syntaxes, and you may not achieve your goal...
Xxxxxxx*CLI> help rpt playback Usage: rpt playback <nodename> <sound_file_base_name> Send an Audio File to a node, send to all other connected nodes (global)
(seems there used to be a <delay> as a third variable)
and
playback, file&file1 on the current node, where the concatenated files are joined with the &, no spaces.
I'm wondering... set delay to 0... not sure if there is a default, or even if it is still a feature.
e.g.
asterisk -rx "rpt playback $node channel 0"
asterisk -rx "rpt playback $node digits/$chan 0" Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 9:26 PM, Skyler F <electricity440@gmail.com> wrote:
Small Problem:
rpt playback 42622 channel&channel
ast_streamfile: Unable to open channel&channel
73
Skyler
On Mon, Apr 25, 2016 at 10:23 PM, kk6ecm <kk6ecm@gmail.com> wrote: Leading and trailing spaces with the & are not tolerated. e.g filename&filename2 OK filename & filename2 Not OK
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 8:13 PM, Skyler F <electricity440@gmail.com> wrote:
I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment.
Here is what I am currently doing:
asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan"
This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files.
I tried stuff like
asterisk -rx "rpt playback $node channel & digits/$chan"
but I just get a syntax error.
Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc?
73 Skyler KDØWHB\ _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Skyler Fennell amsatnet.info KDØWHB electricity440@gmail.com
App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
Thanks David and Steve. The cat method works perfect other then a tiny detail: rm -f /tmp/temp.gsm deletes the file before it is finished playing so you don't hear the audio. Removing the line actually didn't cause issues, but I added a sleep and then delete the file just in case. The method isn't as elegant, but gets the job done and I don't hear the spaces anymore! 73 Skyler On Tue, Apr 26, 2016 at 6:08 AM, Steve Mahler <kizzy@lusfiber.net> wrote:
Or, if you are using WAV files ... catwav them (which uses sox) and play the result ...
/bin/rm -f $WXT/$TEMPMSG #Make filename available for output /usr/local/bin/catwav $WXT/$TAILMSG $WXA/${P1}${P2}${P3} $WXT/$TEMPMSG /bin/rm -f $WXT/$TAILMSG #Make filename available for output /usr/local/bin/catwav $WXT/$TEMPMSG $WXA/spc.wav $WXT/$TAILMSG
You would do the asterisk -rx " rpt localplay NODE cattedfile" here (I use it to build tailmessages with multiple announcements).
...STeve - KF5VH
On 4/26/2016 6:51 AM, David McGough wrote:
I think the playback command only takes a single audio filename.
Try this approach:
cat /var/lib/asterisk/sounds/tide.gsm > /tmp/temp.gsm cat /var/lib/asterisk/sounds/times.gsm >> /tmp/temp.gsm cat /var/lib/asterisk/sounds/will-expire.gsm >> /tmp/temp.gsm cat /var/lib/asterisk/sounds/at-any-time.gsm >> /tmp/temp.gsm
asterisk -rx "rpt playback $node /tmp/temp"
rm -f /tmp/temp.gsm
Note that once these audio segments are cat'ed together, a final call to sox can be used to change levels, formats, etc., if needed.
73, David KB4FXC
On Tue, 26 Apr 2016, kk6ecm wrote:
Hmmm ... appears to be a mix of two syntaxes, and you may not achieve
your goal...
Xxxxxxx*CLI> help rpt playback Usage: rpt playback <nodename> <sound_file_base_name> Send an Audio File to a node, send to all other connected nodes (global)
(seems there used to be a <delay> as a third variable)
and
playback, file&file1 on the current node, where the concatenated files are joined with the &, no spaces.
I'm wondering... set delay to 0... not sure if there is a default, or even if it is still a feature.
e.g.
asterisk -rx "rpt playback $node channel 0"
asterisk -rx "rpt playback $node digits/$chan 0"
Thanks,
Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 9:26 PM, Skyler F <electricity440@gmail.com> wrote:
Small Problem:
rpt playback 42622 channel&channel
ast_streamfile: Unable to open channel&channel
73
Skyler
On Mon, Apr 25, 2016 at 10:23 PM, kk6ecm <kk6ecm@gmail.com> wrote:
Leading and trailing spaces with the & are not tolerated. e.g filename&filename2 OK filename & filename2 Not OK
Thanks, Bob kk6ecm 73
Sent from iPad
On Apr 25, 2016, at 8:13 PM, Skyler F <electricity440@gmail.com>
wrote:
I am currently writing scripts for my remote base, and am working on the channel switch acknowledgment.
Here is what I am currently doing:
asterisk -rx "rpt playback $node channel" asterisk -rx "rpt playback $node digits/$chan"
This works well for my 16 channel radio, but I am annoyed by the amount of space between the audio files.
I tried stuff like
asterisk -rx "rpt playback $node channel & digits/$chan"
but I just get a syntax error.
Does anybody know the solution to get the audio files to play back to back like they do when AllStar announces node connections etc?
73 Skyler KDØWHB\ _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Skyler Fennell amsatnet.info KDØWHB electricity440@gmail.com
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Skyler Fennell amsatnet.info KDØWHB electricity440@gmail.com
participants (4)
-
David McGough -
kk6ecm -
Skyler F -
Steve Mahler