Changeset 3259 for pjproject/trunk
- Timestamp:
- Aug 9, 2010 7:31:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/pjsua/mod_recvfrom.py
r2370 r3259 21 21 last_cseq = 0 22 22 last_method = "" 23 last_call_id = "" 23 24 for t in cfg_file.recvfrom_cfg.transaction: 24 25 # Print transaction title … … 36 37 cseq = 0 37 38 method = last_method 38 while cseq <= last_cseq and method == last_method: 39 request, src_addr = dlg.wait_msg_from(10) 39 call_id = last_call_id 40 while cseq <= last_cseq and method == last_method and call_id == last_call_id: 41 request, src_addr = dlg.wait_msg_from(30) 40 42 if request==None or request=="": 41 43 raise TestError("Timeout waiting for request") … … 44 46 cseq_hval = cseq_hval.split(" ")[0] 45 47 cseq = int(cseq_hval) 48 call_id = sip.get_header(request, "Call-ID") 46 49 last_cseq = cseq 47 50 last_method = method 48 51 else: 49 request, src_addr = dlg.wait_msg_from( 10)52 request, src_addr = dlg.wait_msg_from(30) 50 53 if request==None or request=="": 51 54 raise TestError("Timeout waiting for request")
Note: See TracChangeset
for help on using the changeset viewer.