Skip to content
Prompt

pjproject — Copilot Instructions

by pjsip

AI Summary

Open-source multimedia communication library in C (SIP, SDP, RTP, STUN, TURN, ICE). 1. GNU Makefile (e.g., ) 2. MSVC project (e.g., )

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "pjproject — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/pjsip/pjproject

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

PJSIP project

PJSIP/PJPROJECT

Open-source multimedia communication library in C (SIP, SDP, RTP, STUN, TURN, ICE).

Build & Test

• Build: ./configure && make -j3 (timeout 120s+, NEVER CANCEL) • Skip make dep — it often produces corrupt .depend files. make generates deps automatically. If build fails with "missing separator" in .depend, run find . -name "*.depend" -delete and retry. • Targeted build: cd pjlib/build && make (or pjsip/build, etc.) • Full clean: make clean (required when switching SSL backends or configure options) • Get target arch: make infotarget (e.g., x86_64-pc-linux-gnu) • Three build systems — when adding/removing source files, update all three: • GNU Makefile (e.g., pjlib/build/Makefile) • MSVC project (e.g., pjlib/build/pjlib.vcxproj) • CMake (CMakeLists.txt)

Running Tests

Run via Makefile (NEVER CANCEL, 5+ min each, timeout 600s): ` make pjlib-test # core library make pjsip-test # SIP stack make pjsua-test # high-level API (Python) ` Run specific test directly — must run from the bin/ directory: ` cd pjlib/bin && ./pjlib-test-x86_64-pc-linux-gnu timer_test cd pjlib/bin && ./pjlib-test-x86_64-pc-linux-gnu --list ` Options: -w N (worker threads), --shuffle, --ci-mode, --stop-err Quick smoke test: cd tests/pjsua && python3 run.py mod_run.py scripts-run/100_simple.py

Minimum Validation (mandatory after every change)

• Always run make -j3 — zero errors, zero warnings (-Wall enabled). • For targeted builds: cd pjlib/build && make or cd pjsip/build && make. • Known warning: PJ_TODO(id) macro triggers -Wunused-label intentionally. Suppress with #define PJ_TODO(x) in config_site.h.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted Today
Active
Adoption1K+ stars on GitHub
2.6k ★ · Popular
DocsMissing or thin
Undocumented

GitHub Signals

Stars2.6k
Forks951
Issues7
UpdatedToday
View on GitHub
GPL-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more