提交 fbbbd06e authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

gsmopen: send out those pesky DTMFs

上级 a3367b2d
......@@ -2660,7 +2660,7 @@ int gsmopen_senddigit(private_t *tech_pvt, char digit)
char at_command[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);
if (res) {
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_answer = "ATA";
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_expect = "";
const char *at_preinit_2 = "";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论