159_no_rport_nit.py 601 B

123456789101112131415161718192021222324
  1. import inc_sip as sip
  2. import inc_sdp as sdp
  3. # Ticket https://github.com/pjsip/pjproject/issues/718
  4. # RTC doesn't put rport in Via, and it is reported to have caused segfault.
  5. #
  6. complete_msg = \
  7. """MESSAGE sip:localhost SIP/2.0
  8. Via: SIP/2.0/UDP localhost:$LOCAL_PORT;branch=z9hG4bK$BRANCH
  9. From: <sip:tester@localhost>;tag=as2858a32c
  10. To: <sip:pjsua@localhost>
  11. Call-ID: 123@localhost
  12. CSeq: 1 MESSAGE
  13. Max-Forwards: 70
  14. Content-Length: 11
  15. Content-Type: text/plain
  16. Hello world
  17. """
  18. sendto_cfg = sip.SendtoCfg( "RTC no rport", "--null-audio --auto-answer 200",
  19. "", 200, complete_msg=complete_msg)