sipp icon indicating copy to clipboard operation
sipp copied to clipboard

ontimeout does not work

Open sharkwsk opened this issue 6 years ago • 2 comments

Hi,

I have sipp version - SIPp v3.6-dev-112-g8c0e358-TLS-PCAP-RTPSTREAM

I have prepared a UAC scenario where

  1. User A sends SIP registration
  2. Gets 401/200 OK and registers
  3. Sends INVITE
  4. Waits for 100/180/200
  5. Sends ACK
  6. Pauses for 4s and sends BYE
  7. De-register the user

In step 4, I would like to timeout after 4s, if User B does not answer (not receiving 200 OK within a certain time) with below

Unfortunately above does not work, jump to the BYE/DE-register sequence.

I run SIPp with below flags ./sipp 192.168.1.1 -bind_local -i 10.10.10.1 -mp 50000 -t u1 -p 5060 -sf register_and_call.xml -inf USER_A.csv -m 1 -trace_msg

If i use global recv_timeout, it works. However the label jump still does not work

Hope you can assist me

Thank You sshark

sharkwsk avatar Mar 22 '20 11:03 sharkwsk

Observations from further troubleshooting

When there is preceding "optional" receive statements, then the timeout/ontimeout does not fire, instead if we have timeout/ontimeout on each of the "optional" statements, timeout works OK and ontimeout label is triggered. Is this desired behavior ?

Attached scenario file does not fire "BYE_AND_DEREGISTER", Instead timeout/ontimeout statements needs to be defined for 1XX optional statements to make it work reg_call.txt

sharkwsk avatar Mar 28 '20 11:03 sharkwsk

"<"recv response="180" optional="true" timeout="4000" ontimeout="BYE_AND_DEREGISTER" next="3" ">" "<"/recv">"

"<"recv response="200" optional="true" timeout="4000" ontimeout="BYE_AND_DEREGISTER" next="3" ">" "<"/recv">"

You can use like above.. if all optional response timeout then send BYE

Note I have added quotes near "<, >"

rakeshgmtke avatar Mar 31 '20 06:03 rakeshgmtke