mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 03:34:15 +00:00
mod_gsmopen: convert reported RSSI from AT+CSQ to dBm.
Add to gsmopen_dump and events.
This commit is contained in:
1 parent
13a595a15e
commit
4aa7c98d5a
3 files changed
+13
No files matched your search
@@ -996,6 +996,12 @@ int gsmopen_serial_read_AT(private_t *tech_pvt, int look_for_ack, int timeout_us
|
||||
tech_pvt->got_signal = 2;
|
||||
}
|
||||
|
||||
if (signal_quality == 99) {
|
||||
tech_pvt->signal_strength = 0;
|
||||
} else {
|
||||
tech_pvt->signal_strength = (signal_quality * 2) - 113; /* RSSI [dBm] = reported_value * 2 - 113dB */
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user