source: trunk/package/pjsip/patches/0004-Pulse-dialing-support-into-pjsip.patch @ 31070

Last change on this file since 31070 was 31070, checked in by blogic, 5 years ago

[pjsip] Pulse dialing support into pjsip.

Signed-off-by: Andrej Vlašić <andrej.vlasic0@…>

File size: 1.2 KB
  • pjmedia/src/pjmedia-audiodev/tapi_dev.c

    From 347ac23bded2fecf8f4f6daa20da4083206ae977 Mon Sep 17 00:00:00 2001
    From: John Crispin <blogic@openwrt.org>
    Date: Mon, 19 Mar 2012 14:55:47 +0100
    Subject: [PATCH 4/4] Pulse dialing support into pjsip.
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    Signed-off-by: Andrej Vlašić <andrej.vlasic0@gmail.com>
    ---
     .../pjmedia/src/pjmedia-audiodev/tapi_dev.c        |    7 +++++++
     1 files changed, 7 insertions(+), 0 deletions(-)
    
    diff --git a/pjmedia/src/pjmedia-audiodev/tapi_dev.c b/pjmedia/src/pjmedia-audiodev/tapi_dev.c
    index 2c65a0d..f650a3e 100644
    a b tapi_dev_event_handler(tapi_aud_stream_t *stream) 
    833833                                if(tapi_digit_callback) 
    834834                                        tapi_digit_callback(i, tapiEvent.data.dtmf.ascii); 
    835835                                break; 
     836                        case IFX_TAPI_EVENT_PULSE_DIGIT: 
     837                                if(tapi_digit_callback) 
     838                                        if(tapiEvent.data.pulse.digit == 0xB) 
     839                                                tapi_digit_callback(i, '0'); 
     840                                        else 
     841                                                tapi_digit_callback(i, '0' + tapiEvent.data.pulse.digit); 
     842                                break; 
    836843                        case IFX_TAPI_EVENT_COD_DEC_CHG: 
    837844                        case IFX_TAPI_EVENT_TONE_GEN_END: 
    838845                        case IFX_TAPI_EVENT_CID_TX_SEQ_END: 
Note: See TracBrowser for help on using the repository browser.