[asterisk-bugs] [Asterisk 0018782]: bfin-uclinux-uclibc:TLS extension can not make calls

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 9 21:08:01 CST 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18782 
====================================================================== 
Reported By:                Timzc
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18782
Category:                   Channels/chan_sip/TCP-TLS
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-09 21:08 CST
Last Modified:              2011-02-09 21:08 CST
====================================================================== 
Summary:                    bfin-uclinux-uclibc:TLS extension can not make calls
Description: 
First,Please forgive me for my poor english.
Everything works well in ubuntu.
The extension can register but not make calls with TLS.
I think the problem is in function ssl_read() in main/tcptls.c.
static HOOK_T ssl_read(void *cookie, char *buf, LEN_T len)
{
        int i = SSL_read(cookie, buf, len-1);
#if 1
        if (i >= 0)
                buf[i] = '\0';
        ast_verb(0, "ssl read size %d returns %d <%s>\n", (int)len, i,
buf);
#endif
        return i;
}

If len = 1,SSL_read() will get 0 bytes.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-09 21:08 Timzc          New Issue                                    
2011-02-09 21:08 Timzc          Asterisk Version          => 1.8.2.3         
2011-02-09 21:08 Timzc          Regression                => No              
2011-02-09 21:08 Timzc          SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list