Pages for other versions: devel 3.6 3.5 3.4 Older versions: 3.3 3.2 3.1 3.0 2.4 2.3 2.2 2.1 1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4
| DB Schema v1.4 |
| Prev | Next |
OpenSIPS database tables OpenSIPS database tables
OpenSIPS Development Team
Edited by
Henning Westerholt
Norman Brandinger
Copyright © 2007 OpenSIPS development Team
- Table of Contents
- 1. Accounting
- 2. alias db
- 3. Subscriber
- 4. AVP Operations
- 5. carrierroute
- 6. Call-processing language
- 7. Dialog support
- 8. Matching and translation rules
- 9. Dispatcher
- 10. Domain
- 11. Domainpolicy
- 12. Extensions
- 13. Group checking
- 14. Instant Message Conference
- 15. Least-cost Routing
- 16. Message Storage
- 17. Prefix-Domain Translation
- 18. Permissions
- 19. Presence
- 20. Registrar
- 21. RLS
- 22. SIPtrace
- 23. Speed dial
- 24. Version
- 25. SIP URI checks
- 26. User and global blacklists
- 27. User location
- List of Tables
- 1-1. Table "acc"
- 1-2. Table "acc" indexes
- 1-3. Table "missed_calls"
- 1-4. Table "missed_calls" indexes
- 2-1. Table "dbaliases"
- 2-2. Table "dbaliases" indexes
- 3-1. Table "subscriber"
- 3-2. Table "subscriber" indexes
- 4-1. Table "usr_preferences"
- 4-2. Table "usr_preferences" indexes
- 5-1. Table "carrierroute"
- 5-2. Table "carrierfailureroute"
- 5-3. Table "route_tree"
- 6-1. Table "cpl"
- 6-2. Table "cpl" indexes
- 7-1. Table "dialog"
- 7-2. Table "dialog" indexes
- 8-1. Table "dialplan"
- 9-1. Table "dispatcher"
- 10-1. Table "domain"
- 10-2. Table "domain" indexes
- 11-1. Table "domainpolicy"
- 11-2. Table "domainpolicy" indexes
- 13-1. Table "grp"
- 13-2. Table "grp" indexes
- 13-3. Table "re_grp"
- 13-4. Table "re_grp" indexes
- 14-1. Table "imc_rooms"
- 14-2. Table "imc_rooms" indexes
- 14-3. Table "imc_members"
- 14-4. Table "imc_members" indexes
- 15-1. Table "gw"
- 15-2. Table "gw" indexes
- 15-3. Table "lcr"
- 15-4. Table "lcr" indexes
- 16-1. Table "silo"
- 16-2. Table "silo" indexes
- 17-1. Table "pdt"
- 17-2. Table "pdt" indexes
- 18-1. Table "trusted"
- 18-2. Table "trusted" indexes
- 18-3. Table "address"
- 19-1. Table "presentity"
- 19-2. Table "presentity" indexes
- 19-3. Table "active_watchers"
- 19-4. Table "active_watchers" indexes
- 19-5. Table "watchers"
- 19-6. Table "watchers" indexes
- 19-7. Table "xcap"
- 19-8. Table "xcap" indexes
- 19-9. Table "pua"
- 20-1. Table "aliases"
- 20-2. Table "aliases" indexes
- 21-1. Table "rls_presentity"
- 21-2. Table "rls_presentity" indexes
- 21-3. Table "rls_watchers"
- 21-4. Table "rls_watchers" indexes
- 22-1. Table "sip_trace"
- 22-2. Table "sip_trace" indexes
- 23-1. Table "speed_dial"
- 23-2. Table "speed_dial" indexes
- 24-1. Table "version"
- 25-1. Table "uri"
- 25-2. Table "uri" indexes
- 26-1. Table "userblacklist"
- 26-2. Table "userblacklist" indexes
- 26-3. Table "globalblacklist"
- 26-4. Table "globalblacklist" indexes
- 27-1. Table "location"
- 27-2. Table "location" indexes
Chapter 1. Accounting
- acc
This table is used by the ACC module to report on transactions - accounted calls. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/acc.html
- missed_calls
This table is used by the ACC module for keeping track of missed calls. This table is similar to the 'acc' table. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/acc.html
Table 1-1. Table "acc"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
methodstring16'' no A method is the primary function that a request is meant to invoke on a server.
from_tagstring64'' no The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.
to_tagstring64'' no The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.
callidstring64'' no Call-ID header field uniquely identifies a particular invitation or all registrations of a particular client.
sip_codestring3'' no SIP reply code
sip_reasonstring32'' no SIP reply reason
timedatetimenot specifieddefault no Date and time when this record was written.
Table 1-3. Table "missed_calls"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
methodstring16'' no A method is the primary function that a request is meant to invoke on a server.
from_tagstring64'' no The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.
to_tagstring64'' no The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.
callidstring64'' no Call-ID header field uniquely identifies a particular invitation or all registrations of a particular client.
sip_codestring3'' no SIP reply code
sip_reasonstring32'' no SIP reply reason
timedatetimenot specifieddefault no Date and time when this record was written.
Chapter 2. alias db
- dbaliases
This table us used by the alias_db module as an alternative for user aliases via userloc. More information about the alias_db module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/alias_db.html
Table 2-1. Table "dbaliases"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
alias_usernamestring64'' no Alias username / phone number
alias_domainstring64'' no Alias domain name
usernamestring64'' no Username / phone number
domainstring64'' no Domain name
Chapter 3. Subscriber
- subscriber
This table is used to provide authentication information. More information about the auth_db module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/auth_db.html
Table 3-1. Table "subscriber"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
usernamestring64'' no Username / phone number
domainstring64'' no Domain name
passwordstring25'' no Password
email_addressstring64'' no Email address
ha1string64'' no md5(username:realm:password)
ha1bstring64'' no md5(username@domain:realm:password)
rpidstring64NULL yes The SIP Remote-Party-ID header identifies the calling party and includes user, party, screen and privacy headers that specify how a call is presented and screened.
Chapter 4. AVP Operations
- usr_preferences
This table us used by the avpops module to implement Attribute Value Pairs (AVP's). More information about the avpops module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/avpops.html
Table 4-1. Table "usr_preferences"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
uuidstring64'' no Unique user ID
usernamestring1280 no Username / phone number
domainstring64'' no Domain name
attributestring32'' no AVP attribute
typeint110 no AVP type
valuestring128'' no AVP value
last_modifieddatetimenot specified'1900-01-01 00:00:01' no Date and time when this record was last modified.
Chapter 5. carrierroute
- carrierroute
This table is used by the carrierroute module to provides routing, balancing and blacklisting capabilities. More information is available at: http://www.opensips.org/docs/modules/devel/carrierroute.html
- carrierfailureroute
This table is used by the carrierroute module to provide failure routing capabilities. More information is available at: http://www.opensips.org/docs/modules/devel/carrierroute.html
- route_tree
This table is used by the carrierroute module to provides routing, balancing and blacklisting capabilities. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/carrierroute.html
Table 5-1. Table "carrierroute"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
carrierunsigned int100 no This column contains the carrier id.
domainstring64'' no This column contains the route domain. Additional domains could be used for example as fallback.
scan_prefixstring64'' no This column contains the scan prefix, which define the matching portion of a phone number.
flagsunsigned int110 no This column contains the flags used for rule matching.
maskunsigned int110 no This column contains the mask that is applied to the message flags before rule matching.
probfloatnot specified0 no Name of column containing the probability. The probability value is used to distribute the traffic between several gateways.
stripunsigned int110 no Name of the column containing the number of digits to be stripped of the userpart of an URI before prepending rewrite_prefix.
rewrite_hoststring128'' no Name of column containing rewrite prefixes. Here you can define a rewrite prefix for the localpart of the SIP URI.
rewrite_prefixstring64'' no Rewrite prefix for the localpart of the SIP URI.
rewrite_suffixstring64'' no Rewrite suffix for the localpart of the SIP URI.
descriptionstring255NULL yes A comment for the route entry, useful for larger routing tables.
Table 5-2. Table "carrierfailureroute"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
carrierunsigned int100 no This column contains the carrier id.
domainstring64'' no This column contains the route domain. Additional domains could be used for example as fallback.
scan_prefixstring64'' no This column contains the scan prefix, which define the matching portion of a phone number.
host_namestring128'' no This column contains the routing destination used for rule matching.
reply_codestring3'' no This column contains the reply code used for rule matching.
flagsunsigned int110 no This column contains the flags used for rule matching.
maskunsigned int110 no This column contains the mask that is applied to the message flags before rule matching.
next_domainstring64'' no This column contains the route domain that should be used for the next routing attempt.
descriptionstring255NULL yes A comment for the route entry, useful for larger routing tables.
Chapter 6. Call-processing language
- cpl
Table for the call processing language "cpl" module. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/cpl-c.html
Chapter 7. Dialog support
- dialog
Persistent dialog information for the dialog module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/dialog.html
Table 7-1. Table "dialog"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
hash_entryunsigned int10default no Number of the hash entry in the dialog hash table
hash_idunsigned int10default no The ID on the hash entry
callidstring255default no Call-ID of the dialog
from_uristring128default no The URI of the FROM header (as per INVITE)
from_tagstring64default no The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.
to_uristring128default no The URI of the TO header (as per INVITE)
to_tagstring64default no The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.
caller_cseqstring7default no Last Cseq number on the caller side.
callee_cseqstring7default no Last Cseq number on the caller side.
caller_route_setstring512default yes Route set on the caller side.
callee_route_setstring512default yes Route set on on the caller side.
caller_contactstring128default no Caller's contact uri.
callee_contactstring128default no Callee's contact uri.
caller_sockstring64default no Local socket used to communicate with caller
callee_sockstring64default no Local socket used to communicate with callee
stateunsigned int10default no The state of the dialog.
start_timeunsigned int10default no The timestamp (unix time) when the dialog was confirmed.
timeoutunsigned int10default no The timestamp (unix time) when the dialog will expire.
Chapter 8. Matching and translation rules
- dialplan
This table is used by the dialplan module for the translation rules. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/dialplan.html
Table 8-1. Table "dialplan"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
dpidint11default no Dialplan ID.
print11default no Priority of rule.
match_opint11default no Matching operator for rule (0-equal, 1-regexp).
match_expstring64default no Matching expresion (regexp or string).
match_lenint11default no Length of the matching expresion (used only for equal operator).
subst_expstring64default no Substitution expresion.
repl_expstring32default no Replacement expresion (sed like).
attrsstring32default no General attributes string to be returned in case of rule matching.
Chapter 9. Dispatcher
- dispatcher
This table is used by the dispatcher module. It contains the sets of destinations used for load balancing and dispatching. More information about the dispatcher module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/dispatcher.html
Table 9-1. Table "dispatcher"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
setidintnot specified0 no Destination set id
destinationstring192'' no Destination SIP address
flagsintnot specified0 no Flags of destination SIP address
descriptionstring64'' no Description for this destination
Chapter 10. Domain
- domain
This table is used by the domain module to determine if a host part of a URI is "local" or not. More information about the domain module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/domain.html
Chapter 11. Domainpolicy
- domainpolicy
Table for the domainpolicy module. More information at http://www.opensips.org/html/docs/modules/1.4.x/domainpolicy.html.
Table 11-1. Table "domainpolicy"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
rulestring255default no Domain policy rule name which is equal to the URI as published in the domain policy NAPTRs.
typestring255default no Domain policy rule type. In the case of federation names, this is "fed". For standard referrals according to draft-lendl-speermint-technical-policy-00, this is "std". For direct domain lookups, this is "dom". Default value is "type".
attstring255default yes It contains the AVP's name. If the rule stored in this row triggers, than dp_can_connect() will add an AVP with that name.
valstring128default yes It contains the values for AVPs created by dp_can_connect(). Default value is "val"
descriptionstring255default no Comment about the rule
Chapter 13. Group checking
- grp
This table us used by the group module as a means of group membership checking. Used primarily for Access Control Lists (ACL's). More information about the group module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/group.html
- re_grp
This table is used by the group module to check membership based on regular expressions. More information about the group module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/group.html
Table 13-1. Table "grp"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
usernamestring64'' no Username / phone number
domainstring64'' no Domain name
grpstring64'' no Group name
last_modifieddatetimenot specified'1900-01-01 00:00:01' no Date and time when this record was last modified.
Table 13-2. Table "grp" indexes
name type links description account_group_idxunique username, domain, grp
Chapter 14. Instant Message Conference
- imc_rooms
Room table for the IMC module. More information at http://www.opensips.org/html/docs/modules/1.4.x/imc.html.
- imc_members
Member table for the IMC module. More information at http://www.opensips.org/html/docs/modules/1.4.x/imc.html.
Table 14-1. Table "imc_rooms"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
namestring64default no Name of the room
domainstring64default no Domain of the room
flagint11default no Flags
Chapter 15. Least-cost Routing
- gw
This table contains Least Cost Routing Gateway definitions for the LCR module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/lcr.html.
- lcr
This table is used by the lcr (Least Cost Routing) rules. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/lcr.html.
Table 15-1. Table "gw"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement
gw_namestring128default no Gateway Name
grp_idunsigned intnot specifieddefault no Gateway ID
ip_addrstring15default no IP Address of the gateway
portunsigned shortnot specifieddefault yes Port of the gateway
uri_schemeunsigned charnot specifieddefault yes URI scheme of the gateway
transportunsigned charnot specifieddefault yes Transport type to be used for the gateway
stripunsigned charnot specifieddefault yes The number of digits to strip from Request URI user part before inserting tag
tagstring16NULL yes Request URI user part tag
flagsunsigned intnot specified0 no Gateway specific flags
Table 15-2. Table "gw" indexes
name type links description gw_name_idxunique gw_name
grp_id_idxdefault grp_id
Table 15-3. Table "lcr"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement
prefixstring16NULL yes Prefix of Request URI user part
from_uristring64NULL yes Pattern that is matched to caller's URI
grp_idunsigned intnot specifieddefault no Group ID
priorityunsigned intnot specifieddefault no Priority
Chapter 16. Message Storage
- silo
This table us used by the msilo module to provide offline message storage More information about the msilo module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/msilo.html
Table 16-1. Table "silo"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
src_addrstring128'' no Source address - From URI
dst_addrstring128'' no Destination address - To URI
usernamestring64'' no SIP domain of target user
domainstring64'' no Username / phone number of target user
inc_timeintnot specified0 no Incoming time
exp_timeintnot specified0 no Expiration time
snd_timeintnot specified0 no Reminder send time
ctypestring32'text/plain' no Content type
bodybinarynot specified'' no Body of the message
Chapter 17. Prefix-Domain Translation
- pdt
Prefix-Domain Translation means to change the host and port in R-URI, based on the prefix found in R-URI and source domain (that is domain in From-URI). More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/pdt.html
Table 17-1. Table "pdt"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
sdomainstring128default no Source domain
prefixstring32default no Prefix found in the username part of R-URI.
domainstring128'' no Domain corresponding to (sdomain, prefix) pair where the message must be sent.
Chapter 18. Permissions
- trusted
This table is used by the permissions module to determine if a call has the appropriate permission to be established. More information about the permissions module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/permissions.html
- address
This table is used by the permissions module. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/permissions.html
Table 18-1. Table "trusted"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
src_ipstring50default no Source address is equal to source address of request
protostring4default no Transport protocol is either "any" or equal to transport protocol of request. Possible values that can be stored are "any", "udp", "tcp", "tls", and "sctp".
from_patternstring64NULL yes Regular expression matches From URI of request.
tagstring32default yes Tag
Chapter 19. Presence
- presentity
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/presence.html
- active_watchers
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/presence.html
- watchers
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/presence.html
- xcap
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/presence.html
- pua
Table for the presence related pua module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/pua.html
Table 19-1. Table "presentity"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
usernamestring64default no User name
domainstring64default no Domain
eventstring64default no Event
etagstring64default no User name
expiresint11default no Expires
received_timeint11default no Reveived time
bodybinarynot specifieddefault no
senderstring128default no Sender contact
Table 19-2. Table "presentity" indexes
name type links description presentity_idxunique username, domain, event, etag
Table 19-3. Table "active_watchers"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
presentity_uristring128default no Presence URI
watcher_usernamestring64default no From User
watcher_domainstring64default no From Domain
to_userstring64default no To User
to_domainstring64default no To Domain
eventstring64'presence' no Event description
event_idstring64default yes Event ID
to_tagstring64default no TO tag
from_tagstring64default no From tag
callidstring64default no Call ID
local_cseqint11default no Local cseq
remote_cseqint11default no Remote cseq
contactstring64default no Contact
record_routetextnot specifieddefault yes Record route
expiresint11default no Expires
statusint112 no Status
reasonstring64default no Reason
versionint110 no Version
socket_infostring64default no Socket info
local_contactstring128default no Local contact
Table 19-4. Table "active_watchers" indexes
name type links description active_watchers_idxunique presentity_uri, callid, to_tag, from_tag
Table 19-5. Table "watchers"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
presentity_uristring128default no Presentity Uri
watcher_usernamestring64default no Watcher User
watcher_domainstring64default no Watcher Domain
eventstring64'presence' no Event description
statusint11default no Status
reasonstring64default yes Reason
inserted_timeint11default no
Table 19-6. Table "watchers" indexes
name type links description watcher_idxunique presentity_uri, watcher_username, watcher_domain, event
Table 19-7. Table "xcap"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
usernamestring64default no User name
domainstring64default no Domain
docbinarynot specifieddefault no doc
doc_typeint11default no Document type
etagstring64default no Document Etag
sourceint11default no Entity inserting the record
doc_uristring128default no Document uri
portint11default no XCAP server port
Table 19-8. Table "xcap" indexes
name type links description account_doc_type_idxunique username, domain, doc_type, doc_uri
source_idxdefault source
Table 19-9. Table "pua"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
pres_uristring128default no URI
pres_idstring64default no ID
eventint11default no Event
expiresint11default no Expires
desired_expiresint11default no Desired Expires
flagint11default no Flags
etagstring64default no Etag
tuple_idstring64default yes Tuple ID
watcher_uristring128default no Watcher URI
call_idstring64default no Call ID
to_tagstring64default no To tag
from_tagstring64default no To tag
cseqint11default no
record_routetextnot specifieddefault yes Record route
contactstring128default no Contact
remote_contactstring128default no Remote contact
versionint11default no
extra_headerstextnot specifieddefault no Extra Headers
Chapter 20. Registrar
- aliases
This table for the registrar module is similar to the "location" table, (the aliases index makes lookup of missed calls much faster). Thus, the function lookup("alias") can be used to map aliases to AORs. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/registrar.html. Most people uses the dbaliases table with the alias_db module now.
Table 20-1. Table "aliases"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
usernamestring64'' no Alias Username / Phone Number
domainstring64NULL yes Domain name
contactstring255'' no Contact header field value provides a URI whoses meaning depends on the type of request or response it is in.
receivedstring128NULL yes Received IP:PORT in the format SIP:IP:PORT
pathstring128NULL yes Path Header(s) per RFC 3327
expiresdatetimenot specified'2020-05-28 21:32:15' no Date and time when this entry expires.
qfloat10,21.0 no Value used for preferential routing.
callidstring255'Default-Call-ID' no Call-ID header field uniquely identifies a particular invitation or all registrations of a particular client.
cseqint1113 no CSeq header field contains a single decimal sequence number and the request method.
last_modifieddatetimenot specified'1900-01-01 00:00:01' no Date and time when this entry was last modified.
flagsint110 no Flags
cflagsint110 no CFlags
user_agentstring255'' no User-Agent header field contains information about the UAC originating the request.
socketstring64NULL yes Socket used to connect to OpenSIPS. For example: UDP:IP:PORT
methodsint11NULL yes Flags that indicate the SIP Methods this contact will accept.
Chapter 21. RLS
- rls_presentity
Table for the RLS module.
- rls_watchers
Table for RLS module used for storing resource lists subscribe information.
Table 21-1. Table "rls_presentity"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
rlsubs_didstring255default no Resource list subscribe dialog id
resource_uristring128default no List Uri
content_typestring64default no Event
presence_statebinarynot specifieddefault no
expiresint11default no Expires
updatedint11default no Update flag
auth_stateint11default no Watcher authorization state
reasonstring64default no reason for watcher authorization state
Table 21-2. Table "rls_presentity" indexes
name type links description rls_presentity_idxunique rlsubs_did, resource_uri
updated_idxdefault updated
Table 21-3. Table "rls_watchers"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
presentity_uristring128default no Presence URI
to_userstring64default no To user
to_domainstring64default no To domain
watcher_usernamestring64default no From user
watcher_domainstring64default no From domain
eventstring64'presence' no Event description
event_idstring64default yes Event ID
to_tagstring64default no To tag
from_tagstring64default no From tag
callidstring64default no Call ID
local_cseqint11default no Local cseq
remote_cseqint11default no Remote cseq
contactstring64default no Contact
record_routetextnot specifieddefault yes Record route
expiresint11default no Expires
statusint112 no Status
reasonstring64default no Reason
versionint110 no Version
socket_infostring64default no Socket info
local_contactstring128default no Local contact
Chapter 22. SIPtrace
- sip_trace
This table is used to store incoming/outgoing SIP messages in database. More informations can be found in the siptrace module documentation at: http://www.opensips.org/html/docs/modules/1.4.x/siptrace.html.
Table 22-1. Table "sip_trace"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
time_stampdatetimenot specified'1900-01-01 00:00:01' no Recording date
callidstring255'' no call ID from SIP message
traced_userstring128'' no SIP URI of the user being traced
msgtextnot specifieddefault no Full SIP message
methodstring50'' no SIP method name
statusstring128'' no SIP reply status
fromipstring50'' no Source IP address
toipstring50'' no Destination IP address
fromtagstring64'' no From tag
directionstring4'' no Destination IP address
Chapter 23. Speed dial
- speed_dial
This table is used by the speeddial module to provide on-server speed dial facilities. More information about the speeddial module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/speeddial.html
Table 23-1. Table "speed_dial"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
usernamestring64'' no Username / phone number
domainstring64'' no Domain name
sd_usernamestring64'' no Speed dial username
sd_domainstring64'' no Speed dial domain
new_uristring128'' no New URI
fnamestring64'' no First name
lnamestring64'' no Last name
descriptionstring64'' no Description
Chapter 25. SIP URI checks
- uri
This table is used by uri_db module to implement various SIP URI checks. More information about the uri_db module can be found at: http://www.opensips.org/html/docs/modules/1.4.x/uri_db.html
Table 25-1. Table "uri"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement
usernamestring64'' no Username / phone number
domainstring64'' no Domain name
uri_userstring64'' no Username / phone number
last_modifieddatetimenot specified'1900-01-01 00:00:01' no Date and time when this record was last modified.
Chapter 26. User and global blacklists
- userblacklist
This table is used by the userblacklist module for the user specific blacklists. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/userblacklist.html
- globalblacklist
This table is used by the userblacklist module for the global blacklists. More information is available at: http://www.opensips.org/html/docs/modules/1.4.x/userblacklist.html
Table 26-1. Table "userblacklist"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
usernamestring64'' no The user that is used for the blacklist lookup.
domainstring64'' no The domain that is used for the blacklist lookup.
prefixstring64'' no The prefix that is matched for the blacklist.
whitelistchar10 no Specify if this a blacklist (0) or a whitelist (1) entry.
Table 26-2. Table "userblacklist" indexes
name type links description userblacklist_idxdefault username, domain, prefix
Table 26-3. Table "globalblacklist"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
prefixstring64'' no The prefix that is matched for the blacklist.
whitelistchar10 no Specify if this a blacklist (0) or a whitelist (1) entry.
descriptionstring255NULL yes A comment for the entry.
Chapter 27. User location
- location
Persistent user location information for the usrloc module. More information can be found at: http://www.opensips.org/html/docs/modules/1.4.x/usrloc.html
Table 27-1. Table "location"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
usernamestring64'' no Username / phone number
domainstring64NULL yes Domain name
contactstring255'' no Contact header field value provides a URI whoses meaning depends on the type of request or response it is in.
receivedstring128NULL yes Received IP:PORT in the format SIP:IP:PORT
pathstring128NULL yes Path Header(s) per RFC 3327
expiresdatetimenot specified'2020-05-28 21:32:15' no Date and time when this entry expires.
qfloat10,21.0 no Value used for preferential routing.
callidstring255'Default-Call-ID' no Call-ID header field uniquely identifies a particular invitation or all registrations of a particular client.
cseqint1113 no CSeq header field contains a single decimal sequence number and the request method.
last_modifieddatetimenot specified'1900-01-01 00:00:01' no Date and time when this entry was last modified.
flagsint110 no Flags
cflagsint110 no CFlags
user_agentstring255'' no User-Agent header field contains information about the UAC originating the request.
socketstring64NULL yes Socket used to connect to OpenSIPS. For example: UDP:IP:PORT
methodsint11NULL yes Flags that indicate the SIP Methods this contact will accept.