Sebastian Damm d14d1ba826 
	
	
	res_pjsip_outbound_registration: generate correct Contact URI for TLS ... 
			There are two types of SIP URIs indicating a secure transport:
* sips:user@example.org 
* sip:user@example.org ;transport=tls
When using a sips URI, Asterisk checks incoming INVITEs and answers from
the other side for sips URIs, and rejects the packet if there are only
sip URIs. So Asterisk should only generate a sips Contact URI if the
other side supports it.
This patch makes Asterisk generate either a sip or sips Contact URI
depending on the format of the server URI.
If you want a sip URI, use:
server_uri=sip:example.org\;transport=tls
If you want a sips URI, use:
server_uri=sips:example.org
ASTERISK-25990 #close
Reported-by: Sebastian Damm
Change-Id: I5ae57d6531ce940b5fc64d5cd2673e60db0f9ba2 
		
	 
		2016-05-12 05:34:12 -05:00 
	 
	
	
	
		 
	
	
		
	
		
			
			
			
			
			
			2016-04-06 05:43:47 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-29 09:03:55 -05:00 
		 
	
		
			
			
			
			
			
			2016-05-03 16:38:30 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2016-04-20 15:44:30 -05:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-04-25 09:56:00 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2015-08-07 14:57:45 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2016-04-05 18:14:17 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2015-09-22 09:59:47 -05:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2015-08-18 16:38:19 -05:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-01-10 13:32:59 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2015-12-09 12:48:51 -06:00 
		 
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-03-07 03:42:18 -03:00 
		 
	
		
	
		
			
			
			
			
			
			2016-03-07 03:42:18 -03:00 
		 
	
		
			
			
			
			
			
			2016-02-22 10:11:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-18 13:49:55 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2015-06-26 22:06:06 -05:00 
		 
	
		
			
			
			
			
			
			2016-01-09 13:39:09 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-03-23 13:53:22 -03:00 
		 
	
		
			
			
			
			
			
			2015-11-24 13:57:05 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-05-04 09:37:15 -05:00 
		 
	
		
	
		
	
		
	
		
			
			
			
			
			
			2015-11-19 08:09:51 +01:00 
		 
	
		
			
			
			
			
			
			2015-12-04 07:20:41 -06:00 
		 
	
		
			
			
			
			
			
			2015-08-11 18:24:29 -05:00 
		 
	
		
			
			
			
			
			
			2015-12-04 09:01:16 -06:00 
		 
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-03-23 13:53:22 -03:00 
		 
	
		
	
		
			
			
			
			
			
			2016-04-05 10:22:20 -05:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-03-24 13:51:00 +01:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2016-01-04 17:31:24 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-03-07 05:02:45 -03:00 
		 
	
		
			
			
			
			
			
			2016-01-22 11:59:06 -06:00 
		 
	
		
			
			
			
			
			
			2016-02-03 14:11:11 -06:00 
		 
	
		
			
			
			
			
			
			2016-02-16 16:42:26 -06:00 
		 
	
		
			
			
			
			
			
			2016-03-29 09:03:55 -05:00 
		 
	
		
			
			
			
			
			
			2016-02-11 20:19:03 +00:00 
		 
	
		
	
		
			
			
			
			
			
			2016-02-18 16:30:29 -06:00 
		 
	
		
			
			
			
			
			
			2016-01-20 09:56:13 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2016-05-09 14:17:43 -05:00 
		 
	
		
			
			
			
			
			
			2016-04-19 18:16:35 -05:00 
		 
	
		
			
			
			
			
			
			2016-02-15 21:37:04 -06:00 
		 
	
		
			
			
			
			
			
			2016-05-09 10:40:36 -03:00 
		 
	
		
			
			
			
			
			
			2016-03-01 20:21:58 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-03-03 10:43:20 -06:00 
		 
	
		
			
			
			
			
			
			2016-04-27 10:58:43 -05:00 
		 
	
		
			
			
			
			
			
			2016-05-06 12:56:07 -04:00 
		 
	
		
			
			
			
			
			
			2016-05-06 12:56:07 -04:00 
		 
	
		
			
			
			
			
			
			2016-05-09 10:40:36 -03:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2015-12-31 21:27:39 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-03-02 18:02:38 -06:00 
		 
	
		
			
			
			
			
			
			2016-02-08 19:11:18 -06:00 
		 
	
		
			
			
			
			
			
			2016-03-30 13:23:54 -05:00 
		 
	
		
			
			
			
			
			
			2016-04-28 17:07:22 -05:00 
		 
	
		
			
			
			
			
			
			2016-02-08 19:11:18 -06:00 
		 
	
		
			
			
			
			
			
			2016-03-07 13:16:41 -06:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2016-04-29 14:53:40 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2016-05-12 05:34:12 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-07 13:16:41 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2015-07-06 16:15:12 -05:00 
		 
	
		
			
			
			
			
			
			2015-08-06 05:20:47 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2016-04-28 17:07:22 -05:00 
		 
	
		
			
			
			
			
			
			2016-05-09 10:40:36 -03:00 
		 
	
		
			
			
			
			
			
			2016-03-30 13:23:54 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-17 15:11:39 -03:00 
		 
	
		
			
			
			
			
			
			2016-04-11 13:00:27 -05:00 
		 
	
		
			
			
			
			
			
			2016-05-06 12:56:07 -04:00 
		 
	
		
			
			
			
			
			
			2015-11-13 16:34:41 -05:00 
		 
	
		
			
			
			
			
			
			2016-02-08 19:11:18 -06:00 
		 
	
		
			
			
			
			
			
			2016-03-03 05:32:59 -06:00 
		 
	
		
			
			
			
			
			
			2016-04-05 16:13:38 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2016-02-29 12:50:43 -06:00 
		 
	
		
			
			
			
			
			
			2016-04-18 13:49:45 -05:00 
		 
	
		
			
			
			
			
			
			2016-02-08 19:11:18 -06:00 
		 
	
		
			
			
			
			
			
			2015-07-06 16:15:12 -05:00 
		 
	
		
			
			
			
			
			
			2016-05-02 10:01:40 -03:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-04-05 05:37:44 -05:00 
		 
	
		
			
			
			
			
			
			2015-08-19 17:09:58 -05:00 
		 
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-03-27 22:43:27 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-27 22:43:27 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-27 22:43:27 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-27 22:43:27 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-27 22:43:27 -05:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-02-04 12:05:52 -06:00 
		 
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-03-30 16:36:20 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2016-03-31 13:20:55 -05:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2016-04-06 05:43:47 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2015-11-22 22:38:34 -06:00 
		 
	
		
			
			
			
			
			
			2016-02-16 12:26:29 -06:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2015-07-02 05:13:37 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2015-07-02 05:13:37 -05:00 
		 
	
		
			
			
			
			
			
			2016-02-02 06:48:15 -06:00