<HTML>
<HEAD>
<TITLE>[sipsimple] Error while establishing session</TITLE>
</HEAD>
<BODY>
<FONT SIZE="2"><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'>Hello,<BR>
<BR>
I have a C++ application on MacOS which uses sipsimple through the embedded python interpreter and I am experiencing the following issue. I can successfully establish a session between two clients using sip-session from terminal but when one of the clients runs in the embedded interpreter I cannot establish a session. I am logging all the notifications that I receive and here is what happens:<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Menlo Bold"><SPAN STYLE='font-size:8.5pt'>handle_notification() - SIPApplicationWillStart<BR>
<BR>
handle_notification() - SIPEngineWillStart<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:8.5pt'><FONT FACE="Menlo Regular">[Switching to process 36426]<BR>
</FONT><FONT FACE="Menlo Bold">handle_notification() - SIPEngineDidStart<BR>
<BR>
handle_notification() - SIPAccountManagerWillStart<BR>
<BR>
handle_notification() - SIPAccountManagerDidStart<BR>
<BR>
handle_notification() - SIPApplicationDidStart<BR>
<BR>
handle_notification() - SIPAccountRegistrationGotAnswer<BR>
<BR>
handle_notification() - SIPAccountRegistrationDidSucceed<BR>
<BR>
handle_notification() - DNSLookupTrace<BR>
<BR>
handle_notification() - DNSLookupTrace<BR>
<BR>
handle_notification() - DNSLookupDidSucceed<BR>
<BR>
handle_notification() - SIPSessionNewOutgoing<BR>
<BR>
handle_notification() - SIPSessionGotRingIndication<BR>
<BR>
handle_notification() - SIPSessionGotProvisionalResponse<BR>
<BR>
handle_notification() - SIPSessionWillStart<BR>
Starting factory <eventlet.twistedutil.protocol.GreenInstanceFactory instance at 0x19e0b800><BR>
Stopping factory <eventlet.twistedutil.protocol.GreenInstanceFactory instance at 0x19e0b800><BR>
handle_notification() - MediaStreamDidFail<BR>
(here I am printing the reason for MediaStreamDidFail)<BR>
A TLS packet with unexpected length was received.<BR>
<BR>
handle_notification() - SIPSessionWillEnd<BR>
<BR>
handle_notification() - MediaStreamWillEnd<BR>
<BR>
handle_notification() - MediaStreamDidEnd<BR>
handle_notification() - SIPSessionDidProcessTransaction<BR>
<BR>
handle_notification() - SIPSessionDidFail<BR>
</FONT></SPAN></FONT><FONT SIZE="2"><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'><BR>
I would appreciate any insight on this problem.<BR>
<BR>
Thank you,<BR>
Mihai Richard</SPAN></FONT></FONT>
</BODY>
</HTML>