blob: 2af9ab1ac0f332256220d53e80618cee55e00217 [file] [log] [blame]
Benny Prijonof17942e2009-02-06 08:44:23 +00001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Ticket http://trac.pjsip.org/repos/ticket/718
6# RTC doesn't put rport in Via, and it is reported to have caused segfault.
7#
8complete_msg = \
9"""MESSAGE sip:localhost SIP/2.0
10Via: SIP/2.0/UDP localhost:$LOCAL_PORT;branch=z9hG4bK$BRANCH
11From: <sip:tester@localhost>;tag=as2858a32c
12To: <sip:pjsua@localhost>
13Call-ID: 123@localhost
14CSeq: 1 MESSAGE
15Max-Forwards: 70
16Content-Length: 11
17Content-Type: text/plain
18
19Hello world
20"""
21
22
23sendto_cfg = sip.SendtoCfg( "RTC no rport", "--null-audio --auto-answer 200",
24 "", 200, complete_msg=complete_msg)
25