Hi, I'm currently trying to add TLS-Support to my sofia-apps (1.12.9) and encountered a problem. My client sends a SUBSCRIBE over TLS which is answered by the server with TLS. But when I try to send a NOTIFY to the client on the same handle, sofia tries to send it over udp, which naturally fails with a 5XX error. You can see the Messages below.
Now my question is: - How can I tell sofia to send all messages for a specific handle with the same transport type? - Do I have to use the sips-schema? And if so do I have to use it for every URI or just the request-URI? - How do I start a new dialog as TLS? By the way, I tried to trace the communication with wireshark and after configuring the certificate I was able to see the SIP-messages, but the sofia-sip messages were fragmented onto various 'ApplicationData'-packets that could not be combined by wireshark (although they could be deciphered). I know, this is a wireshark issue for it is ok to fragment packets this way when sent over SSL, but is there a way to keep sofia from fragmenting them? Thanks in advance, Markus PS: I forgot to thank you guys for the answer to my last post. So thank you guys ;-) recv 417 bytes from tls/[192.168.72.241]:5068 at 06:56:31.097106: ------------------------------------------------------------------------ SUBSCRIBE sip:10.10.25.81:5061 SIP/2.0 Via: SIP/2.0/TLS 192.168.72.241;branch=z9hG4bK1dabd927b020a4ffe Max-Forwards: 70 From: 4001 <sip:4...@10.10.25.81:5061>;tag=0298d4b20d To: <sip:4...@mypc> Call-ID: ecaea7cf385eb91f CSeq: 199090064 SUBSCRIBE Contact: 4001 <sip:4...@192.168.72.241:5068> Event: presence Expires: 2678400 User-Agent: MyUAC Content-Length: 0 ------------------------------------------------------------------------ send 618 bytes to tls/[192.168.72.241]:5068 at 06:56:31.102294: ------------------------------------------------------------------------ SIP/2.0 202 Accepted Via: SIP/2.0/TLS 192.168.72.241;branch=z9hG4bK1dabd927b020a4ffe;rport=5068 From: 4001 <sip:4...@10.10.25.81:5061>;tag=0298d4b20d To: <sip:4...@mypc>;tag=B72rSt254HH7B Call-ID: ecaea7cf385eb91f CSeq: 199090064 SUBSCRIBE Contact: <sip:4...@10.10.25.81:5060> Expires: 3600 User-Agent: MyB2BUA6.0.2 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: precondition, timer, pref Allow-Events: talk, presence, presence.winfo, message-summary Subscription-State: active;expires=2678400 Content-Length: 0 ------------------------------------------------------------------------ send 1385 bytes to udp/[192.168.72.241]:5068 at 06:56:31.103482: ------------------------------------------------------------------------ NOTIFY sip:4...@192.168.72.241:5068 SIP/2.0 Via: SIP/2.0/UDP 10.10.25.81;rport;branch=z9hG4bK96evjr310ta8j Max-Forwards: 70 From: <sip:4...@mypc>;tag=B72rSt254HH7B To: 4001 <sip:4...@10.10.25.81:5061>;tag=0298d4b20d Call-ID: ecaea7cf385eb91f CSeq: 3529231 NOTIFY Contact: <sip:4...@10.10.25.81:5060> User-Agent: MyB2BUA6.0.2 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: precondition, timer, pref Event: presence Allow-Events: talk, presence, presence.winfo, message-summary Subscription-State: active;expires=3600 Content-Type: application/pidf+xml Content-Length: 706 ... ------------------------------------------------------------------------ ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel