Anca-Maria Vamanu
- Copyright (c) 2006 Voice Sistem SRL
+ Copyright © 2006 Voice Sistem SRL
__________________________________________________________________
Table of Contents
3.8. dlginfo_increase_version (int)
3.9. reginfo_increase_version (int)
3.10. db_mode (int)
- 3.11. check_remote_contact (int)
- 3.12. fetch_rows (integer)
+ 3.11. db_table_lock_write (integer)
+ 3.12. check_remote_contact (int)
+ 3.13. fetch_rows (integer)
4. Functions
1.8. Set dlginfo_increase_version parameter
1.9. Set reginfo_increase_version parameter
1.10. Set db_mode parameter
- 1.11. Set check_remote_contact parameter
- 1.12. Set fetch_rows parameter
- 1.13. pua_update_contact usage
+ 1.11. Set db_table_lock_write parameter
+ 1.12. Set check_remote_contact parameter
+ 1.13. Set fetch_rows parameter
+ 1.14. pua_update_contact usage
2.1. pua_api structure
2.2. pua_is_dialog usage example
2.3. register_puacb usage example
3.8. dlginfo_increase_version (int)
3.9. reginfo_increase_version (int)
3.10. db_mode (int)
- 3.11. check_remote_contact (int)
- 3.12. fetch_rows (integer)
+ 3.11. db_table_lock_write (integer)
+ 3.12. check_remote_contact (int)
+ 3.13. fetch_rows (integer)
4. Functions
3.8. dlginfo_increase_version (int)
3.9. reginfo_increase_version (int)
3.10. db_mode (int)
- 3.11. check_remote_contact (int)
- 3.12. fetch_rows (integer)
+ 3.11. db_table_lock_write (integer)
+ 3.12. check_remote_contact (int)
+ 3.13. fetch_rows (integer)
3.1. hash_size (int)
modparam("pua", "db_mode", 0)
...
-3.11. check_remote_contact (int)
+3.11. db_table_lock_write (integer)
+
+ Enable (=1) or disable (=0) the Locks for table during an transaction.
+ Locking only the "current" table causes problems with a MySQL-Databases
+ in "DB-Only" mode.
+
+ Default value is 1 (Write Lock for the Tables).
+
+ Example 1.11. Set db_table_lock_write parameter
+...
+modparam("pua", "db_table_lock_write", 0)
+...
+
+3.12. check_remote_contact (int)
When sending a SUBSCRIBE check that the remote contact matches the one
in the stored dialog or not. If the remote contact is checked and does
Default value is "1".
- Example 1.11. Set check_remote_contact parameter
+ Example 1.12. Set check_remote_contact parameter
...
modparam("pua", "check_remote_contact", 0)
...
-3.12. fetch_rows (integer)
+3.13. fetch_rows (integer)
Number of rows to be loaded in one step from database.
Default value is 500.
- Example 1.12. Set fetch_rows parameter
+ Example 1.13. Set fetch_rows parameter
...
modparam("pua", "fetch_rows", 1000)
...
4.1. pua_update_contact()
-4.1. pua_update_contact()
+4.1. pua_update_contact()
The remote target can be updated by the Contact of a subsequent in
dialog request. In the PUA watcher case (sending a SUBSCRIBE messages),
* 1 - if success.
* -1 - if error.
- Example 1.13. pua_update_contact usage
+ Example 1.14. pua_update_contact usage
...
if(method=="NOTIFY")
pua_update_contact();
5.1. pua_cleanup
-5.1. pua_cleanup
+5.1. pua_cleanup
Manually triggers the cleanup functions for the pua table. Useful if
you have set update_period to zero or less.
The module provides the following functions that can be used by other
Kamailio modules.
-1. bind_pua(pua_api_t* api)
+1. bind_pua(pua_api_t* api)
This function binds the pua modules and fills the structure with the
two exported functions.
} pua_api_t;
...
-2. send_publish
+2. send_publish
Field type:
...
}publ_info_t;
...
-3. send_subscribe
+3. send_subscribe
Field type:
...
}subs_info_t;
...
-4. is_dialog
+4. is_dialog
Field type:
...
}
...
-5. register_puacb
+5. register_puacb
Field type:
...
typedef int (pua_cb)(ua_pres_t* hentity, struct sip_msg*);
...
-6. add_event
+6. add_event
Field type:
...