<pre><code>                        $var(rc) = save("location", 0x04);
                        if (!$var(rc)) {
                                xlog("L_ERR", "-- REGISTRAR: failed to save registration: $tu => UA: $ua, IP: $si:$sp, Caller-ID: $ci, CSeq: $cs, Expiry: $hdr(Expires), Contact $ct, Return code: $var(rc)\n");
                                sl_reply_error();
                                exit;
                        }

                        if ($hdr(Expires) == "") {
                                $var(expire) = $sel(contact.expires);
                        } else {
                                $var(expire) = $hdr(Expires);
                        }
                        $var(regtime) = $xavp(ulrcd[0]=>expires);

</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/issues/1834#issuecomment-460574714">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZT3tB5Ks5RL-tJxhYQIfB4RxnXoqks5vKVN1gaJpZM4ahAgG">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZcTNhAIYsWetDx50-c6Bp5EHO8vVks5vKVN1gaJpZM4ahAgG.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@oej in #1834: ```\r\n                        $var(rc) = save(\"location\", 0x04);\r\n                        if (!$var(rc)) {\r\n                                xlog(\"L_ERR\", \"-- REGISTRAR: failed to save registration: $tu =\u003e UA: $ua, IP: $si:$sp, Caller-ID: $ci, CSeq: $cs, Expiry: $hdr(Expires), Contact $ct, Return code: $var(rc)\\n\");\r\n                                sl_reply_error();\r\n                                exit;\r\n                        }\r\n\r\n                        if ($hdr(Expires) == \"\") {\r\n                                $var(expire) = $sel(contact.expires);\r\n                        } else {\r\n                                $var(expire) = $hdr(Expires);\r\n                        }\r\n                        $var(regtime) = $xavp(ulrcd[0]=\u003eexpires);\r\n\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1834#issuecomment-460574714"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1834#issuecomment-460574714",
"url": "https://github.com/kamailio/kamailio/issues/1834#issuecomment-460574714",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>