[sr-dev] git:master: p_usrloc: added missing usrloc API members
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jun 28 16:28:07 CEST 2012
Module: sip-router
Branch: master
Commit: f030b2f274b69526f256e66098de72a074000ed1
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f030b2f274b69526f256e66098de72a074000ed1
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Thu Jun 28 16:24:47 2012 +0200
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
---
modules_k/p_usrloc/usrloc.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules_k/p_usrloc/usrloc.c b/modules_k/p_usrloc/usrloc.c
index 3a1b4fc..b268052 100644
--- a/modules_k/p_usrloc/usrloc.c
+++ b/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;
More information about the sr-dev
mailing list