import inc_sip as sip import inc_sdp as sdp # Ticket https://github.com/pjsip/pjproject/issues/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: ;tag=as2858a32c To: 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)