<p>well , is it possible to catch 401 reply  in on_reply_route ?</p>
<p>I think it should be in failure_route but it is impossible because ipsec_create function can be on only on OK replies.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/commit/8f5b70ca81e1d49c926a6174191ffe8d7097e3cc?email_source=notifications&email_token=ABO7UZLZJHUA7EON7ANV7QDQLNSPZA5CNFSM4I2M54BKYY3PNVWWK3TUL52HS4DFVVBW63LNNF2EG33NNVSW45FKMNXW23LFNZ2F62LEZYBBTF5I#commitcomment-35231656">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNNLFMWVYRBJC4DCLDQLNSPZANCNFSM4I2M54BA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZJ24VAN3AUGPNPGYTTQLNSPZA5CNFSM4I2M54BKYY3PNVWWK3TUL52HS4DFVVBW63LNNF2EG33NNVSW45FKMNXW23LFNZ2F62LEZYBBTF5I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/commit/8f5b70ca81e1d49c926a6174191ffe8d7097e3cc?email_source=notifications\u0026email_token=ABO7UZLZJHUA7EON7ANV7QDQLNSPZA5CNFSM4I2M54BKYY3PNVWWK3TUL52HS4DFVVBW63LNNF2EG33NNVSW45FKMNXW23LFNZ2F62LEZYBBTF5I#commitcomment-35231656",
"url": "https://github.com/kamailio/kamailio/commit/8f5b70ca81e1d49c926a6174191ffe8d7097e3cc?email_source=notifications\u0026email_token=ABO7UZLZJHUA7EON7ANV7QDQLNSPZA5CNFSM4I2M54BKYY3PNVWWK3TUL52HS4DFVVBW63LNNF2EG33NNVSW45FKMNXW23LFNZ2F62LEZYBBTF5I#commitcomment-35231656",
"name": "View Commit"
},
"description": "View this Commit on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>