A SIP library
Install and update using pip:
pip install -U snl
import snl
phoneA = snl.SIPPhoneClass()(
ua=dict(proxy='1.2.3.4', aor='sip:+33123456789@sip.example.com')
)
phoneB = snl.SIPPhoneClass()(
ua=dict(proxy='1.2.3.4', aor='sip:+33987654321@sip.example.com')
)
dialog = phoneA.invite(phoneB)
if dialog:
phoneB.bye(dialog)