ontimeout does not work
Hi,
I have sipp version - SIPp v3.6-dev-112-g8c0e358-TLS-PCAP-RTPSTREAM
I have prepared a UAC scenario where
- User A sends SIP registration
- Gets 401/200 OK and registers
- Sends INVITE
- Waits for 100/180/200
- Sends ACK
- Pauses for 4s and sends BYE
- 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
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
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
"<"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 "<, >"