I am trying to use simple_pjsua with TLS on Mac, OpenSSL is installed.the issue is when I create a TLS transport, but can not generate TLS correctly. but use the url beginning with sips:, the register message can be generated, is it by design or there is anything wrong with the call. the detail step is: 1. I update the simple_pjsua.c : from status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &cfg, NULL);to: status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &cfg, NULL); 2. run ./simple_pjsua, there is an error:"22:06:02.009 pjsua_acc.c Unable to generate suitable Contact header for registration: Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060] 22:06:02.009 pjsua_acc.c Unable to create registration: Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060]" After investigating, I found in pjsua_acc.c:pjsua_acc_create_uac_contact, the tp_type is set to PJSIP_TRANSPORT_UDP instead of TLS" /* Get transport type of the URI */ if (PJSIP_URI_SCHEME_IS_SIPS(sip_uri)) tp_type = PJSIP_TRANSPORT_TLS; else if (sip_uri->transport_param.slen == 0) { tp_type = PJSIP_TRANSPORT_UDP; } else tp_type = pjsip_transport_get_type_from_name(&sip_uri->transport_param);"and if sip_uri begins "sips:", tp_type will be TLS. Thanks,leeygang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101205/8e5dfcc6/attachment.html>