2009-11-30 08:43:08     Possible Linphone bug

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-11-30 08:43:08     Possible Linphone bug

billy walton (UNITED KINGDOM)

Message: 82890   

 

Hi,

 

In 2009R1 and the 3.1.2 SVN Trunk versions of Linphone, if DTMF is being sent, there is a possible bad read resulting in garbage when the reception is printed in linphonec

 

Depending on how the sending platform has sent the DTMF data, if its sent as a SIP message, then all works fine, if its not, then corruption can occur.

 

In Linphonec.c, the following function:

 

static void linphonec_dtmf_received(LinphoneCore *lc, int dtmf){

    printf("Receiving tone %c\n",dtmf);

}

 

...only works for ASCII values being sent (ie via a SIP message) but normal tones will be sent using a value from 0 to 15 (not good to be used with the %c flag) 

 

static void linphonec_dtmf_received(LinphoneCore *lc, int dtmf){

    printf("Receiving tone %u\n",dtmf);

}

 

Fixes it up!

 

Hope it helps

 

billy

QuoteReplyEditDelete

 

 

2009-12-01 00:38:31     Re: Possible Linphone bug

Cliff Cai (CHINA)

Message: 82902   

 

Hi billy,

 

Would you please send your patch to linphone mailling list? it would help all the linphone users.

 

thanks

 

Cliff

Attachments

    Outcomes