- don't die on INVITE requests that include no Contac

header - which is legal. (patch by Robert Hoegberg)
This commit is contained in:
Thomas Ries 2004-01-28 22:12:28 +00:00
parent 230c3d3ffb
commit f521d4b78a
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,7 @@
0.5.2
=====
28-Jan-2004: - don't die on INVITE requests that include no Contact
header - which is legal. (patch by Robert Högberg)
27-Jan-2004: - added doc/KNOWN_BUGS
- better branch parameter calculation (via header),
now honors RFC3261 for stateless proxies (section 16.11)

View File

@ -171,10 +171,12 @@ int proxy_request (osip_message_t *request) {
* logging of passing calls
*/
if (configuration.log_calls) {
osip_uri_t *cont_url;
cont_url=((osip_contact_t*)(request->contacts->node->element))->url;
osip_uri_t *cont_url = NULL;
if (!osip_list_eol(request->contacts, 0))
cont_url = ((osip_contact_t*)(request->contacts->node->element))->url;
/* INVITE */
if(MSG_IS_INVITE(request)) {
if (MSG_IS_INVITE(request)) {
if (cont_url) {
INFO("%s Call from: %s:%s",
(type==REQTYP_INCOMING) ? "Incoming":"Outgoing",