Stupid asterisk tricks

All,
For those of you who may want to play with the code I put up at https://github.com/KG7QIN/AllStarLink-Asterisk-1.8 but don't have a radio or anything else they want to /can spare at the moment, there is something else you can do:

Setup your console to dial. Once you do this, you can do something like "console dial 42088" and have the audio of your node play on your computer speakers. You could probably even use it to talk, but I don't really recommend it unless you know what you are doing.

To set this up, you will need to:
1. Add comment our the noload => chan_alsa.so or noload => chan_oss.so line in your modules conf.
2. Edit your oss.conf or alsa.conf file (depending on which you use, I recommend alsa) to use your console.

I use alsa.conf, so here is what the my test node's alsa.conf looks like:

[general]
autoanswer=no
context=radio-control-console
;this needs to correspond to your nodes's number
extension=42088
;aplay -l can list your alsa devices
input_device=plughw:0,1
output_device=plughw:0,0
;default mute state
mute=true

For your extensions.conf, add this to the end of it so that radio-control-console context has somewhere to go (change the 42088 to match the node number you put in the extensions section in the file above.

[radio-control-console]
exten => 42088,1,Ringing
exten => 42088,n,Wait(3)
exten => 42088,n,Answer
exten => 42088,n,Set(CALLERID(name)="KG7XXX")
exten => 42088,n,Playback(rpt/connected)
exten => 42088,n,Playback(rpt/node)
exten => 42088,n,Saydigits(${EXTEN})
exten => 42088,n,Rpt(${EXTEN},P,${CALLERID(name)})

You can then startup asterisk, and on the console type "console dial <node>" and watch/listen as your system dials in using phone mode. "console dial <digits>" to dial. "console hangup" to hangup.

(Note I have only done this with the 1.8 port I've put up in the github repository).

-Stacy
KG7QIN

Should be:
1. Comment out the noload => chan_alsa.so or noload => chan_oss.so line in your modules conf.

···

On 09/14/2016 08:55 PM, Stacy wrote:

All,
For those of you who may want to play with the code I put up at GitHub - KG7QIN/AllStarLink-Asterisk-1.8: Start of porting AllStarLink modules to Asterisk 1.8.32.3 - very alpha software! Not for production use!!! but don't have a radio or anything else they want to /can spare at the moment, there is something else you can do:

Setup your console to dial. Once you do this, you can do something like "console dial 42088" and have the audio of your node play on your computer speakers. You could probably even use it to talk, but I don't really recommend it unless you know what you are doing.

To set this up, you will need to:
1. Add comment our the noload => chan_alsa.so or noload => chan_oss.so line in your modules conf.
2. Edit your oss.conf or alsa.conf file (depending on which you use, I recommend alsa) to use your console.

I use alsa.conf, so here is what the my test node's alsa.conf looks like:

[general]
autoanswer=no
context=radio-control-console
;this needs to correspond to your nodes's number
extension=42088
;aplay -l can list your alsa devices
input_device=plughw:0,1
output_device=plughw:0,0
;default mute state
mute=true

For your extensions.conf, add this to the end of it so that radio-control-console context has somewhere to go (change the 42088 to match the node number you put in the extensions section in the file above.

[radio-control-console]
exten => 42088,1,Ringing
exten => 42088,n,Wait(3)
exten => 42088,n,Answer
exten => 42088,n,Set(CALLERID(name)="KG7XXX")
exten => 42088,n,Playback(rpt/connected)
exten => 42088,n,Playback(rpt/node)
exten => 42088,n,Saydigits(${EXTEN})
exten => 42088,n,Rpt(${EXTEN},P,${CALLERID(name)})

You can then startup asterisk, and on the console type "console dial <node>" and watch/listen as your system dials in using phone mode. "console dial <digits>" to dial. "console hangup" to hangup.

(Note I have only done this with the 1.8 port I've put up in the github repository).

-Stacy
KG7QIN
_______________________________________________
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.

This will also work in the existing and release candidate of DIAL"
See a simple example at <https://github.com/N4IRS/AllStar/tree/master/chan_alsaradio&gt;

73, Steve N4IRS

···

On 9/14/2016 11:55 PM, Stacy wrote:

All,
For those of you who may want to play with the code I put up at
GitHub - KG7QIN/AllStarLink-Asterisk-1.8: Start of porting AllStarLink modules to Asterisk 1.8.32.3 - very alpha software! Not for production use!!! but don't have a
radio or anything else they want to /can spare at the moment, there is
something else you can do:

Setup your console to dial. Once you do this, you can do something like
"console dial 42088" and have the audio of your node play on your
computer speakers. You could probably even use it to talk, but I don't
really recommend it unless you know what you are doing.

To set this up, you will need to:
1. Add comment our the noload => chan_alsa.so or noload => chan_oss.so
line in your modules conf.
2. Edit your oss.conf or alsa.conf file (depending on which you use, I
recommend alsa) to use your console.

I use alsa.conf, so here is what the my test node's alsa.conf looks like:

[general]
autoanswer=no
context=radio-control-console
;this needs to correspond to your nodes's number
extension=42088
;aplay -l can list your alsa devices
input_device=plughw:0,1
output_device=plughw:0,0
;default mute state
mute=true

For your extensions.conf, add this to the end of it so that
radio-control-console context has somewhere to go (change the 42088 to
match the node number you put in the extensions section in the file above.

[radio-control-console]
exten => 42088,1,Ringing
exten => 42088,n,Wait(3)
exten => 42088,n,Answer
exten => 42088,n,Set(CALLERID(name)="KG7XXX")
exten => 42088,n,Playback(rpt/connected)
exten => 42088,n,Playback(rpt/node)
exten => 42088,n,Saydigits(${EXTEN})
exten => 42088,n,Rpt(${EXTEN},P,${CALLERID(name)})

You can then startup asterisk, and on the console type "console dial
<node>" and watch/listen as your system dials in using phone mode.
"console dial <digits>" to dial. "console hangup" to hangup.

(Note I have only done this with the 1.8 port I've put up in the github
repository).

-Stacy
KG7QIN
_______________________________________________
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.

--
"Just say no to world domination"