Kevin Harwell
53799318bc
AST-2017-014: res_pjsip - Missing contact header can cause crash
...
Those SIP messages that create dialogs require a contact header to be present.
If the contact header was missing from the message it could cause Asterisk to
crash.
This patch checks to make sure SIP messages that create a dialog contain the
contact header. If the message does not and it is required Asterisk now returns
a "400 Missing Contact header" response. Also added NULL checks when retrieving
the contact header that were missing as a "just in case".
ASTERISK-27480 #close
Change-Id: I1810db87683fc637a9e3e1384a746037fec20afe
2017-12-22 15:38:56 -06:00
..
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-20 12:54:13 -05:00
2017-12-22 15:38:56 -06:00
2017-12-22 09:14:07 -05:00
2017-09-06 10:15:26 +02:00
2017-12-22 09:14:07 -05:00
2017-05-30 17:07:56 -04:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-08 14:27:50 -05:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-04-12 16:46:22 -05:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-06-15 18:31:53 -06:00
2017-11-06 08:46:22 -06:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-04-12 16:46:22 -05:00
2017-12-22 09:14:07 -05:00
2017-02-10 18:01:54 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-09-21 11:25:39 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-04-12 16:46:22 -05:00
2017-12-22 09:14:07 -05:00
2017-12-20 12:54:13 -05:00
2016-08-18 17:15:04 -05:00
2017-11-20 14:10:09 -05:00
2017-11-20 14:10:09 -05:00
2017-12-20 12:54:13 -05:00
2017-12-22 09:14:07 -05:00
2017-11-20 14:10:09 -05:00
2017-11-20 14:10:09 -05:00
2017-12-18 13:32:31 -06:00
2017-12-22 09:14:07 -05:00
2017-12-08 14:27:50 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-15 10:20:51 -05:00
2017-12-22 09:14:07 -05:00
2017-11-07 07:10:27 -06:00
2017-02-20 22:20:54 -06:00
2017-10-03 22:05:33 +02:00
2017-11-06 18:46:54 -05:00
2017-06-16 12:08:27 -04:00
2016-12-31 18:56:09 -07:00
2017-12-12 11:07:01 -06:00
2017-11-23 10:42:06 -06:00
2017-10-25 18:13:26 +00:00
2017-11-17 11:22:10 -05:00
2017-02-15 12:11:18 -07:00
2017-11-07 22:31:07 -05:00
2017-09-22 11:04:31 -04:00
2017-06-21 18:21:57 -05:00
2017-09-05 16:16:01 +02:00
2017-12-15 10:20:51 -05:00
2017-04-12 16:46:22 -05:00
2017-04-28 09:56:20 -06:00
2017-12-12 11:07:01 -06:00
2017-11-06 18:56:33 -05:00
2016-09-09 17:09:54 -05:00
2017-12-12 11:07:01 -06:00
2017-08-01 15:44:30 -06:00
2017-08-01 15:44:30 -06:00
2017-12-12 11:07:01 -06:00
2017-12-22 15:38:56 -06:00
2017-10-18 13:40:24 -05:00
2016-11-10 14:23:46 -06:00
2017-11-07 12:00:24 -06:00
2017-10-23 11:23:04 -06:00
2017-04-12 16:46:22 -05:00
2017-12-20 12:54:13 -05:00
2017-08-22 12:22:56 +00:00
2017-09-10 13:17:27 +02:00
2017-08-10 12:13:18 -05:00
2017-11-16 17:29:06 -05:00
2017-06-16 12:08:27 -04:00
2017-12-22 15:38:56 -06:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-19 15:16:02 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-10 12:41:51 -06:00
2017-11-13 15:08:50 -05:00
2017-11-13 15:08:50 -05:00
2017-11-13 15:08:50 -05:00
2017-12-22 09:14:07 -05:00
2017-12-07 20:41:58 -05:00
2017-12-22 09:14:07 -05:00
2017-11-03 12:40:53 -05:00
2017-11-03 12:14:09 -05:00
2017-04-12 16:46:22 -05:00
2017-04-12 16:46:22 -05:00
2017-07-14 07:50:39 -05:00
2017-04-12 16:46:22 -05:00
2017-12-07 20:41:58 -05:00
2017-12-15 10:20:51 -05:00
2017-04-14 17:50:56 -04:00
2017-12-22 09:14:07 -05:00
2017-12-22 09:14:07 -05:00
2017-12-15 10:20:51 -05:00
2016-09-25 13:40:35 -05:00