]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
gsmopen: send out those pesky DTMFs
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 24 Apr 2012 12:31:39 +0000 (14:31 +0200)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 24 Apr 2012 12:31:50 +0000 (14:31 +0200)
src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp
src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp

index e422c9570b16b3e43de4f9ff534cccdc95e5fb62..2b90706d8c89bfb225a7e1c7e00d767243ee715d 100644 (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);
index 8ccfeda0aebf784d7b4c903f73ed3489f4e86acb..d9a5668e80f3ac63624a2ee990440794aac834d4 100644 (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 = "";