diff options
author | John Crispin <blogic@openwrt.org> | 2012-03-25 08:51:16 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-03-25 08:51:16 +0000 |
commit | 05505f206f481ce0cfec4dc70bd4c6fa959d3657 (patch) | |
tree | 593cc817028c9ad6b1f83b14f6f956d286839a64 /package/pjsip/patches/0004-Pulse-dialing-support-into-pjsip.patch | |
parent | 5b7d34454ea6ca8266323fdc5907967e997d54ab (diff) | |
download | master-187ad058-05505f206f481ce0cfec4dc70bd4c6fa959d3657.tar.gz master-187ad058-05505f206f481ce0cfec4dc70bd4c6fa959d3657.tar.bz2 master-187ad058-05505f206f481ce0cfec4dc70bd4c6fa959d3657.zip |
[pjsip] Pulse dialing support into pjsip.
Signed-off-by: Andrej Vlašić <andrej.vlasic0@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31070 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pjsip/patches/0004-Pulse-dialing-support-into-pjsip.patch')
-rw-r--r-- | package/pjsip/patches/0004-Pulse-dialing-support-into-pjsip.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/package/pjsip/patches/0004-Pulse-dialing-support-into-pjsip.patch b/package/pjsip/patches/0004-Pulse-dialing-support-into-pjsip.patch new file mode 100644 index 0000000000..125d472302 --- /dev/null +++ b/package/pjsip/patches/0004-Pulse-dialing-support-into-pjsip.patch @@ -0,0 +1,34 @@ +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/pjmedia/src/pjmedia-audiodev/tapi_dev.c ++++ b/pjmedia/src/pjmedia-audiodev/tapi_dev.c +@@ -833,6 +833,13 @@ tapi_dev_event_handler(tapi_aud_stream_t *stream) + if(tapi_digit_callback) + tapi_digit_callback(i, tapiEvent.data.dtmf.ascii); + break; ++ case IFX_TAPI_EVENT_PULSE_DIGIT: ++ if(tapi_digit_callback) ++ if(tapiEvent.data.pulse.digit == 0xB) ++ tapi_digit_callback(i, '0'); ++ else ++ tapi_digit_callback(i, '0' + tapiEvent.data.pulse.digit); ++ break; + case IFX_TAPI_EVENT_COD_DEC_CHG: + case IFX_TAPI_EVENT_TONE_GEN_END: + case IFX_TAPI_EVENT_CID_TX_SEQ_END: +-- +1.7.7.1 + |