[asterisk-bugs] [JIRA] (ASTERISK-17379) bfin-uclinux-uclibc:TLS extension can not make calls

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Jan 2 08:41:49 CST 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-17379:
-------------------------------------

    Assignee: Joshua Colp  (was: timzc)
      Status: Open  (was: Waiting for Feedback)

> bfin-uclinux-uclibc:TLS extension can not make calls
> ----------------------------------------------------
>
>                 Key: ASTERISK-17379
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17379
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Channels/chan_sip/TCP-TLS
>    Affects Versions: 1.8.2
>            Reporter: timzc
>            Assignee: Joshua Colp
>            Severity: Minor
>
> 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.
> ****** ADDITIONAL INFORMATION ******
> When I make calls.I get the debug info:
> ssl read size 256 returns 255 <INVITE sip:501 at 192.168.5.222;transport=tls SIP/2.0
> Via: SIP/2.0/TLS 192.168.5.34:1339;branch=z9hG4bK803f198d2a33e0118db70800276d6cb1;rport;alias
> From: "PhonerLite" <sip:502 at 192.168.5.222>;tag=2300400859
> To: <sip:501 at 192.168.5.222;transport=tls>
> Call-I>
> ssl read begin len = 256
> ssl read size 256 returns 255 <D: 803F198D-2A33-E011-8DB6-0800276D6CB1 at 192.168.5.34
> CSeq: 5 INVITE
> Contact: <sip:502 at 192.168.5.34:1332;transport=tls>
> Content-Type: application/sdp
> Allow: INVITE, OPTIONS, ACK, BYE, CANCEL, INFO, NOTIFY, MESSAGE, UPDATE
> Max-Forwards: 70
> Supported: >
> ssl read begin len = 256
> ssl read size 256 returns 255 <100rel, replaces
> User-Agent: SIPPER for PhonerLite
> P-Preferred-Identity: <sip:502 at 192.168.5.222>
> Content-Length:   395
> v=0
> o=- 2969245308 0 IN IP4 192.168.5.34
> s=SIPPER for PhonerLite
> c=IN IP4 192.168.5.34
> t=0 0
> m=audio 1333 RTP/AVP 8 0 2 3 97 >
> ssl read size 265 returns 264 <110 111 9 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:2 G726-32/8000
> a=rtpmap:3 GSM/8000
> a=rtpmap:97 iLBC/8000
> a=rtpmap:110 speex/8000
> a=rtpmap:111 speex/16000
> a=rtpmap:9 G722/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> >=sendrecv
> ssl read size 1 returns 0 <>
> The last byte can not be read.
> May be the implement of the function fread() is different in uClibc.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list