Hi David, thanks for answer. yes, I added "transport=tls". But nothing changed. I think I must add certificate too, but I don't know how do this in pjusa2. On Fri, Sep 18, 2015 at 8:00 PM, <pjsip-request at lists.pjsip.org> wrote: > Irakli Managadze > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150918/7cf85438/attachment-0001.html > > > > ------------------------------ > > Message: 9 > Date: Fri, 18 Sep 2015 12:25:03 +0000 > From: David Villasmil Govea <david.villasmil@xxxxxxxxx> > To: pjsip list <pjsip at lists.pjsip.org> > Subject: Re: ?SIP registration failed with status=503 > (Connection refused)? with PJSUA2 > Message-ID: > < > CAPTi0gpiioLGHMPBSfaqFXtDy0+GK4aU8dq0CDZXobuj3Pjx4g at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Did you add "transport=tls" to the reg uri? > On Fri, Sep 18, 2015 at 2:04 PM Irakli Managadze <managadze at gmail.com> > wrote: > > > Hi all, > > > > I succefuly build pjsip library with OpenSSL. Now how can I configure TLS > > transport using pjsua2 api? After added tls ransport(ep.transportCreate( > > pjsip_transport_type_e.PJSIP_TRANSPORT_TLS, ipTpConfig);), log tells, > > that "!SIP TLS listener is ready for incoming connections". But when I > > added new account, SIP registration failed with status=503(Connection > > refused). where do I add asterisk.pem and myapp.pem ?Here is asterisk > > configuration: > > > > icesupport=yes > > avpf=yes > > qualify=yes > > encryption=yes > > dtlsenable=yes > > dtlsverify = no > > dtlsrekey = 60 > > dtlscafile = /var/lib/asterisk/keys/ca.crt > > dtlscertfile = /var/lib/asterisk/keys/asterisk.pem > > dtlssetup = actpass > > > > ------------------------------------- > > > > Irakli Managadze > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip at lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150918/2e288d5a/attachment-0001.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > ------------------------------ > > End of pjsip Digest, Vol 97, Issue 16 > ************************************* > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150919/732f3a51/attachment.html>