<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Hi!
<div><br /></div>
<div>I’m trying to implement scenario, when OpenSIPS would be a proxy for  IP auth SIP side and username/pass auth other side.</div>
<div>So, call scenario would be like</div>
<div><br /></div>
<div>1. A -> INVITE -> OpenSIPS                                   B</div>
<div>2. A                       OpenSIPS ->       INVITE       -> B</div>
<div>3. A                       OpenSIPS <-         401          <- B</div>
<div>4. A                       OpenSIPS -> INVITE (auth)  -> B</div>
<div>5. A                       OpenSIPS <-          200         <- B</div>
<div>6. A  <- 200 <-    OpenSIPS</div>
<div><br /></div>
<div>But the problem is in CSeq. On step 4, when sending INVITE with Auth CSeq should be changed from original (usually incremented), but on step 6, when replying back to A, it should be original.</div>
<div><br /></div>
<div>I didn’t found better solution, than to manually manipulate with CSeq with append/remove headers.</div>
<div>So, maybe there is more OpenSIPS - wise way of doing this?</div>
</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
Regards, Igor</div>
</body>
</html>