mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 09:12:25 +00:00
gsmopen: AT commands cosmetics
This commit is contained in:
parent
273aa89423
commit
2a25c4f2e7
@ -2218,7 +2218,7 @@ int gsmopen_serial_hangup_AT(private_t *tech_pvt)
|
|||||||
|
|
||||||
res = gsmopen_serial_write_AT_ack(tech_pvt, "AT+CHUP");
|
res = gsmopen_serial_write_AT_ack(tech_pvt, "AT+CHUP");
|
||||||
if (res) {
|
if (res) {
|
||||||
ERRORA("at_hangup command failed, command used: 'AT+CHUP'\n", GSMOPEN_P_LOG);
|
DEBUGA_GSMOPEN("at_hangup command timeout, command used: 'AT+CHUP'\n", GSMOPEN_P_LOG);
|
||||||
//return -1;
|
//return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2663,7 +2663,7 @@ int gsmopen_senddigit(private_t *tech_pvt, char digit)
|
|||||||
sprintf(at_command, "%s=1,%c", tech_pvt->at_send_dtmf, digit);
|
sprintf(at_command, "%s=1,%c", tech_pvt->at_send_dtmf, digit);
|
||||||
res = gsmopen_serial_write_AT_ack(tech_pvt, at_command);
|
res = gsmopen_serial_write_AT_ack(tech_pvt, at_command);
|
||||||
if (res) {
|
if (res) {
|
||||||
ERRORA("senddigit command failed, command used: '%s=\"%c\"', giving up\n", GSMOPEN_P_LOG, tech_pvt->at_send_dtmf, digit);
|
DEBUGA_GSMOPEN("XXX answer (OK) takes long to come, goes into timeout. command used: '%s=1,%c'\n", GSMOPEN_P_LOG, tech_pvt->at_send_dtmf, digit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user