gsmopen: send out those pesky DTMFs

This commit is contained in:
Giovanni Maruzzelli 2012-04-24 14:31:39 +02:00
parent a3367b2da2
commit fbbbd06e28
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 = "";