]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 22 Dec 2007 02:16:03 +0000 (02:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 22 Dec 2007 02:16:03 +0000 (02:16 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@358 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/mod_openzap/mod_openzap.c

index 3f322039a2f3239275bb0590a08ae0533d2dea2b..243135959ae072ff8aa7d05c1c88619b2195a8c5 100644 (file)
@@ -418,14 +418,16 @@ static switch_status_t channel_waitfor_write(switch_core_session_t *session, int
 
 }
 
-static switch_status_t channel_send_dtmf(switch_core_session_t *session, char *dtmf)
+static switch_status_t channel_send_dtmf(switch_core_session_t *session, const switch_dtmf_t *dtmf)
 {
        private_t *tech_pvt = NULL;
+       char tmp[2] = "";
 
        tech_pvt = switch_core_session_get_private(session);
        assert(tech_pvt != NULL);
 
-       zap_channel_command(tech_pvt->zchan, ZAP_COMMAND_SEND_DTMF, dtmf);
+       tmp[0] = dtmf->digit;
+       zap_channel_command(tech_pvt->zchan, ZAP_COMMAND_SEND_DTMF, tmp);
                
        return SWITCH_STATUS_SUCCESS;
 }
@@ -509,7 +511,8 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
        }
 
        if (zap_channel_dequeue_dtmf(tech_pvt->zchan, dtmf, sizeof(dtmf))) {
-               switch_channel_queue_dtmf(channel, dtmf);
+               switch_dtmf_t _dtmf = { 0, SWITCH_DEFAULT_DTMF_DURATION };
+               switch_channel_queue_dtmf(channel, &_dtmf);
        }
 
        return SWITCH_STATUS_SUCCESS;