~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.1.0/tests/pjsua/scripts-recvfrom/100_simple.py

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: 100_simple.py 3284 2010-08-18 07:38:48Z bennylp $
2
 
import inc_sip as sip
3
 
import inc_sdp as sdp
4
 
 
5
 
pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
6
 
        "--auto-update-nat=0"
7
 
 
8
 
req1 = sip.RecvfromTransaction("Registration", 200,
9
 
                                include=["REGISTER sip"], 
10
 
                                exclude=["Authorization"],
11
 
                                resp_hdr=["Server: Snake Registrar", "Expires: 221", "Contact: sip:localhost"],
12
 
                                expect="registration success"
13
 
                          )
14
 
 
15
 
recvfrom_cfg = sip.RecvfromCfg("Simple registration test",
16
 
                               pjsua, [req1])