mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-05 12:53:45 +00:00
Review: https://reviewboard.asterisk.org/r/1891/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
17 lines
476 B
Python
17 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])
|