linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] [PATCH] fix DTMF event handler receiving pointer t


From: Max A. Kiselev
Subject: [Linphone-developers] [PATCH] fix DTMF event handler receiving pointer to the current call instead of the call receiving the DTMF
Date: Thu, 25 Jun 2015 18:10:49 +0300

---

coreapi/linphonecall.c | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)

 

diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c

index 4f2a571..a3e6881 100644

--- a/coreapi/linphonecall.c

+++ b/coreapi/linphonecall.c

@@ -2105,12 +2105,12 @@ void linphone_call_init_media_streams(LinphoneCall *call){

 static int dtmf_tab[16]={'0','1','2','3','4','5','6','7','8','9','*','#','A','B','C','D'};

-static void linphone_core_dtmf_received(LinphoneCore *lc, int dtmf){

+static void linphone_core_dtmf_received(LinphoneCall *call, int dtmf){

               if (dtmf<0 || dtmf>15){

                              ms_warning("Bad dtmf value %i",dtmf);

                              return;

               }

-              linphone_core_notify_dtmf_received(lc, linphone_core_get_current_call(lc), dtmf_tab[dtmf]);

+             linphone_core_notify_dtmf_received(call->core, call, dtmf_tab[dtmf]);

}

 static void parametrize_equalizer(LinphoneCore *lc, AudioStream *st){

@@ -3628,7 +3628,7 @@ void linphone_call_handle_stream_events(LinphoneCall *call, int stream_index){

                                              || (evt == ORTP_EVENT_ICE_LOSING_PAIRS_COMPLETED) || (evt == ORTP_EVENT_ICE_RESTART_NEEDED)) {

                                              handle_ice_events(call, ev);

                              } else if (evt==ORTP_EVENT_TELEPHONE_EVENT){

-                                             linphone_core_dtmf_received(call->core,evd->info.telephone_event);

+                                            linphone_core_dtmf_received(call,evd->info.telephone_event);

                              }

                              ortp_event_destroy(ev);

               }

--

1.9.5.msysgit.0

Attachment: 0001-fix-DTMF-event-handler-receiving-pointer-to-the-curr.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]