Nik2505 / siphon

Automatically exported from code.google.com/p/siphon
0 stars 0 forks source link

PJSIP_TRANSPORT_TLS sends request in TCP #525

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable TLS via config_site.h setting
2. Add TLS support code in call.m file

Expected output: 
Application was suppose to send Registration request on TLS, means SSL 
negitiation and all these.
Actual Output: Application sends request in TCP only

What version of the product are you using? On what operating system?
Version: pjproject 1.8.5
Siphone: latest checkout
OS: iPhone 4.3

I have  following on config_site.h header file 

#define PJSIP_HAS_TLS_TRANSPORT 1
#define PJ_HAS_SSL_SOCK 1
#define PJMEDIA_HAS_SRTP  1

I have set all TLS related parametes like CA list , server name ,Ciphers, TLS 
methods,etc

and then
pjsua_transport_create(PJSIP_TRANSPORT_TLS,
                                        &app_config->tls_cfg, &transport_id);

But this call initiates TCP request with server even though PJSIP_TRANSPORT_TLS.
As its in TCP where asterisk eas expecting in TLS, server rejects the call and 
return response is 503.

Is there anything special i am missing to set/call with TLS?
anyone else has got same problem?

i have even tested csipsimple client for Android and it behaves the same way.

Any help guys?

Cheers,

Hemanshu

Original issue reported on code.google.com by hemanshu...@gmail.com on 4 Jun 2011 at 7:12

GoogleCodeExporter commented 8 years ago
i have used transport=tls in all values proxy and registrar server both.
for tls_settings structure i have set following values

ca_list_file, server_name,method,verify_server(set false for ease of 
operation),ciphers, qos_type,qos_params and timeout.
Anything else is left?

Original comment by hemanshu...@gmail.com on 4 Jun 2011 at 7:17