Skip to content

Realtime and Resources

Germán Luis Aracil Boned edited this page Apr 30, 2026 · 2 revisions

Realtime And Resources

Resource modules provide shared services used by channel drivers, applications, functions and the core.

Realtime Configuration

Module Purpose
res_realtime Realtime data lookup/rewrite support.
res_config_pgsql PostgreSQL realtime configuration driver.
res_config_odbc ODBC realtime configuration driver.
res_config_sqlite3 SQLite realtime configuration driver.
res_config_ldap LDAP realtime interface.
res_config_curl Realtime over curl.
res_config_mysql MySQL realtime add-on.

Important config files:

configs/extconfig.conf.sample
configs/res_pgsql.conf.sample
configs/res_odbc.conf.sample
configs/res_config_sqlite3.conf.sample
configs/res_ldap.conf.sample
configs/res_config_mysql.conf.sample

For chan_sofia, important realtime families are:

sippeers
sipregs

PostgreSQL Cache

res_config_pgsql includes cache support and UDP cache invalidation behavior. The sample config and detailed wiki page document:

  • [general] database connection.
  • [cache] item and byte limits.
  • [networkupd] UDP invalidation port.
  • [selectfunc] mappings for SELECT function calls.
  • [updatefunc] and [insertfunc] placeholders/reserved behavior.

Read:

configs/res_pgsql.conf.sample

Detailed setup:

[[PostgreSQL-Realtime-Cache]]

RTP, SRTP And Media Resources

Module Purpose
res_rtp_gabpbx Main GABPBX RTP stack.
res_rtp_multicast Multicast RTP engine.
res_srtp Secure RTP support.
res_stun_monitor STUN network monitor.
res_fax Generic fax applications and API.
res_fax_spandsp SpanDSP G.711 and T.38 fax technologies.

Important config files:

configs/rtp.conf.sample
configs/udptl.conf.sample
configs/res_fax.conf.sample
configs/res_stun_monitor.conf.sample

AMI, CLI, AGI And HTTP

Module Purpose
res_agi AGI support.
res_clialiases CLI aliases.
res_clioriginate CLI originate support.
res_http_post HTTP POST support.
res_curl cURL resource module.
res_phoneprov HTTP phone provisioning.

Important config files:

configs/manager.conf.sample
configs/http.conf.sample
configs/cli_aliases.conf.sample
configs/phoneprov.conf.sample

Calendar, Messaging And External Services

Module Purpose
res_calendar Generic calendar framework.
res_calendar_caldav CalDAV integration.
res_calendar_exchange Exchange calendar integration.
res_calendar_ews Exchange Web Services calendar integration.
res_calendar_icalendar iCalendar integration.
res_jabber AJI Jabber interface.
res_smdi Simplified Message Desk Interface.
res_snmp SNMP subagent.
res_pktccops PacketCable COPS support.

Audio, Speech And Monitoring

Module Purpose
res_musiconhold Music on hold.
res_monitor Call monitoring resource.
res_mutestream Mute audio stream resources.
res_speech Generic speech recognition API.
res_convert File format conversion CLI command.

Timing And System Resources

Module Purpose
res_timing_timerfd Linux timerfd timing interface.
res_timing_pthread pthread timing interface.
res_timing_dahdi DAHDI timing interface.
res_timing_kqueue kqueue timing interface.
res_limit Resource limits.
res_security_log Security event logging.
res_crypto Cryptographic digital signatures.
res_adsi ADSI resource.
res_ael_share Shared AEL support code.
res_ais AIS integration.

Operational Notes

  • RTP and SRTP resources must be loaded before encrypted SIP media can work.
  • Realtime resources must match extconfig.conf.
  • Calendar/Jabber/SNMP modules require their own external service credentials.
  • Timing modules affect conferencing, playback timing and other media behavior.

Clone this wiki locally