sipp
sipp copied to clipboard
Is possbile to modify authorization header field after authentication function.
Hi, Dear developer: I am trying to using SIPP to simulate some test scenario of VONR/VOLTE. In REGISTRATION process, I use [authentication] to generate to Authorization header in the second REGISTER message. It is configured like below: [authentication [email protected] aka_K=0x11111111111111111111111111111111 aka_OP=0x22222222222222222222222222222222 aka_AMF=0x8000] Sure, it is based on AKA algm, and after calculate, SIPP insert Authorization Header like below: Authorization: Digest username="[email protected]",realm="ims.mnc000.mcc460.3gppnetwork.org",cnonce="238e1f29",nc=00000001,qop=auth,uri="sip:10.196.30.164:5060",nonce="QX/yct5fWguYbJuZEuxWDkRk1bqHHoAAXOXNBCiIlcU=",response="e940437ceb07ae79d49bb011d28809f3",algorithm=AKAv1-MD5 But I want to do some modification for this generated header, I wanto to add parameter "integrity-protected=yes" in the header, and modify parameter "uri" to another value. Is there anyway to do that? By using embeded authencation function, but with some modified parameters?
BR Zhao Zhi
Hi, Just one minute after creating this issue ticket, I found a way to add parameters to the Authorization Header. I need write the [authentication] field like below in csv file. 460004000030003;[authentication [email protected] aka_K=0x11111111111111111111111111111111 aka_OP=0x22222222222222222222222222222222 aka_AMF=0x8000],integrity-protected=yes Just add it following the [authentication]. And use them as [field1] in xml file. But unfortunately, I still do not konw how to modify existed parameter in [authentication], if have tips, please update me, thanks.
BR Zhao Zhi