301_ice_public_b.py 1.0 KB

123456789101112131415161718192021222324
  1. #
  2. from inc_cfg import *
  3. # This test:
  4. # to make call with ICE but without STUN.
  5. # Note:
  6. # - need --dis-codec to make INVITE packet less than typical MTU
  7. uas_args = "--null-audio --id=\"<sip:test1@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test1 --password=test1 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g --log-file callee.log"
  8. uac_args = "--null-audio --id=\"<sip:test2@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test2 --password=test2 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g --log-file caller.log"
  9. test_param = TestParam(
  10. "ICE via public internet with no STUN",
  11. [
  12. InstanceParam( "callee", uas_args,
  13. uri="<sip:test1@pjsip.org>",
  14. have_reg=True, have_publish=False),
  15. InstanceParam( "caller", uac_args,
  16. uri="<sip:test2@pjsip.org>",
  17. have_reg=True, have_publish=False),
  18. ]
  19. )