A Naive implementation of non Media enabled cli softphone. This id my rust/sip playground
Features & Flaws:
- Autoanswers incoming calls
- Can Make outbound calls
- State is in a messy state, but kind of useable
- SIP can be logged automaticall in a pcap file, if provided which interface needs to be monitored
- Its only been tested in few specific setups
- Naive attempt to implement RTP on my own
I am dropping the TUI interface in favour for an http interface.
Ill keep the tui tagged if anyone is interested.
{
"username": "username",
"extension": "xxxx",
"password": "password",
"sip_port": 5060,
"sip_server": "test.server.com",
"pcap": "3588BAE5-461C-4B83-B99E-287DEAE44B0E"
}
Pcap property is optional and it's the name of the interface you need to monitor. [1]
- Install Npcap.
- Download the Npcap SDK.
- Add the SDK's /Lib or /Lib/x64 folder to your LIB environment variable.
Install the libraries and header files for the libpcap library. For example:
- On Debian based Linux: install libpcap-dev.
[1] I have pcap commented out because its annoying to setup Npcap everytime