Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/159_no_rport_nit.py

raw symbols SCIP
1 import inc_sip as sip
2 import inc_sdp as sdp
3
4 # Ticket https://github.com/pjsip/pjproject/issues/718
5 # RTC doesn't put rport in Via, and it is reported to have caused segfault.
6 #
7 complete_msg = \
8 """MESSAGE sip:localhost SIP/2.0
9 Via: SIP/2.0/UDP localhost:$LOCAL_PORT;branch=z9hG4bK$BRANCH
10 From: <sip:tester@localhost>;tag=as2858a32c
11 To: <sip:pjsua@localhost>
12 Call-ID: 123@localhost
13 CSeq: 1 MESSAGE
14 Max-Forwards: 70
15 Content-Length: 11
16 Content-Type: text/plain
17
18 Hello world
19 """
20
21
22 sendto_cfg = sip.SendtoCfg( "RTC no rport", "--null-audio --auto-answer 200",
23 "", 200, complete_msg=complete_msg)
24