300_timer_good.py 480 B

12345678910111213141516
  1. import inc_sip as sip
  2. import inc_sdp as sdp
  3. # INVITE session using session timer
  4. pjsua = "--null-audio sip:127.0.0.1:$PORT --use-timer 2 --timer-min-se 100 --timer-se 2000 --no-tcp"
  5. req = sip.RecvfromTransaction("INVITE with session timer", 200,
  6. include=["Session-Expires:\s*2000", "Min-SE:\s*100"],
  7. exclude=[],
  8. resp_hdr=["Session-Expires: 1000;refresher=uac"]
  9. )
  10. recvfrom_cfg = sip.RecvfromCfg("INVITE session using session timer",
  11. pjsua, [req])