|
@@ -102,22 +102,23 @@ Bogdan-Andrei Iancu
|
|
|
1.1. ul_register_domain(name)
|
|
|
1.2. ul_insert_urecord(domain, aor, rec)
|
|
|
1.3. ul_delete_urecord(domain, aor)
|
|
|
- 1.4. ul_get_urecord(domain, aor)
|
|
|
- 1.5. ul_lock_udomain(domain)
|
|
|
- 1.6. ul_unlock_udomain(domain)
|
|
|
- 1.7. ul_release_urecord(record)
|
|
|
- 1.8. ul_insert_ucontact(record, contact, expires, q, callid,
|
|
|
+ 1.4. ul_delete_urecord_by_ruid(domain, ruid)
|
|
|
+ 1.5. ul_get_urecord(domain, aor)
|
|
|
+ 1.6. ul_lock_udomain(domain)
|
|
|
+ 1.7. ul_unlock_udomain(domain)
|
|
|
+ 1.8. ul_release_urecord(record)
|
|
|
+ 1.9. ul_insert_ucontact(record, contact, expires, q, callid,
|
|
|
cseq, flags, cont, ua, sock)
|
|
|
|
|
|
- 1.9. ul_delete_ucontact (record, contact)
|
|
|
- 1.10. ul_get_ucontact(record, contact)
|
|
|
- 1.11. ul_get_all_ucontacts (buf, len, flags)
|
|
|
- 1.12. ul_update_ucontact(contact, expires, q, callid, cseq,
|
|
|
+ 1.10. ul_delete_ucontact (record, contact)
|
|
|
+ 1.11. ul_get_ucontact(record, contact)
|
|
|
+ 1.12. ul_get_all_ucontacts (buf, len, flags)
|
|
|
+ 1.13. ul_update_ucontact(contact, expires, q, callid, cseq,
|
|
|
set, res, ua, sock)
|
|
|
|
|
|
- 1.13. ul_bind_ursloc( api )
|
|
|
- 1.14. ul_register_ulcb(type ,callback, param)
|
|
|
- 1.15. ul_get_num_users()
|
|
|
+ 1.14. ul_bind_ursloc( api )
|
|
|
+ 1.15. ul_register_ulcb(type ,callback, param)
|
|
|
+ 1.16. ul_get_num_users()
|
|
|
|
|
|
List of Examples
|
|
|
|
|
@@ -931,44 +932,46 @@ Chapter 2. Developer Guide
|
|
|
1.1. ul_register_domain(name)
|
|
|
1.2. ul_insert_urecord(domain, aor, rec)
|
|
|
1.3. ul_delete_urecord(domain, aor)
|
|
|
- 1.4. ul_get_urecord(domain, aor)
|
|
|
- 1.5. ul_lock_udomain(domain)
|
|
|
- 1.6. ul_unlock_udomain(domain)
|
|
|
- 1.7. ul_release_urecord(record)
|
|
|
- 1.8. ul_insert_ucontact(record, contact, expires, q, callid, cseq,
|
|
|
+ 1.4. ul_delete_urecord_by_ruid(domain, ruid)
|
|
|
+ 1.5. ul_get_urecord(domain, aor)
|
|
|
+ 1.6. ul_lock_udomain(domain)
|
|
|
+ 1.7. ul_unlock_udomain(domain)
|
|
|
+ 1.8. ul_release_urecord(record)
|
|
|
+ 1.9. ul_insert_ucontact(record, contact, expires, q, callid, cseq,
|
|
|
flags, cont, ua, sock)
|
|
|
|
|
|
- 1.9. ul_delete_ucontact (record, contact)
|
|
|
- 1.10. ul_get_ucontact(record, contact)
|
|
|
- 1.11. ul_get_all_ucontacts (buf, len, flags)
|
|
|
- 1.12. ul_update_ucontact(contact, expires, q, callid, cseq, set,
|
|
|
+ 1.10. ul_delete_ucontact (record, contact)
|
|
|
+ 1.11. ul_get_ucontact(record, contact)
|
|
|
+ 1.12. ul_get_all_ucontacts (buf, len, flags)
|
|
|
+ 1.13. ul_update_ucontact(contact, expires, q, callid, cseq, set,
|
|
|
res, ua, sock)
|
|
|
|
|
|
- 1.13. ul_bind_ursloc( api )
|
|
|
- 1.14. ul_register_ulcb(type ,callback, param)
|
|
|
- 1.15. ul_get_num_users()
|
|
|
+ 1.14. ul_bind_ursloc( api )
|
|
|
+ 1.15. ul_register_ulcb(type ,callback, param)
|
|
|
+ 1.16. ul_get_num_users()
|
|
|
|
|
|
1. Available Functions
|
|
|
|
|
|
1.1. ul_register_domain(name)
|
|
|
1.2. ul_insert_urecord(domain, aor, rec)
|
|
|
1.3. ul_delete_urecord(domain, aor)
|
|
|
- 1.4. ul_get_urecord(domain, aor)
|
|
|
- 1.5. ul_lock_udomain(domain)
|
|
|
- 1.6. ul_unlock_udomain(domain)
|
|
|
- 1.7. ul_release_urecord(record)
|
|
|
- 1.8. ul_insert_ucontact(record, contact, expires, q, callid, cseq,
|
|
|
+ 1.4. ul_delete_urecord_by_ruid(domain, ruid)
|
|
|
+ 1.5. ul_get_urecord(domain, aor)
|
|
|
+ 1.6. ul_lock_udomain(domain)
|
|
|
+ 1.7. ul_unlock_udomain(domain)
|
|
|
+ 1.8. ul_release_urecord(record)
|
|
|
+ 1.9. ul_insert_ucontact(record, contact, expires, q, callid, cseq,
|
|
|
flags, cont, ua, sock)
|
|
|
|
|
|
- 1.9. ul_delete_ucontact (record, contact)
|
|
|
- 1.10. ul_get_ucontact(record, contact)
|
|
|
- 1.11. ul_get_all_ucontacts (buf, len, flags)
|
|
|
- 1.12. ul_update_ucontact(contact, expires, q, callid, cseq, set, res,
|
|
|
+ 1.10. ul_delete_ucontact (record, contact)
|
|
|
+ 1.11. ul_get_ucontact(record, contact)
|
|
|
+ 1.12. ul_get_all_ucontacts (buf, len, flags)
|
|
|
+ 1.13. ul_update_ucontact(contact, expires, q, callid, cseq, set, res,
|
|
|
ua, sock)
|
|
|
|
|
|
- 1.13. ul_bind_ursloc( api )
|
|
|
- 1.14. ul_register_ulcb(type ,callback, param)
|
|
|
- 1.15. ul_get_num_users()
|
|
|
+ 1.14. ul_bind_ursloc( api )
|
|
|
+ 1.15. ul_register_ulcb(type ,callback, param)
|
|
|
+ 1.16. ul_get_num_users()
|
|
|
|
|
|
1.1. ul_register_domain(name)
|
|
|
|
|
@@ -1012,7 +1015,17 @@ Chapter 2. Developer Guide
|
|
|
* str* aor - Address of record (aka username) of the record, that
|
|
|
should be deleted.
|
|
|
|
|
|
-1.4. ul_get_urecord(domain, aor)
|
|
|
+1.4. ul_delete_urecord_by_ruid(domain, ruid)
|
|
|
+
|
|
|
+ The function deletes from given domain a contact with given ruid.
|
|
|
+
|
|
|
+ Meaning of the parameters is as follows:
|
|
|
+ * udomain_t* domain - Pointer to domain returned by
|
|
|
+ ul_register_udomain.
|
|
|
+
|
|
|
+ * str* ruid - ruid of contact that should be deleted.
|
|
|
+
|
|
|
+1.5. ul_get_urecord(domain, aor)
|
|
|
|
|
|
The function returns pointer to record with given Address of Record.
|
|
|
|
|
@@ -1022,7 +1035,7 @@ Chapter 2. Developer Guide
|
|
|
|
|
|
* str* aor - Address of Record of request record.
|
|
|
|
|
|
-1.5. ul_lock_udomain(domain)
|
|
|
+1.6. ul_lock_udomain(domain)
|
|
|
|
|
|
The function lock the specified domain, it means, that no other
|
|
|
processes will be able to access during the time. This prevents race
|
|
@@ -1033,14 +1046,14 @@ Chapter 2. Developer Guide
|
|
|
Meaning of the parameters is as follows:
|
|
|
* udomain_t* domain - Domain to be locked.
|
|
|
|
|
|
-1.6. ul_unlock_udomain(domain)
|
|
|
+1.7. ul_unlock_udomain(domain)
|
|
|
|
|
|
Unlock the specified domain previously locked by ul_lock_udomain.
|
|
|
|
|
|
Meaning of the parameters is as follows:
|
|
|
* udomain_t* domain - Domain to be unlocked.
|
|
|
|
|
|
-1.7. ul_release_urecord(record)
|
|
|
+1.8. ul_release_urecord(record)
|
|
|
|
|
|
Do some sanity checks - if all contacts have been removed, delete the
|
|
|
entire record structure.
|
|
@@ -1048,7 +1061,7 @@ Chapter 2. Developer Guide
|
|
|
Meaning of the parameters is as follows:
|
|
|
* urecord_t* record - Record to be released.
|
|
|
|
|
|
-1.8. ul_insert_ucontact(record, contact, expires, q, callid, cseq, flags,
|
|
|
+1.9. ul_insert_ucontact(record, contact, expires, q, callid, cseq, flags,
|
|
|
cont, ua, sock)
|
|
|
|
|
|
The function inserts a new contact in the given record with specified
|
|
@@ -1069,7 +1082,7 @@ cont, ua, sock)
|
|
|
* struct socket_info *sock - socket on which the REGISTER message was
|
|
|
received on.
|
|
|
|
|
|
-1.9. ul_delete_ucontact (record, contact)
|
|
|
+1.10. ul_delete_ucontact (record, contact)
|
|
|
|
|
|
The function deletes given contact from record.
|
|
|
|
|
@@ -1079,7 +1092,7 @@ cont, ua, sock)
|
|
|
|
|
|
* ucontact_t* contact - Contact to be deleted.
|
|
|
|
|
|
-1.10. ul_get_ucontact(record, contact)
|
|
|
+1.11. ul_get_ucontact(record, contact)
|
|
|
|
|
|
The function tries to find contact with given Contact URI and returns
|
|
|
pointer to structure representing the contact.
|
|
@@ -1089,7 +1102,7 @@ cont, ua, sock)
|
|
|
|
|
|
* str_t* contact - URI of the request contact.
|
|
|
|
|
|
-1.11. ul_get_all_ucontacts (buf, len, flags)
|
|
|
+1.12. ul_get_all_ucontacts (buf, len, flags)
|
|
|
|
|
|
The function retrieves all contacts of all registered users and returns
|
|
|
them in the caller-supplied buffer. If the buffer is too small, the
|
|
@@ -1110,7 +1123,7 @@ cont, ua, sock)
|
|
|
|
|
|
* unsigned int flags - Flags that must be set.
|
|
|
|
|
|
-1.12. ul_update_ucontact(contact, expires, q, callid, cseq, set, res, ua,
|
|
|
+1.13. ul_update_ucontact(contact, expires, q, callid, cseq, set, res, ua,
|
|
|
sock)
|
|
|
|
|
|
The function updates contact with new values.
|
|
@@ -1129,7 +1142,7 @@ sock)
|
|
|
* struct socket_info *sock - socket on which the REGISTER message was
|
|
|
received on.
|
|
|
|
|
|
-1.13. ul_bind_ursloc( api )
|
|
|
+1.14. ul_bind_ursloc( api )
|
|
|
|
|
|
The function imports all functions that are exported by the USRLOC
|
|
|
module. Overs for other modules which want to user the internal USRLOC
|
|
@@ -1138,7 +1151,7 @@ sock)
|
|
|
Meaning of the parameters is as follows:
|
|
|
* usrloc_api_t* api - USRLOC API
|
|
|
|
|
|
-1.14. ul_register_ulcb(type ,callback, param)
|
|
|
+1.15. ul_register_ulcb(type ,callback, param)
|
|
|
|
|
|
The function register with USRLOC a callback function to be called when
|
|
|
some event occures inside USRLOC.
|
|
@@ -1151,6 +1164,6 @@ sock)
|
|
|
* void *param - some parameter to be passed to the callback each time
|
|
|
when it is called.
|
|
|
|
|
|
-1.15. ul_get_num_users()
|
|
|
+1.16. ul_get_num_users()
|
|
|
|
|
|
The function loops through all domains summing up the number of users.
|