mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-28 21:23:44 +00:00
FS-1085: gsmopen AT+CREG format error now warning
This commit is contained in:
parent
f85fa23f26
commit
db66f1d1f2
@ -1339,8 +1339,8 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u
|
|||||||
if (option_debug > 1)
|
if (option_debug > 1)
|
||||||
DEBUGA_GSMOPEN("|%s| +CREG: Display: %d, Registration=%d\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i], n, stat);
|
DEBUGA_GSMOPEN("|%s| +CREG: Display: %d, Registration=%d\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i], n, stat);
|
||||||
if (err < 2) {
|
if (err < 2) {
|
||||||
ERRORA("|%s| is not formatted as: |+CREG: xx,yy|\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]);
|
WARNINGA("|%s| is not formatted as: |+CREG: xx,yy|\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]);
|
||||||
} else {
|
}
|
||||||
if (stat==0) {
|
if (stat==0) {
|
||||||
ERRORA
|
ERRORA
|
||||||
("|%s| CELLPHONE is not registered to network, consider to move it or additional antenna\n",
|
("|%s| CELLPHONE is not registered to network, consider to move it or additional antenna\n",
|
||||||
@ -1364,8 +1364,6 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((strncmp(tech_pvt->line_array.result[i], "+CMGW:", 6) == 0)) {
|
if ((strncmp(tech_pvt->line_array.result[i], "+CMGW:", 6) == 0)) {
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user