-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simpleusb-tune-menu is replacing empty devstr= with a device string #328
Comments
I believe it's intended behavior to allow for additional USB devices. Maybe there needs to be an option to clear the devstr to allow auto discovery once again. |
The current operation is the original intended behavior. See issue #284 . Originally, the default configs contained a device string. That string would not work for all users. We changed the sample configs to have a blank device string. When the user plugs in the device, chan_simpleusb and chan_usbradio will recognize the blank device string and assign the first unused CM108 device. The channel drivers, upon receiving a command to save the settings, writes out the current device string setting to the configuration file. The device string really needs to be populated after setup. On a node with multiple devices, we need the string to associate the node with the correct device. I agree with Tim - if a user is replacing a device and it is not recognized with the same device string, we would want some mechanism to reset the device string to blank for a given node. That would cause the internal device discovery mechanism to work. |
Sounds good. |
@jxmx Sounds like a simple menu option. Do you want to leave it open for a next release... not this beta? |
Re: a "simple menu option" What are we thinking? Or, do we just need to make sure that the tune menu's "S) Swap Current USB device with another USB device" options work? |
I think the latter? |
If
/etc/asterisk/simpleusb.conf
starts out with an emptydevstr=
, is it expected thatsimpleusb-tune-menu
will will then populatedevstr=
with a fixed value? In testing the Pi image, I was running one type of radio board. I swapped it out for a different one and spent a few minutes trying to figure out why the sound card wasn't working right. Thedevstr=
which started out from the stock/default empty changed from from1-1.5:1-0
to1-1.2:1.0
with the only thing that would have edited it wassimpleusb-tune-menu
. Editing/etc/asterisk/simpleusb.conf
to clear outdevstr=
fixed it, but runningsimpleusb-tune-menu
writes the device string right back tosimpleusb.conf
. I think this is a bug?The text was updated successfully, but these errors were encountered: