D-Modem/pjproject-2.11.1/tests/pjsua/scripts-recvfrom/100_simple.py
2021-10-29 14:41:03 -04:00

16 lines
476 B
Python

# $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])