Browse Source

p_usrloc: added missing usrloc API members

- they are set to NULL to get a clean crash, they have to be implemented
- the missing API members are the functions introduced in 3.3 for
  handling SIP GRUU and Outbound extensions
- a proper fix to follow
- reported by Dan Bogos
Daniel-Constantin Mierla 13 years ago
parent
commit
f030b2f274
1 changed files with 7 additions and 0 deletions
  1. 7 0
      modules_k/p_usrloc/usrloc.c

+ 7 - 0
modules_k/p_usrloc/usrloc.c

@@ -65,6 +65,8 @@ int bind_usrloc(usrloc_api_t* api)
 		return -1;
 	}
 
+	memset(api, 0, sizeof(usrloc_api_t));
+
 	api->register_udomain   = register_udomain;
 	api->get_all_ucontacts  = get_all_ucontacts;
 	api->insert_urecord     = insert_urecord;
@@ -79,6 +81,11 @@ int bind_usrloc(usrloc_api_t* api)
 	api->update_ucontact    = update_ucontact;
 	api->register_ulcb      = register_ulcb;
 
+	api->get_udomain              = 0;
+	api->get_urecord_by_ruid      = 0;
+	api->get_ucontact_by_instance = 0;
+	api->get_aorhash              = 0;
+
 	api->use_domain = use_domain;
 	api->db_mode    = db_mode;
 	api->nat_flag   = nat_bflag;