Open Maratk1n opened 1 year ago
It works, but maybe there is a better way.
# make a first call and steal an authorization header so that we can authorize the first time
sipp "127.0.0.1:5060" -sf sipp_scenarios/SimpleUACAuth.xml -inf $TEST_AUTH_INFO \
-s 16504584412 -rsa 127.0.0.1 -nd -m 1
AUTH_HDR=$(grep -o "Proxy-Authorization: .*" $BACK_LOG_FILE | head -1)
TEST_AUTH_INFO=$(mktemp /tmp/test_auth.XXXXXX)
cat <<EOT >> $TEST_AUTH_INFO
[RANDOM]
18885555555*100;[authentication username=88843211 password=SuperPassword];$AUTH_HDR
EOT
# start load
# UACpreAUTH -- scenario with [filed2] in the first INVITE
# [field2] = "Proxy-Authorization: Digest username=..."
sipp -bg "127.0.0.1:5060" -sf $UACpreAUTH -inf $TEST_AUTH_INFO \
-s 16504584412 -rsa 127.0.0.1 -nd -r 100
I want to test performance of Kamailio-based SIP proxy. Kamailio has packets/sec or RPS notation. SIPp option
-r
specifies call rate (in calls per seconds).The problem is that the proxy has authorization, so each call results in 2 requests. Scenario:
I want to know the exact RPS load so that the behavior is controlled.
I tried to fulfill the initial request and copy
Proxy-Authorization
header to set it up in the first request to avoid re-INVITE. But got "nonce expired" error from the proxy.So, is it possible to perform something from this?