summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-sendto/159_no_rport_nit.py
blob: 2af9ab1ac0f332256220d53e80618cee55e00217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id$
import inc_sip as sip
import inc_sdp as sdp

# Ticket http://trac.pjsip.org/repos/ticket/718
# RTC doesn't put rport in Via, and it is reported to have caused segfault.
#
complete_msg = \
"""MESSAGE sip:localhost SIP/2.0
Via: SIP/2.0/UDP localhost:$LOCAL_PORT;branch=z9hG4bK$BRANCH
From: <sip:tester@localhost>;tag=as2858a32c
To: <sip:pjsua@localhost>
Call-ID: 123@localhost
CSeq: 1 MESSAGE
Max-Forwards: 70
Content-Length: 11
Content-Type: text/plain

Hello world
"""


sendto_cfg = sip.SendtoCfg( "RTC no rport", "--null-audio --auto-answer 200", 
			    "", 200, complete_msg=complete_msg)