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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Returns a sequence of the required header filed names for the given
SIP method. Only RFC3261 are known yet.

        def get_req_hfh_dict(method):
	"""Returns a sequence of the required header filed names for the given
	SIP method. Only RFC3261 are known yet.
	"""
	man_req_hfh = ['Call-ID', 'CSeq', 'Content-Length', 'Max-Forwards', 'From',\
					'To', 'Via']
	req_hfh_dict = {'invite': ['Call-ID', 'CSeq', 'Contact', 'Content-Length',\
								'From', 'Max-Forwards', 'Supported', 'To',\
								'Via', ], \
					'ack': man_req_hfh, \
					'bye': man_req_hfh, \
					'register': man_req_hfh, \
					'cancel': man_req_hfh, \
					'options': ['Accept', 'Call-ID' , 'Content-Length', 'CSeq',\
							'From', 'Max-Forwards', 'To', 'Via'], \
					'refer': ['Allow', 'Call-ID', 'Contact', 'CSeq', 'From', \
							'Max-Forwards', 'To', 'Via']}
	if req_hfh_dict.has_key(method.lower()):
		return req_hfh_dict[method.lower()]
	else:
		return None
        


src/s/f/sftf-HEAD/TestCase.py   sftf(Download)
			if isinstance(Message, SipRequest):
				mes_req = True
				man_hfh = Helper.get_req_hfh_dict(Message.method)
			elif isinstance(Message, SipReply):
				mes_req = False