> How can I tell sofia to send all messages for a specific handle with the same > transport type? You can, but it will likely break the transport layer. The UAC that creates the dialog/handle specifies the transport that is used.
> 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? You should, for every URI. There is an alternative, see below. > How do I start a new dialog as TLS? See below. This contact field instructs the UAS to transmit any requests associated with this dialog over UDP or TCP. For sip, TLS is optional. Also, this request as shown should have been sent to 10.10.25.81:5061 over UDP or TCP. ------ SUBSCRIBE sip:10.10.25.81:5061 SIP/2.0 Contact: 4001 <sip:4...@192.168.72.241:5068> ------ To ensure that the dialog uses secure transport, subscribe to the resource using a sips uri. ------ SUBSCRIBE sips:4...@10.10.25.81 SIP/2.0 Contact: <sips:4...@192.168.72.241:5068> ------ SIP/2.0 202 Accepted Contact: <sips:4...@10.10.25.81> ------ NOTIFY sips:4...@192.168.72.241:5068 SIP/2.0 ------ As an alternative, you can specify the transport parameter in a sip uri. This is depreciated behavior because it only applies to a single hop, but it could be considered secure if the port number is always specified in the URI. ------ SUBSCRIBE sip:4...@10.10.25.81:5061;transport=tls SIP/2.0 Contact: <sip:4...@192.168.72.241:5068;transport=tls> ------ SIP/2.0 202 Accepted Contact: <sip:4...@10.10.25.81:5061;transport=tls> ------ NOTIFY sip:4...@192.168.72.241:5068;transport=tls SIP/2.0 ------ I would highly recommend that you study the whole of RFC 3261 Section 8, which details the function of these core header fields wrt User Agent processing. -----Original Message----- From: Markus Bucher [mailto:buch...@in.tum.de] Sent: Friday, October 22, 2010 4:27 AM To: sofia-sip-devel@lists.sourceforge.net Subject: [Sofia-sip-devel] Using only TLS for a dialog 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? 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