sipbot 0.2.57

A simple SIP bot with RTP
Documentation
[[accounts]]
username = "1001"
domain = "sip.example.com"
password = "secretpassword"
register = true

# Strategy: Answer immediately and Echo
[accounts.answer]
action = "echo"

[[accounts]]
username = "1002"
domain = "sip.example.com"
password = "secretpassword"

# Strategy: Answer, Play file, then Hangup after 10s
[accounts.answer]
action = "play"
wav_file = "welcome.wav"

[accounts.hangup]
code = 200
after_secs = 10

[[accounts]]
username = "1003"
domain = "sip.example.com"
password = "secretpassword"

# Strategy: Ring 5 seconds (180 Ringing, no media), then Reject
[accounts.ring]
duration_secs = 5
# No ringback specified -> Send 180 Ringing

[accounts.hangup]
code = 486 # Busy Here

[[accounts]]
username = "1004"
domain = "sip.example.com"
password = "secretpassword"

# Strategy: Early Media (Color Ring), Answer, Play file
[accounts.ring]
# ringback = "custom_ring.wav" # Send 183 and play file (duration_secs caps it)
# ringback = ""                # Send 183 and play built-in ringing.wav, answer when it ends
ringback = ""

[accounts.answer]
action = "play"
wav_file = "agent_hello.wav"