You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asterisk/res/pjproject/tests/pjsua/scripts-recvfrom/100_simple.py

17 lines
476 B

# $Id$
import inc_sip as sip
import inc_sdp as sdp
pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
"--auto-update-nat=0"
req1 = sip.RecvfromTransaction("Registration", 200,
include=["REGISTER sip"],
exclude=["Authorization"],
resp_hdr=["Server: Snake Registrar", "Expires: 221", "Contact: sip:localhost"],
expect="registration success"
)
recvfrom_cfg = sip.RecvfromCfg("Simple registration test",
pjsua, [req1])