sipp icon indicating copy to clipboard operation
sipp copied to clipboard

rtpstream files not read during startup in 3.7

Open wdoekes opened this issue 4 years ago • 1 comments

3.6:

$ ~walter/src/sipp/sipp -m 1 -sf ~walter/srcelf/sipp-scenarios/out-in/iinv-o200-obye.xml -i 127.0.0.2
2021-12-03	09:02:02.723441	1638518522.723441: Cannot read/cache rtpstream file beep_1sec_50x160b.alaw

3.7:

$ ~walter/src/sipp/sipp -m 1 -sf ~walter/srcelf/sipp-scenarios/out-in/iinv-o200-obye.xml -i 127.0.0.2
... runs fine ... until it needs the alaw

Also: for pcaps we tried reading the scenario file directory instead of cwd. Maybe we should too for the rtpstream audio.

wdoekes avatar Dec 03 '21 08:12 wdoekes

I can't trivially reproduce the 'Cannot read/cache' behaviour on 3.6.1:

17:29:43 > $ ./sipp -v | head -n 2  

 SIPp v3.6.1-RTPSTREAM.
                                                                                                                                                                                                                   
17:29:46 > $ grep rtp_stream rtp.xml
    <exec rtp_stream=”file.wav” />
                                                                                                                                                                                                                   
17:29:48 > $ ls file.wav
ls: cannot access 'file.wav': No such file or directory
                                                                                                                                                                                                                   
17:30:29 > $ ./sipp -m 1 -sf rtp.xml 127.0.0.8
Resolving remote host '127.0.0.8'... Done.
------------------------------ Scenario Screen -------- [1-9]: Change Screen --
  Call rate (length)   Port   Total-time  Total-calls  Remote-host
  10.0(0 ms)/1.000s   5060       0.10 s            1  127.0.0.8:5060(UDP)

  Call limit 1 hit, 0.0 s period          0 ms scheduler resolution            
  0 calls (limit 30)                      Peak was 1 calls, after 0 s
  0 Running, 2 Paused, 0 Woken up
  0 dead call msg (discarded)             0 out-of-call msg (discarded)
  0 open sockets                          0/0/0 UDP errors (send/recv/cong)

                                 Messages  Retrans   Timeout   Unexpected-Msg
      INVITE ---------->         1         0         0                         
         100 <----------         0         0         0         1               
         180 <----------         0         0         0         0               
         183 <----------         0         0         0         0               
         200 <----------  E-RTD1 0         0         0         0               
         ACK ---------->         0         0                                   
       Pause [      0ms]         0                             0        
         BYE ---------->         0         0         0                         
         200 <----------         0         0         0         0               

------------------------------ Test Terminated --------------------------------
----------------------------- Statistics Screen ------- [1-9]: Change Screen --
  Start Time             | 2023-04-01	17:30:32.919839	1680366632.919839         
  Last Reset Time        | 2023-04-01	17:30:33.031317	1680366633.031317         
  Current Time           | 2023-04-01	17:30:33.032663	1680366633.032663         
-------------------------+---------------------------+--------------------------
  Counter Name           | Periodic value            | Cumulative value
-------------------------+---------------------------+--------------------------
  Elapsed Time           | 00:00:00:001000           | 00:00:00:001000          
  Call Rate              |    0.000 cps              |    8.929 cps             
-------------------------+---------------------------+--------------------------
  Incoming calls created |        0                  |        0                 
  Outgoing calls created |        0                  |        1                 
  Total Calls created    |                           |        1                 
  Current Calls          |        0                  |                          
-------------------------+---------------------------+--------------------------
  Successful call        |        0                  |        0                 
  Failed call            |        0                  |        1                 
-------------------------+---------------------------+--------------------------
  Response Time 1        | 00:00:00:000000           | 00:00:00:000000          
  Call Length            | 00:00:00:000000           | 00:00:00:000000          
------------------------------ Test Terminated --------------------------------
2023-04-01	17:30:33.027588	1680366633.027588: Aborting call on unexpected message for Call-Id '[email protected]': while expecting '100' (index 1), received 'INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-141554-1-0
From: sipp <sip:[email protected]:5060>;tag=141554SIPpTag001
To: service <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 1 INVITE
Contact: sip:[email protected]:5060
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length:   129

v=0
o=user1 53655765 2353687637 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 6000 RTP/AVP 0
a=rtpmap:0 PCMU/8000
'

(rtp.xml is just the uac built-in scenario with <exec rtp_stream=”file.wav” /> in the final recv block)

Do you have a commit + XML that makes this reproducible?

rkday avatar Apr 01 '23 16:04 rkday