gsmopen: send out those pesky DTMFs
This commit is contained in:
parent
a3367b2da2
commit
fbbbd06e28
|
@ -2660,7 +2660,7 @@ int gsmopen_senddigit(private_t *tech_pvt, char digit)
|
||||||
char at_command[256];
|
char at_command[256];
|
||||||
|
|
||||||
memset(at_command, '\0', 256);
|
memset(at_command, '\0', 256);
|
||||||
sprintf(at_command, "%s=\"%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);
|
ERRORA("senddigit command failed, command used: '%s=\"%c\"', giving up\n", GSMOPEN_P_LOG, tech_pvt->at_send_dtmf, digit);
|
||||||
|
|
|
@ -1190,7 +1190,7 @@ static switch_status_t load_config(int reload_type)
|
||||||
const char *at_hangup_expect = "OK";
|
const char *at_hangup_expect = "OK";
|
||||||
const char *at_answer = "ATA";
|
const char *at_answer = "ATA";
|
||||||
const char *at_answer_expect = "OK";
|
const char *at_answer_expect = "OK";
|
||||||
const char *at_send_dtmf = "AT+VTS";
|
const char *at_send_dtmf = "AT^DTMF";
|
||||||
const char *at_preinit_1 = "";
|
const char *at_preinit_1 = "";
|
||||||
const char *at_preinit_1_expect = "";
|
const char *at_preinit_1_expect = "";
|
||||||
const char *at_preinit_2 = "";
|
const char *at_preinit_2 = "";
|
||||||
|
|
Loading…
Reference in New Issue