ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Kamailio Config

by igorolhovskiy ALL

Syntax file for Sublime to support Kamailio/OpenSIPS

Details

  • 0.1.0
  • github.​com
  • github.​com
  • 7 months ago
  • 13 minutes ago
  • 6 months ago

Installs

  • Total 14
  • Win 2
  • Mac 8
  • Linux 4
Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Kamailio Sublime Text Syntax

Syntax highlighting for Kamailio SIP server configuration files (.cfg). Ported from miconda/vscode-kamailio-syntax (MIT).

Installation

Option A – symlink (recommended for development)

# Linux
ln -s "$(pwd)" ~/.config/sublime-text/Packages/Kamailio

# macOS
ln -s "$(pwd)" ~/Library/Application\ Support/Sublime\ Text/Packages/Kamailio

Option B – copy the files

# Linux
cp -r . ~/.config/sublime-text/Packages/Kamailio

# macOS
cp -r . ~/Library/Application\ Support/Sublime\ Text/Packages/Kamailio

Sublime Text picks up the new package automatically – no restart needed.

Usage

  • Files with .cfg or .inc extensions are detected automatically.
  • Files that contain KAMAILIO, SER, SIP-ROUTER, or OPENSER on their first line are also detected regardless of extension.
  • To set the syntax manually: View → Syntax → Kamailio

Comment toggling

  • Line comment: Ctrl+/ (Win/Linux) / ⌘/ (macOS) inserts #
  • Block comment: Ctrl+Shift+/ / ⌘⌥/ inserts /* … */