<p></p>
<p>Would be good if I could also improve this to always have the real reason phrase sent.<br>
Having a look at the options.</p>
<pre><code>acc_env.code = code;
if (reply==FAKED_REPLY || reply==NULL) {
        /* code */
        acc_env.code_s.s =
                int2bstr((unsigned long)code, code_buf, &acc_env.code_s.len);
        /* reason */
        acc_env.reason.s = error_text(code);                                  
        acc_env.reason.len = strlen(acc_env.reason.s);
</code></pre>

<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/pull/2422#issuecomment-672982260">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNAY2AVOXB2DOG3QI3SALAB7ANCNFSM4PRD42OQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLWQU3DDBI3TQSOHZLSALAB7A5CNFSM4PRD42O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFAOOJ5A.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/pull/2422#issuecomment-672982260",
"url": "https://github.com/kamailio/kamailio/pull/2422#issuecomment-672982260",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>