Detect SIP stack / vendor from a trace OR a config
detect_sip_stack[cost: free (pure CPU, no network) | read-only]
Identify the SIP product behind a piece of input. Works on both:
a SIP trace (User-Agent / Server headers from PCAP/sngrep/syslog), and
a vendor config blob (kamailio.cfg, sip.conf, pjsip.conf, FreeSWITCH XML, opensips.cfg) detected via structural signatures (loadmodule, route blocks, [transport-*] sections, <profile name=>, etc.).
Returns a vendor slug (e.g. "kamailio", "freeswitch", "asterisk", "twilio", "cisco-cube") aligned with the vendor filter on search_sip_docs, so you can pipe the output of this tool directly into a follow-up doc search.
Pair with: search_sip_docs(vendor=<slug>, ...) for grounded vendor docs; review_sip_config when the input is a config and you also want extracted modules + risk flags; troubleshoot_response_code(vendorHint=<slug>, ...) when chasing a status code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What the input is. "trace" looks at SIP headers only, "config" runs vendor-config heuristics, "auto" tries trace first then falls back to config detection. | auto |
| text | Yes | Raw SIP trace text OR a vendor config blob. | |
| filenameHint | No | Optional filename (e.g. "kamailio.cfg", "pjsip.conf"). Strongly improves config-mode detection when supplied. |