asterisk/res/res_pjsip
George Joseph 75666ad7c6 res_pjsip: Validate that contact uris start with sip: or sips:
Currently we use pjsip_parse_hdr to validate contact uris but it
appears that it allows uris without a scheme if there's a port
supplied.  I.E myexample.com will fail but myexample.com:5060 will
pass even though it has no scheme.  This causes SEGVs later on
whenever the uri is used.

To prevent this, permanent_contact_validate has been updated to check
that the scheme is either 'sip' or 'sips'.

2 uses of possibly-null endpoint have also been fixed in
create_out_of_dialog_request.

ASTERISK-24999

Change-Id: Ifc17d16a4923e1045d37fe51e43bbe29fa556ca2
Reported-by: Brad Latus
2015-04-23 11:54:59 -05:00
..
include res_pjsip: Add external PJSIP resolver implementation using core DNS API. 2015-04-15 10:47:53 -03:00
config_auth.c res_pjsip: make it unloadable (take 2) 2015-01-27 19:12:56 +00:00
config_domain_aliases.c res_pjsip: Move internal init/destroy prototypes to private header file. 2015-03-11 16:39:29 +00:00
config_global.c res_pjsip: Add global option to limit the maximum time for initial qualifies 2015-04-16 16:44:45 -05:00
config_system.c res_pjsip: add CLI command to show global and system configuration 2015-04-09 22:07:50 +00:00
config_transport.c clang compiler warnings: Fix -Winitializer-overrides 2015-03-28 12:32:42 +00:00
location.c res_pjsip: Validate that contact uris start with sip: or sips: 2015-04-23 11:54:59 -05:00
pjsip_cli.c res_pjsip: Add "pjsip show version" CLI command. 2015-02-15 16:01:09 +00:00
pjsip_configuration.c pjsip_options: Fix non-qualified contacts showing as unavailable 2015-04-19 20:07:45 -05:00
pjsip_distributor.c res_pjsip: make it unloadable (take 2) 2015-01-27 19:12:56 +00:00
pjsip_global_headers.c res_pjsip: Fixed invalid empty Server and User-Agent SIP headers. 2015-03-11 15:22:01 +00:00
pjsip_options.c Merge "pjsip_options: Fix non-qualified contacts showing as unavailable" 2015-04-20 17:24:04 -05:00
pjsip_outbound_auth.c res_pjsip: make it unloadable (take 2) 2015-01-27 19:12:56 +00:00
pjsip_resolver.c res_pjsip: Add external PJSIP resolver implementation using core DNS API. 2015-04-15 10:47:53 -03:00
presence_xml.c res_pjsip_dialog_info_body_generator: Add dialog-info+xml support for presence. 2014-07-07 16:08:47 +00:00
security_events.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00