On Thu, Jul 25, 2013 at 7:56 PM, Anthony MinessaleYes, it works either way. calling from chrome and calling to chrome.
<anthony.minessale@gmail.com> wrote:
> Does it work either way?
Yeah, what is the difference?
> I guess another good question is what's the difference?
I'm asking because of my curiousity, you use SSL_read not BIO_read
while in the same time use BIO_write.
>OK, will do if i have it.
> If you have a problem or refactoring the code has merit. Submit a patch to
> Jira and provide details.
>
> On Jul 25, 2013 4:43 AM, "Iwan Budi Kusnanto" <ibk@labhijau.net> wrote:
>>
>> Hi,
>> Just curious, why use SSL_read in do_dtls() [1] while in the same time
>> Freeswitch use BIO_write.
>> Just wondering why not use BIO_read.
>>
>> I replaced SSL_read with BIO_read and it is working fine with chrome
>> for few calls.
>> Not intensive test actually.
>> So, the line become if (BIO_read(dtls->write_bio, dtls->data,
>> dtls->bytes) == (int)dtls->bytes)
>>
>> Another question, still in do_dtls() about this line:
>> BIO_write(dtls->read_bio, dtls->data, dtls->bytes)
>>
>> Why use dtls->read_bio in write operation?
>>
>> Why also need dtls->write_bio in my BIO_read above.
>> It seems weird for me
>>
>>
>> [1]https://github.com/FreeSWITCH/FreeSWITCH/blob/master/src/switch_rtp.c#L2376
>>
>> --
>> Iwan Budi Kusnanto
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting@freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>> http://www.cudatel.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev@lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting@freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
--
Iwan Budi Kusnanto
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org