kamailio key table annotations

[root@iZbp1dxv88hhg5wexqi7oyZ ~]# kamctl db exec "show tables;";
Warning: Using a password on the command line interface can be insecure.
+---------------------+
| Tables_in_kamailio |
+---------------------+
| acc |
| acc_cdrs |
| active_watchers |
| address |
| aliases |
| carrier_name |
| carrierfailureroute |
| carrierroute |
| cpl |
| dbaliases |
| dialog |
| dialog_vars |
| dialplan |
| dispatcher |
| domain |
| domain_attrs |
| domain_name |
| domainpolicy |
| dr_gateways |
| dr_groups |
| dr_gw_lists |
| dr_rules |
| globalblacklist |
| grp |
| htable |
| imc_members |
| imc_rooms |
| lcr_gw |
| lcr_rule |
| lcr_rule_target |
| location |
| location_attrs |
| missed_calls |
| mohqcalls |
| mohqueues |
| mtree |
| mtrees |
| pdt |
| pl_pipes |
| presentity |
| pua |
| purplemap |
| re_grp |
| rls_presentity |
| rls_watchers |
| rtpengine |
| rtpproxy |
| sca_subscriptions |
| secfilter |
| silo |
| sip_trace |
| speed_dial |
| subscriber |
| topos_d |
| topos_t |
| trusted |
| uacreg |
| uid_credentials |
| uid_domain |
| uid_domain_attrs |
| uid_global_attrs |
| uid_uri |
| uid_uri_attrs |
| uid_user_attrs |
| uri |
| userblacklist |
| usr_preferences |
| version |
| watchers |
| xcap |
+---------------------+
  1. acc: Store the information of Call Detail Records (CDRs), including call duration, call status, called number, etc. These records are useful for statistics and analysis of call data.

  2. acc_cdrs: Store additional information of call details (CDRs), such as SIP messages, media streams, etc. This information can be used for debugging and troubleshooting.

  3. active_watchers: Stores information about active subscribers and observers for real-time monitoring and notification. This table can track the status and activity of subscribers.

  4. address: store network address information, such as IP address, port number, etc. This table can be used to look up and manage information for different addresses.

  5. aliases: store the mapping relationship between aliases (domain names or users) and actual addresses. This table enables alias translation and routing.

  6. carrier_name: store carrier name information for matching when routing calls. This table can select the appropriate route based on the carrier name.

  7. carrierfailureroute: Stores information about carrier failure routes, used to reroute calls when a carrier fails. This table can define alternative routes to ensure call reliability.

  8. carrierroute: store carrier routing information, used to select the best carrier routing path. This table can select the appropriate route according to different conditions.

  9. cpl: Stores Call Processing Language (CPL) based call processing rules and logic. This table can define conditions and actions during call processing.

  10. daliases: Stores information about database aliases and connection parameters for database access. This table can manage connections and access rights to different databases.

  11. dialog: Store the information of SIP dialogue, including call ID, time stamp, etc. This table can track and manage the state of SIP conversations.

  12. dialog_vars: Stores the value of SIP dialog variables for maintaining and tracking dialog status. This table can store temporary variables and state during the conversation.

  13. dialplan: Stores the information of the dialplan (dialplan) for call processing, including regular expressions, destination addresses, etc. This table can define the rules and flow of call processing.

  14. dispatcher: store dispatcher information for load balancing and routing selection. This table can configure the priority and weight of different nodes.

  15. domain: stores domain information, which is used to distinguish different VoIP domains. This table can manage registration and routing for multiple domains.

  16. domain_attrs: store domain attributes (domain attributes), such as domain access control list (ACL), etc. This table defines and configures domain-specific properties.

  17. domain_name: Store domain name information for domain name resolution. This table can map domain names to corresponding IP addresses.

  18. domainpolicy: Stores domain policy information, which is used to set behavior rules for specific domains. This table can define domain security policies and access restrictions.

  19. dr_gateways: stores information about gateways in dynamic routing. This table can configure the parameters and properties of different gateways.

  20. dr_groups: Stores group information in dynamic routing for routing selection. This table can define routing groups and routing rules.

  21. dr_gw_lists: stores the information of the gateway list in dynamic routing. This table manages the availability and priority of gateways.

  22. dr_rules: Store routing rules and conditions in dynamic routing. This table can define routing rules and logic.

  23. globalblacklist: Stores information on the global blacklist for intercepting and blocking communications. This table can block specified numbers or IP addresses.

  24. grp: Store group information for group calls and transfers. This table can manage group membership and group policies.

  25. htable: store hash table (hash table) information for fast lookup and indexing. This table enables efficient data storage and retrieval.

  26. imc_members: Stores member information of an instant messaging session (IMC). This table can record the membership and status of the IMC session.

  27. imc_rooms: Stores room information for instant messaging sessions (IMC). This table manages rooms and access rights for IMC sessions.

  28. lcr_gw: Stores gateway information in Least Cost Routing (LCR). This table can configure the rates and costs of different gateways.

  29. lcr_rule: Stores the rule information in the least cost routing (LCR). This table can define rules for selecting the best gateway based on conditions.

  30. lcr_rule_target: stores the target information in the least cost routing (LCR). This table can define the destination address and priority.

  31. location: store user location information, such as registered IP address, port number, etc. This table keeps track of the user's location and availability.

  32. location_attrs: Stores information about user location attributes. This table can define additional attributes and parameters for user locations.

  33. missed_calls: Store the information of missed calls. This table can record the timestamp of missed calls, calling number, etc.

  34. mohqcalls: Stores the call information of Music-on-Hold (MoH). This table can record the call flow using MoH.

  35. mohqueues: Stores information for Music on Ringing (MoH) queues. This table can manage the settings and priorities of the different MoH queues.

  36. mtree: Store information of M-tree index for efficient data retrieval and search.

  37. mtrees: store M-tree configuration information, including index attributes and parameters.

  38. pdt: Stores call duration (PDT) information. This table can record the state and time of the PDT timer.

  39. pl_pipes: Stores information about pipes for interprocess communication. This table can realize data exchange between different processes.

  40. presentity: Stores the entity (presentity) information of the Presence service for status subscription and notification.

  41. pua: stores Presence User Agent (PUA) information for status publishing and subscription.

  42. purplemap: Stores the information of the Purple Map, which is used for call routing and policy.

  43. re_grp: store real-time group (re_group) information for real-time call routing and forwarding.

  44. rls_presentity: Stores the entity (presentity) information of the RLS service for status subscription and notification.

  45. rls_watchers: Stores watcher (watcher) information of the RLS service. This table tracks and manages subscribers to the RLS state.

  46. rtpengine: Stores information of the RTP engine for processing media streams and forwarding.

  47. rtpproxy: stores RTP proxy information for routing and forwarding of media streams.

  48. sca_subscriptions: Stores subscription information for Shared Call Appearance (SCA). This table can track the subscription and status of SCA functions.

  49. secfilter: Store security filter information for filtering and blocking malicious requests.

  50. silo: stores information of SILO isolation units, used to isolate different applications and services.

  51. sip_trace: Stores information for SIP message traces, useful for debugging and troubleshooting.

  52. speed_dial: store the information of speed dial (speed dial), which is used to quickly call a specific number.

  53. subscriber: Store user subscription (subscriber) information for SIP subscription and notification.

  54. topos_d: Stores information about topology data, used for call routing and analysis.

  55. topos_t: store topology tree information for fast lookup and retrieval of data.

  56. trusted: stores information about trusted resources and entities. This table can implement access control and security policies.

  57. uacreg: Stores information about User Agent Client Registration (UACReg). This table can record the status and information of UACReg.

  58. uid_credentials: Stores the authentication information of the User Identity. This table can manage the user's authentication credentials and permissions.

  59. uid_domain: Stores information about the User Identity domain. This table manages domain names and configurations for user identities.

  60. uid_domain_attrs: store user identity (User Identity) domain attribute information. This table defines and configures the properties of the User ID field.

  61. uid_global_attrs: Stores information about global user identity (User Identity) attributes. This table defines and configures global user ID properties.

  62. uid_uri: Stores information about the User Identity URI. This table can manage the URI and related attributes of the user ID.

  63. uid_uri_attrs: store user identity (User Identity) URI attribute information. This table defines and configures the properties of the user ID URI.

  64. uid_user_attrs: store user identity (User Identity) user attribute information. This table defines and configures user attributes for a user ID.

  65. uri: Stores Uniform Resource Identifier (URI) information for routing and resolution.

  66. userblacklist: Store user blacklist information, used to shield and block specific numbers or IP addresses.

  67. usr_preferences: store user preference information, such as language, time zone, etc. This table can save the user's personalized settings.

  68. version: store Kamailio version information. This table records the version number and update history of the Kamailio server.

  69. watchers: store information of watchers for monitoring and

Query the number of registered users:

[root@iZbp1dxv88hhg5wexqi7oyZ ~]# kamctl db exec "select COUNT(*) from subscriber;";

Query the number of online users:

[root@iZbp1dxv88hhg5wexqi7oyZ ~]# kamctl db exec "select COUNT(*) from location;";

Guess you like

Origin blog.csdn.net/huapeng_guo/article/details/131912622