One can see clearly how accounts 0-2 are pointing to 10.0.0.106 (localhost) while only account #03 is pointing to the remote server On Wed, Jul 29, 2009 at 12:10 PM, Tzury Bar Yochay<tzury.by at gmail.com> wrote: > Hi, > > I have a FreeSwitch which is build and configured to work with TLS and SRTP. > I cannot make this work with PJSIP while when using proprietary > (thusly closed source ;-( ) clients I am able to establish secure > calls. > > I have built the latest revision of PJSIP after ?setting ?*define > PJSIP_HAS_TLS_TRANSPORT 1* at > `pjproject/pjsip/include/ > pjsip/sip_config.h` > and have openssl (and its header files) installed on my linux machine. > I also copied the certificate of the server and supply it in the > config file as you can see below > > when running > $ ./pjsua-i686-pc-linux-gnu --config-file default.conf > I get the following in the terminal > > Account list: > ?[ 0] <sip:10.0.0.106:5060>: does not register > ? ? ? Online status: Online > ?[ 1] <sip:10.0.0.106:5060;transport=TCP>: does not register > ? ? ? Online status: Online > ?[ 2] <sip:10.0.0.106:5061;transport=TLS>: does not register > ? ? ? Online status: Online > ?*[ 3] sip:1050 at cheerfulsanity.net: 200/OK (expires=87) > ? ? ? Online status: Online > > > the default.conf contains the following lines: > > --id sip:1050 at domain.net > --registrar sip:domain.net > --realm * > --username 1050 > --password ******** > --use-srtp 2 > --srtp-secure 0 > --use-tls > --tls-cert-file cacert.pem >