100_simple.py 469 B

123456789101112131415
  1. import inc_sip as sip
  2. import inc_sdp as sdp
  3. pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
  4. "--auto-update-nat=0"
  5. req1 = sip.RecvfromTransaction("Registration", 200,
  6. include=["REGISTER sip"],
  7. exclude=["Authorization"],
  8. resp_hdr=["Server: Snake Registrar", "Expires: 221", "Contact: sip:localhost"],
  9. expect="registration success"
  10. )
  11. recvfrom_cfg = sip.RecvfromCfg("Simple registration test",
  12. pjsua, [req1])