Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Returns a string, which contains an SDP description where the
remote side will be on-hold.

        def createDummyBody():
	"""Returns a string, which contains an SDP description where the
	remote side will be on-hold.
	"""
	return ['v=0\r\n', \
			'o=' + str(Config.SC_USER_NAME) + ' ' + str(int(time.time())) + ' ' + str(int(time.time())) + ' IN IP4 ' + str(Config.LOCAL_IP) + '\r\n', \
			's=Dummy on hold SDP\r\n', \
			'c=IN IP4 0.0.0.0\r\n', \
			'm=audio 65534 RTP/AVP 0\r\n', \
			'a=rtpmap:0 PCMU/8000\r\n', \
			'a=recvonly\r\n']
        


src/s/f/sftf-HEAD/Transaction.py   sftf(Download)
			reply.setParsedHeaderValue("Contact", con)
			reply.setHeaderValue("Contact", con.create())
			reply.body = Helper.createDummyBody()
		elif code/100 == 2 and req.method == "REGISTER":
			reply.body = []

src/s/f/sftf-HEAD/TestCase.py   sftf(Download)
			trans = self.getLastTransaction(dia, None)
			mes = trans.message[len(trans.message)-1]
		self.setBody(Helper.createDummyBody(), mes)
		mes.setHeaderValue("Content-Type", "application/sdp\r\n")
 
			ip, port = sock.getsockname()
			sockpair = (sock, None)
		body = Helper.createDummyBody()
		body[2] = body[2].replace("Dummy on hold", "Media dummy")
		body[3] = body[3].replace("0.0.0.0", str(ip))