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 v2.1 |
| Prev | Next |
OpenSIPS database tables
- Table of Contents
- 1. Accounting
- 2. alias db
- 3. Subscriber
- 4. AVP Operations
- 5. B2BUA
- 6. SCA support
- 7. CacheDB_SQL
- 8. Call Center
- 9. carrierroute
- 10. Accounting
- 11. Call-processing language
- 12. Dialog support
- 13. Matching and translation rules
- 14. Dispatcher
- 15. Domain
- 16. Domainpolicy
- 17. Dynamic Routing
- 18. Extensions
- 19. Fraud Detection
- 20. Group checking
- 21. Instant Message Conference
- 22. Load Balancer
- 23. Message Storage
- 24. Prefix-Domain Translation
- 25. Permissions
- 26. Presence
- 27. Registrant support
- 28. Registrar
- 29. RLS
- 30. RTPProxy
- 31. SIPtrace
- 32. Speed dial
- 33. Version
- 34. SIP URI checks
- 35. User and global blacklists
- 36. 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 "b2b_entities"
- 5-2. Table "b2b_entities" indexes
- 5-3. Table "b2b_logic"
- 5-4. Table "b2b_logic" indexes
- 6-1. Table "b2b_sca"
- 6-2. Table "b2b_sca" indexes
- 7-1. Table "cachedb"
- 8-1. Table "cc_flows"
- 8-2. Table "cc_flows" indexes
- 8-3. Table "cc_agents"
- 8-4. Table "cc_agents" indexes
- 8-5. Table "cc_cdrs"
- 8-6. Table "cc_calls"
- 8-7. Table "cc_calls" indexes
- 9-1. Table "carrierroute"
- 9-2. Table "carrierfailureroute"
- 9-3. Table "route_tree"
- 10-1. Table "closeddial"
- 10-2. Table "closeddial" indexes
- 11-1. Table "cpl"
- 11-2. Table "cpl" indexes
- 12-1. Table "dialog"
- 13-1. Table "dialplan"
- 14-1. Table "dispatcher"
- 15-1. Table "domain"
- 15-2. Table "domain" indexes
- 16-1. Table "domainpolicy"
- 16-2. Table "domainpolicy" indexes
- 17-1. Table "dr_gateways"
- 17-2. Table "dr_gateways" indexes
- 17-3. Table "dr_rules"
- 17-4. Table "dr_carriers"
- 17-5. Table "dr_carriers" indexes
- 17-6. Table "dr_groups"
- 17-7. Table "dr_partitions"
- 19-1. Table "fraud_detection"
- 20-1. Table "grp"
- 20-2. Table "grp" indexes
- 20-3. Table "re_grp"
- 20-4. Table "re_grp" indexes
- 21-1. Table "imc_rooms"
- 21-2. Table "imc_rooms" indexes
- 21-3. Table "imc_members"
- 21-4. Table "imc_members" indexes
- 22-1. Table "load_balancer"
- 22-2. Table "load_balancer" indexes
- 23-1. Table "silo"
- 23-2. Table "silo" indexes
- 24-1. Table "pdt"
- 24-2. Table "pdt" indexes
- 25-1. Table "address"
- 26-1. Table "presentity"
- 26-2. Table "presentity" indexes
- 26-3. Table "active_watchers"
- 26-4. Table "active_watchers" indexes
- 26-5. Table "watchers"
- 26-6. Table "watchers" indexes
- 26-7. Table "xcap"
- 26-8. Table "xcap" indexes
- 26-9. Table "pua"
- 26-10. Table "pua" indexes
- 27-1. Table "registrant"
- 27-2. Table "registrant" indexes
- 28-1. Table "aliases"
- 28-2. Table "aliases" indexes
- 29-1. Table "rls_presentity"
- 29-2. Table "rls_presentity" indexes
- 29-3. Table "rls_watchers"
- 29-4. Table "rls_watchers" indexes
- 30-1. Table "rtpproxy_sockets"
- 31-1. Table "sip_trace"
- 31-2. Table "sip_trace" indexes
- 32-1. Table "speed_dial"
- 32-2. Table "speed_dial" indexes
- 33-1. Table "version"
- 33-2. Table "version" indexes
- 34-1. Table "uri"
- 34-2. Table "uri" indexes
- 35-1. Table "userblacklist"
- 35-2. Table "userblacklist" indexes
- 35-3. Table "globalblacklist"
- 35-4. Table "globalblacklist" indexes
- 36-1. Table "location"
- 36-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/2.1.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/2.1.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.
durationunsigned int110 no Call duration (from 200OK INVITE to BYE request) - this filed is populated only if CDR support is enabled in ACC module (see cdr_flag parameter)
setuptimeunsigned int110 no Call initialization duration - (from INVITE request to 200 OK INVITE) - this filed is populated only if CDR support is enabled in ACC module (see cdr_flag parameter)
createddatetimenot specifiedNULL yes The call creation date and time.
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.
setuptimeunsigned int110 no Call initialization duration - (from INVITE request to reply) - this filed is populated only if CDR support is enabled in ACC module (see cdr_flag parameter)
createddatetimenot specifiedNULL yes The call creation date and time.
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/2.1.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/2.1.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/2.1.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. B2BUA
- b2b_entities
Table for the b2b_entities module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/b2b_entities.html
- b2b_logic
Table for the b2b_logic module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html
Table 5-1. Table "b2b_entities"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
typeint2default no Entity type: 0-server, 1-client
stateint2default no Dialog state
ruristring128default yes RURI(stored only for server entities to correctly match CANCEL)
from_uristring128default no From URI
to_uristring128default no To URI
from_dnamestring64default yes From display name
to_dnamestring64default yes To display name
tag0string64default no TO tag
tag1string64default yes From tag
callidstring64default no Call ID
cseq0int11default no Cseq0
cseq1int11default yes Cseq1
contact0string128default no Contact0
contact1string128default yes Contact1
route0textnot specifieddefault yes Record route 0
route1textnot specifieddefault yes Record route 1
sockinfo_srvstring64default yes Socket Info
paramstring128default no Logic parameter
lmint11default no Last method
lrcint11default yes Last reply code
licint11default yes Last invite cseq
leg_cseqint11default yes Leg cseq
leg_routetextnot specifieddefault yes Leg route
leg_tagstring64default yes Leg tag
leg_contactstring128default yes Leg contact
leg_sockinfostring128default yes Leg sockinfo
Table 5-2. Table "b2b_entities" indexes
name type links description b2b_entities_idxunique type, tag0, tag1, callid
b2b_entities_paramdefault param
Table 5-3. Table "b2b_logic"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
si_keystring64default no Scenario instantiation key
scenariostring64default no Scenario id
sstateint2default no Scenario State
next_sstateint2default no Next Scenario State
sparam0string64default yes Scenario id
sparam1string64default yes Scenario id
sparam2string64default yes Scenario id
sparam3string64default yes Scenario id
sparam4string64default yes Scenario id
sdptext64default yes Scenario id
lifetimeint100 no Lifetime
e1_typeint2default no E1 type
e1_sidstring64default no E1 Scenario ID
e1_fromstring128default no E1 From URI
e1_tostring128default no E1 To URI
e1_keystring64default no E1 Key
e2_typeint2default no E2 type
e2_sidstring64default no E2 Scenario ID
e2_fromstring128default no E2 From URI
e2_tostring128default no E2 To URI
e2_keystring64default no E2 Key
e3_typeint2default yes E3 type
e3_sidstring64default yes E3 Scenario ID
e3_fromstring128default yes E3 From URI
e3_tostring128default yes E3 To URI
e3_keystring64default yes E3 Key
Chapter 6. SCA support
- b2b_sca
Persistent sca information for the b2b_sca module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/b2b_sca.html
Table 6-1. Table "b2b_sca"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
shared_linestring64default no The shared line.
watchersstring255default no The URI list of watchers
app1_shared_entityunsigned int1NULL yes The entity to keep.
app1_call_stateunsigned int1NULL yes The state of the appearance index.
app1_call_info_uristring128NULL yes The URI of the Call-Info header
app1_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app1_b2bl_keystring64NULL yes The b2b_logic key.
app2_shared_entityunsigned int1NULL yes The entity to keep.
app2_call_stateunsigned int1NULL yes The state of the appearance index.
app2_call_info_uristring128NULL yes The URI of the Call-Info header
app2_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app2_b2bl_keystring64NULL yes The b2b_logic key.
app3_shared_entityunsigned int1NULL yes The entity to keep.
app3_call_stateunsigned int1NULL yes The state of the appearance index.
app3_call_info_uristring128NULL yes The URI of the Call-Info header
app3_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app3_b2bl_keystring64NULL yes The b2b_logic key.
app4_shared_entityunsigned int1NULL yes The entity to keep.
app4_call_stateunsigned int1NULL yes The state of the appearance index.
app4_call_info_uristring128NULL yes The URI of the Call-Info header
app4_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app4_b2bl_keystring64NULL yes The b2b_logic key.
app5_shared_entityunsigned int1NULL yes The entity to keep.
app5_call_stateunsigned int1NULL yes The state of the appearance index.
app5_call_info_uristring128NULL yes The URI of the Call-Info header
app5_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app5_b2bl_keystring64NULL yes The b2b_logic key.
app6_shared_entityunsigned int1NULL yes The entity to keep.
app6_call_stateunsigned int1NULL yes The state of the appearance index.
app6_call_info_uristring128NULL yes The URI of the Call-Info header
app6_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app6_b2bl_keystring64NULL yes The b2b_logic key.
app7_shared_entityunsigned int1NULL yes The entity to keep.
app7_call_stateunsigned int1NULL yes The state of the appearance index.
app7_call_info_uristring128NULL yes The URI of the Call-Info header
app7_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app7_b2bl_keystring64NULL yes The b2b_logic key.
app8_shared_entityunsigned int1NULL yes The entity to keep.
app8_call_stateunsigned int1NULL yes The state of the appearance index.
app8_call_info_uristring128NULL yes The URI of the Call-Info header
app8_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app8_b2bl_keystring64NULL yes The b2b_logic key.
app9_shared_entityunsigned int1NULL yes The entity to keep.
app9_call_stateunsigned int1NULL yes The state of the appearance index.
app9_call_info_uristring128NULL yes The URI of the Call-Info header
app9_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app9_b2bl_keystring64NULL yes The b2b_logic key.
app10_shared_entityunsigned int1NULL yes The entity to keep.
app10_call_stateunsigned int1NULL yes The state of the appearance index.
app10_call_info_uristring128NULL yes The URI of the Call-Info header
app10_call_info_appearance_uristring128NULL yes The URI of the appearance in Call-Info header
app10_b2bl_keystring64NULL yes The b2b_logic key.
Chapter 7. CacheDB_SQL
- cachedb
DB implementation of the CacheDB interface: http://www.opensips.org/html/docs/modules/2.1.x/cachedb_sql.html
Chapter 8. Call Center
- cc_flows
This table is used by the Call Center module to store the definition of the call queues / flows. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/call_center.html.
- cc_agents
This table is used by the Call Center module to store the definition of the agents serving the flows/queues. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/call_center.html.
- cc_cdrs
This table is used by the Call Center module to store the Call Data Records (CDRs) for all the handled calls. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/call_center.html.
- cc_calls
This table is used by the Call Center module to store ongoing calls for restart persitancy. It consists only of runtime data and should not be manually provisioned. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/call_center.html.
Table 8-1. Table "cc_flows"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Flow unique ID in DB
flowidstring64default no The unique ID of the flow in the Call Center module - to be used to identify the flow/queue in the module and from outside the module; It is an alphanumerical string.
priorityunsigned int11256 no The priority of the flow (in relation to the other flows); 0 is maximum priority and calls for this flow will be processed first all the time.
skillstring64default no The skill required from an agent in order to receive calls from this flow/queue.
prependcidstring32default no Aphanumerical prefix to be added to the caller displayname when sending calls from this flow to agents (so agent - serving muliple flows - can see what was the flow the call was received on.
message_welcomestring128NULL yes SIP URI point to a media server; this is used for playing the welcome message for this flow.
message_queuestring128default no SIP URI point to a media server; this is used for playing the onhold message for this flow. IMPORTANT - this message must cycle and media server must never hung up on it.
Table 8-3. Table "cc_agents"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Agent unique ID in DB
agentidstring128default no The unique ID of the agent in the Call Center module - to be used to identify the agent in the module and from outside the module; It is an alphanumerical string.
locationstring128default no SIP URI point to the agent location; All calls for this agents will be sent to this SIP address.
logstateunsigned int100 no The login state of the agent; 0 - not logged in; 1 - logged in ; Agent will start receiving calls only if logged in.
skillsstring255default no Comma separated list of skills offered by the agent; these skills must match the skills used in the queues/flows definition; In order to receive calls from a flow, the agent must have the skill required by that flow.
last_call_endint110 no The timestamp of the last call of an agent. If different than 0, the agent will only receive calls after wrapup seconds pass after this timestamp.
Table 8-5. Table "cc_cdrs"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement CDR unique ID in DB
callerstring64default no The SIP URI identifing the caller.
received_timestampdatetimenot specifieddefault no When the call was received.
wait_timeunsigned int110 no Time (in seconds) spent by the call in queue (onhold).
pickup_timeunsigned int110 no Time (in seconds) spent by the call in ringing to the agent.
talk_timeunsigned int110 no The duration (in seconds) of the call.
flow_idstring128default no The ID of the flow the call was received on.
agent_idstring128NULL yes The ID of the agent who picked this call (if any).
call_typeint11-1 no Type of call: -2 - call rejected by agent; -1 - call dropped because of internal error; 0 - call handled by agent; 1 - call dropped while in queue;
rejectedunsigned int110 no How many times the call was rejected by agents (agent not answering his phone).
fstatsunsigned int110 no Bitmask of the following binary flags: 0 - it is inbound call; 1 - call was distributed to agents; 2 - call was answered; 3 - call was abandoned.
cidunsigned int110 yes Sequence number of the call.
Table 8-6. Table "cc_calls"
name type size default null key extra attributes description idunsigned int10default no autoincrement unique ID of the call.
stateint11default no The state of the call.
ig_cbackint11default no Indicates if the call should be ignored.
no_rejint11default no Indicates whether the call can be rejected or not.
setup_timeint11default no Stores the call setup time.
etaint11default no The estimated wait time for a call until it is answered by an agent.
last_startint11default no Stores the timestamp when the last call has started.
recv_timeint11default no Stores the timestamp when the call was received by the call center.
caller_dnstring128default no Caller Display Name.
caller_unstring128default no Caller User Name.
b2buaidstring128'' no primary The B2B id internally used by the B2B module to identify the call.
flowstring128default no The flow/queue this call belongs to.
agentstring128default no The agent that handles the call.
Chapter 9. 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/html/docs/modules/2.1.x/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/html/docs/modules/2.1.x/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/2.1.x/carrierroute.html
Table 9-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 9-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 10. Accounting
- closeddial
This table is used by the closeddial module to provide closed dial functionality for groups of usernames; This is a functionality similar to a Centrex. More information about the closeddial module can be found at: http://www.opensips.org/html/docs/modules/2.1.x/closeddial.html
Table 10-1. Table "closeddial"
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
cd_usernamestring64'' no Closed dial username
cd_domainstring64'' no Closed dial domain
group_idstring64'' no Attribute use to group usernames
new_uristring128'' no New URI
Chapter 11. Call-processing language
- cpl
Table for the call processing language "cpl" module. More information is available at: http://www.opensips.org/html/docs/modules/2.1.x/cpl-c.html
Chapter 12. Dialog support
- dialog
Persistent dialog information for the dialog module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/dialog.html
Table 12-1. Table "dialog"
name type size default null key extra attributes description dlg_idunsigned long10default no primary h_entry | h_id
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.
mangled_from_uristring64NULL yes The mangled from URI, in case uac_replace_from was called for this dialog.
mangled_to_uristring64NULL yes The mangled to URI, in case uac_replace_to was called for this dialog
caller_cseqstring11default no Last Cseq number on the caller side.
callee_cseqstring11default no Last Cseq number on the callee side.
caller_ping_csequnsigned int11default no Last Cseq number of pings generated on caller side.
callee_ping_csequnsigned int11default no Last Cseq number of pings generated on callee side.
caller_route_settext512default yes Route set on the caller side.
callee_route_settext512default 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.
varsbinary4096NULL yes Variables attached to this dialog.
profilestext512NULL yes Profiles this dialog belongs to.
script_flagsunsigned int100 no Script flags for the dialog.
module_flagsunsigned int100 no Module flags for the dialog.
flagsunsigned int100 no Internal flags used by the module.
Chapter 13. 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/2.1.x/dialplan.html
Table 13-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_flagsint11default no Matching flags (0-case sensitive, 1-case insensitive).
subst_expstring64default no Substitution expresion.
repl_expstring32default no Replacement expresion (sed like).
timerecstring255default no Time recurrence used to match this rule.
disabledint110 no Specifies if the command can be used, or is disabled.
attrsstring32default no General attributes string to be returned in case of rule matching.
Chapter 14. 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/2.1.x/dispatcher.html
Table 14-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
socketstring128NULL yes Local Socket to be used when sending requests (traffic and probes) to the destination - must be an listener configured in opensips.
stateintnot specified0 no The state of the destination (0 enabled, 1 disabled , 2 probing)
weightintnot specified1 no The weight of the destination
priorityintnot specified0 no The priority of each destination (only useful with algorithm 8)
attrsstring128'' no Attribute string - custom, opaque string that will be pushed into script when this destination will be selected
descriptionstring64'' no Description for this destination
Chapter 15. 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/2.1.x/domain.html
Table 15-1. Table "domain"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
domainstring64'' no Domain name
attrsstring255NULL yes Domain Attributes
last_modifieddatetimenot specified'1900-01-01 00:00:01' no Date and time when this record was last modified.
Chapter 16. Domainpolicy
- domainpolicy
Table for the domainpolicy module. More information at http://www.opensips.org/html/docs/modules/2.1.x/domainpolicy.html.
Table 16-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 17. Dynamic Routing
- dr_gateways
This table is used by the Dynamic Routing module to store information about the destinations/gateways where to route calls. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/drouting.html.
- dr_rules
This table is used by the Dynamic Routing module to store information about the routing rules. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/drouting.html.
- dr_carriers
This table is used by the Dynamic Routing module to define carriers (a carrier is defined by a list of gateways and an ordering rule). More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/drouting.html.
- dr_groups
This table is used by the Dynamic Routing module to store information about the routing groups (users mapped over groups). More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/drouting.html.
- dr_partitions
This table is used by the Dynamic Routing module to store information about the partitions used in routing (url to database, table names and AVP names for each partition). More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/drouting.html.
Table 17-1. Table "dr_gateways"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Table primary key, not used by module
gwidstring64default no GW unique ID - used to link the GW from the routing rules
typeunsigned int110 no Type/class of the GW (user defined)
addressstring128default no GW/destination address as name/IP[:port]
stripunsigned int110 no Number of digits to be striped out for the begining of the username when using this GW/destination
pri_prefixstring16NULL yes String to prefix the username of RURI when using this GW/destination
attrsstring255NULL yes Generic string describing GW attributes - this string is to be interpreted from the script
probe_modeunsigned int110 no 0- No probing; 1-Probe on disable only ; 2-Always probe;
stateunsigned int110 no State of the gateway: 0 - enabled; 1 - permanent disabled; 2 - temporary disabled (probing)
socketstring128NULL yes Local Socket to be used when sending requests (traffic and probes) to the destination - must be an listener configured in opensips.
descriptionstring128'' no Text description of the GW/destination
Table 17-3. Table "dr_rules"
name type size default null key extra attributes description ruleidunsigned int10default no primary autoincrement Rule unique ID
groupidstring255default no The ID(s) of the routing group(s) this rule is to be used for - comma separeted list of numerical Ids
prefixstring64default no Numerical prefix to match this rule
timerecstring255default no Time recurrence used for matching this rule.
priorityint110 no Priority of this rule (among rules with same prefix and timerec).
routeidstring255NULL yes Route block (from cfg script) to be called when rule matches.
gwliststring255default no Reference to the GWs/destinations to be used when rule matches.
attrsstring255NULL yes Generic string describing RULE attributes - this string is to be interpreted from the script
descriptionstring128'' no Text description of the rule
Table 17-4. Table "dr_carriers"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Table key, not used by module
carrieridstring64default no Unique ID of the carrier
gwliststring255default no Reference to the GWs/destinations from the list.
flagsunsigned int110 no Flags (for different purposes) of the carriers
stateunsigned int110 no The state of the carrier (on / off).
attrsstring255'' yes Attributes string for the carrier
descriptionstring128'' no Text description of the GW list
Table 17-6. Table "dr_groups"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
usernamestring64default no Username part of user
domainstring128'' no Domain part of user
groupidunsigned int110 no The ID of the routing group the user belongs to.
descriptionstring128'' no Text description of the group/user
Table 17-7. Table "dr_partitions"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Partition unique ID
partition_namestring255default no The name of the partition.
db_urlstring255default no The url to the database containing the tables: dr_rules, dr_groups, dr_carriers and dr_gateways
drd_tablestring255default yes The name of the dr_gateways table in the given database (for the given partition).
drr_tablestring255default yes The name of the dr_rules table in the given database (for the given partition).
drg_tablestring255default yes The name of the dr_groups table in the given database (for the given partition).
drc_tablestring255default yes The name of the dr_carriers table in the given database (for the given partition).
ruri_avpstring255default yes The name of ruri_avp AVP.
gw_id_avpstring255default yes The name of gw_id_avp AVP
gw_priprefix_avpstring255default yes The name of gw_priprefix_avp AVP.
gw_sock_avpstring255default yes The name of gw_sock_avp AVP.
rule_id_avpstring255default yes The name of rule_id_avp AVP.
rule_prefix_avpstring255default yes The name of rule_prefix_avp AVP.
carrier_id_avpstring255default yes The name of carrier_id_avp AVP.
Chapter 19. Fraud Detection
- fraud_detection
This table is used by the Fraud Detection module to store information about fraud-profiles. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/fraud_detection.html.
Table 19-1. Table "fraud_detection"
name type size default null key extra attributes description ruleidunsigned int10default no primary autoincrement Rule unique ID
profileidunsigned intnot specifieddefault no The ID of the profile the current rule is part of
prefixstring64default no Numerical prefix to match this rule
start_hourstring5default no Start of the interval in which the rule should be matched.
end_hourstring5default no End of the interval in which the rule should be matched.
daysoftheweekstring64default no List/interval of days in which the rule is available.
cpm_warningunsigned int5default no Warning threshold for calls per minute.
cpm_criticalunsigned int5default no Crtical threshold for calls per minute.
call_duration_warningunsigned int5default no Warning threshold for calls per minute.
call_duration_criticalunsigned int5default no Crtical threshold for call duration.
total_calls_warningunsigned int5default no Warning threshold for total calls.
total_calls_criticalunsigned int5default no Crtical threshold for total calls.
concurrent_calls_warningunsigned int5default no Warning threshold for concurrent calls.
concurrent_calls_criticalunsigned int5default no Crtical threshold for concurrent calls.
sequential_calls_warningunsigned int5default no Warning threshold for sequential calls.
sequential_calls_criticalunsigned int5default no Crtical threshold for sequential calls.
Chapter 20. 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/2.1.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/2.1.x/group.html
Table 20-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 20-2. Table "grp" indexes
name type links description account_group_idxunique username, domain, grp
Chapter 21. Instant Message Conference
- imc_rooms
Room table for the IMC module. More information at http://www.opensips.org/html/docs/modules/2.1.x/imc.html.
- imc_members
Member table for the IMC module. More information at http://www.opensips.org/html/docs/modules/2.1.x/imc.html.
Table 21-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 22. Load Balancer
- load_balancer
This table is used by the Load-Balancer module to store information about the destinations the balance the calls between. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/load_balancer.html.
Table 22-1. Table "load_balancer"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID of the destination
group_idunsigned int110 no The group the destination belongs to
dst_uristring128default no Destination address as a SIP URI
resourcesstring255default no String with the definition of the resource provided by the destination and the capacity of each resource
probe_modeunsigned int110 no Probing mode (0-none, 1-if disabled, 2-all the time)
descriptionstring128'' no Text description of the destination
Chapter 23. 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/2.1.x/msilo.html
Table 23-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
ctypestring255NULL yes Content type
bodybinarynot specifiedNULL yes Body of the message
Chapter 24. 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/2.1.x/pdt.html
Table 24-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 25. Permissions
- address
This table is used by the permissions module. More information is available at: http://www.opensips.org/html/docs/modules/2.1.x/permissions.html
Table 25-1. Table "address"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
grpunsigned short50 no Group
ipstring50default no IP address
maskcharnot specified32 no Network mask
portunsigned short50 no Port
protostring4'any' 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".
patternstring64NULL yes Regular expression
context_infostring32NULL yes Extra context information
Chapter 26. Presence
- presentity
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/presence.html
- active_watchers
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/presence.html
- watchers
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/presence.html
- xcap
Table for the presence module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/presence.html
- pua
Table for the presence related pua module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/pua.html
Table 26-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
extra_hdrsbinarynot specified'' no
senderstring128default no Sender contact
Table 26-2. Table "presentity" indexes
name type links description presentity_idxunique username, domain, event, etag
Table 26-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
contactstring128default 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 26-4. Table "active_watchers" indexes
name type links description active_watchers_idxunique presentity_uri, callid, to_tag, from_tag
Table 26-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 26-6. Table "watchers" indexes
name type links description watcher_idxunique presentity_uri, watcher_username, watcher_domain, event
Table 26-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 26-8. Table "xcap" indexes
name type links description account_doc_type_idxunique username, domain, doc_type, doc_uri
source_idxdefault source
Table 26-9. Table "pua"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
pres_uristring128default no URI
pres_idstring255default no ID
eventint11default no Event
expiresint11default no Expires
desired_expiresint11default no Desired Expires
flagint11default no Flags
etagstring64default yes Etag
tuple_idstring64default yes Tuple ID
watcher_uristring128default yes Watcher URI
to_uristring128default yes URI
call_idstring64default yes Call ID
to_tagstring64default yes To tag
from_tagstring64default yes From tag
cseqint11default yes
record_routetextnot specifieddefault yes Record route
contactstring128default yes Contact
remote_contactstring128default yes Remote contact
versionint11default yes
extra_headerstextnot specifieddefault yes Extra Headers
Chapter 27. Registrant support
- registrant
Registrant information for the uac_registrant module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/uac_registrant.html
Table 27-1. Table "registrant"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement unique ID
registrarstring128'' no URI pointing to the remote registrar.
proxystring128NULL yes URI pointing to the outbond proxy.
aorstring128'' no URI defining the address of record.
third_party_registrantstring128NULL yes URI defining the third party registrant.
usernamestring64NULL yes Username for authentication.
passwordstring64NULL yes Password for authentication.
binding_URIstring128'' no Contact URI in REGISTER.
binding_paramsstring64NULL yes Contact params in REGISTER.
expiryunsigned int1NULL yes Expiration time.
forced_socketstring64NULL yes socket for sending the REGISTER.
Chapter 28. 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/2.1.x/registrar.html. Most people uses the dbaliases table with the alias_db module now.
Table 28-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
domainstring64'' no 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
pathstring255NULL 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
cflagsstring255NULL yes 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.
sip_instancestring255NULL yes SIP Instance for this particular contact
attrstring255NULL yes Optional information specific to each registration
Chapter 29. RLS
- rls_presentity
Table for the RLS module.
- rls_watchers
Table for RLS module used for storing resource lists subscribe information.
Table 29-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_typestring255default no Content type
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 29-2. Table "rls_presentity" indexes
name type links description rls_presentity_idxunique rlsubs_did, resource_uri
updated_idxdefault updated
Table 29-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 30. RTPProxy
- rtpproxy_sockets
This table is used by the NAT Helper module to store definitions of socket(s) used to connect to (a set) RTPProxy. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/nathelper.html.
Table 30-1. Table "rtpproxy_sockets"
name type size default null key extra attributes description idunsigned int10default no primary autoincrement Unique ID
rtpproxy_socktextnot specifieddefault no A list of sockets use to connect to a set of RTPProxy. Example: "udp:localhost:12221 udp:localhost:12222".
set_idunsigned int10default no The ID of the RTPProxy set.
Chapter 31. 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/2.1.x/siptrace.html.
Table 31-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_userstring128NULL yes SIP URI of the user being traced
msgtextnot specifieddefault no Full SIP message
methodstring32'' no SIP method name
statusstring128NULL yes SIP reply status
from_protostring5default no Source protocol
from_ipstring50'' no Source IP address
from_portunsigned int5default no Source port
to_protostring5default no Destination protocol
to_ipstring50'' no Destination IP address
to_portunsigned int5default no Destination port
fromtagstring64'' no From tag
directionstring4'' no Destination IP address
Chapter 32. 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/2.1.x/speeddial.html
Table 32-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 33. Version
Chapter 34. 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/2.1.x/uri_db.html
Table 34-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 35. 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/2.1.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/2.1.x/userblacklist.html
Table 35-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 35-2. Table "userblacklist" indexes
name type links description userblacklist_idxdefault username, domain, prefix
Table 35-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 36. User location
- location
Persistent user location information for the usrloc module. More information can be found at: http://www.opensips.org/html/docs/modules/2.1.x/usrloc.html
Table 36-1. Table "location"
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
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
pathstring255NULL 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
cflagsstring255NULL yes 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.
sip_instancestring255NULL yes SIP Instance for this particular contact
attrstring255NULL yes Optional information specific to each registration