301_ice_public_a.py 989 B

123456789101112131415161718192021
  1. #
  2. from inc_cfg import *
  3. # Note:
  4. # - need --dis-codec to make INVITE packet less than typical MTU
  5. 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 --stun-srv stun.pjsip.org --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g"
  6. 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 --stun-srv stun.pjsip.org --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g"
  7. test_param = TestParam(
  8. "ICE via public internet",
  9. [
  10. InstanceParam( "callee", uas_args,
  11. uri="<sip:test1@pjsip.org>",
  12. have_reg=True, have_publish=False),
  13. InstanceParam( "caller", uac_args,
  14. uri="<sip:test2@pjsip.org>",
  15. have_reg=True, have_publish=False),
  16. ]
  17. )