[pjsip] Pulse dialing support into pjsip.
[openwrt/svn-archive/archive.git] / package / pjsip / patches / 0004-Pulse-dialing-support-into-pjsip.patch
1 From 347ac23bded2fecf8f4f6daa20da4083206ae977 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Mon, 19 Mar 2012 14:55:47 +0100
4 Subject: [PATCH 4/4] Pulse dialing support into pjsip.
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Andrej Vlašić <andrej.vlasic0@gmail.com>
10 ---
11 .../pjmedia/src/pjmedia-audiodev/tapi_dev.c | 7 +++++++
12 1 files changed, 7 insertions(+), 0 deletions(-)
13
14 diff --git a/pjmedia/src/pjmedia-audiodev/tapi_dev.c b/pjmedia/src/pjmedia-audiodev/tapi_dev.c
15 index 2c65a0d..f650a3e 100644
16 --- a/pjmedia/src/pjmedia-audiodev/tapi_dev.c
17 +++ b/pjmedia/src/pjmedia-audiodev/tapi_dev.c
18 @@ -833,6 +833,13 @@ tapi_dev_event_handler(tapi_aud_stream_t *stream)
19 if(tapi_digit_callback)
20 tapi_digit_callback(i, tapiEvent.data.dtmf.ascii);
21 break;
22 + case IFX_TAPI_EVENT_PULSE_DIGIT:
23 + if(tapi_digit_callback)
24 + if(tapiEvent.data.pulse.digit == 0xB)
25 + tapi_digit_callback(i, '0');
26 + else
27 + tapi_digit_callback(i, '0' + tapiEvent.data.pulse.digit);
28 + break;
29 case IFX_TAPI_EVENT_COD_DEC_CHG:
30 case IFX_TAPI_EVENT_TONE_GEN_END:
31 case IFX_TAPI_EVENT_CID_TX_SEQ_END:
32 --
33 1.7.7.1
34