Hello,<br>
I wanted to generate "Authorized REGISTER" after receiving "401<br>
unauthorized" response from upstream server by my kamailio core . I could<br>
assign new values for many headers like this($uac_req(ruri)="sip:" +<br>
$var(uri); ) but it was impossible to assign new value for Common Sequence<br>
header .it wasn't defined in source codes .<br>
With your permission I solved my problem with modification in (uac.s and<br>
uac_send.c source code) then I recompiled kamailio core again. after<br>
changes I can assign new value to CSeq header ( $uac_req(cseq)= $(cs{s.int})<br>
+ 1;)  and my problem solved.<br>
with this solution upstream server accepts my response because CSeq is more<br>
than "401 unauthorized " response from its side.<br>
If you would like I can send my modifications and configuration file .<br>
thanks in advance<br>
<br>
<br>
On Sat, Dec 15, 2018 at 2:55 PM Henning Westerholt <notifications@github.com><br>
wrote:<br>
<br>
> Can you give more details about the expected behavior and your<br>
> configuration? If you need more help in debugging it, it would be good to<br>
> discuss it first on the sr-users e-mail list<br>
><br>
> —<br>
> You are receiving this because you authored the thread.<br>
> Reply to this email directly, view it on GitHub<br>
> <https://github.com/kamailio/kamailio/issues/1768#issuecomment-447561420>,<br>
> or mute the thread<br>
> <https://github.com/notifications/unsubscribe-auth/Arw_NixyfCM_xKcxPyZ2JS_z8pSpf7jJks5u5NwWgaJpZM4ZUmBV><br>
> .<br>
><br>


<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/1768#issuecomment-447624730">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZYvL8djxf5BCpoj-pm-b4emQE80Sks5u5f7ogaJpZM4ZUmBV">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZaffgILD0cxyWubMOU8uDfVQ2-cvks5u5f7ogaJpZM4ZUmBV.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":"@maryamb99 in #1768: Hello,\nI wanted to generate \"Authorized REGISTER\" after receiving \"401\nunauthorized\" response from upstream server by my kamailio core . I could\nassign new values for many headers like this($uac_req(ruri)=\"sip:\" +\n$var(uri); ) but it was impossible to assign new value for Common Sequence\nheader .it wasn't defined in source codes .\nWith your permission I solved my problem with modification in (uac.s and\nuac_send.c source code) then I recompiled kamailio core again. after\nchanges I can assign new value to CSeq header ( $uac_req(cseq)= $(cs{s.int})\n+ 1;)  and my problem solved.\nwith this solution upstream server accepts my response because CSeq is more\nthan \"401 unauthorized \" response from its side.\nIf you would like I can send my modifications and configuration file .\nthanks in advance\n\n\nOn Sat, Dec 15, 2018 at 2:55 PM Henning Westerholt \u003cnotifications@github.com\u003e\nwrote:\n\n\u003e Can you give more details about the expected behavior and your\n\u003e configuration? If you need more help in debugging it, it would be good to\n\u003e discuss it first on the sr-users e-mail list\n\u003e\n\u003e —\n\u003e You are receiving this because you authored the thread.\n\u003e Reply to this email directly, view it on GitHub\n\u003e \u003chttps://github.com/kamailio/kamailio/issues/1768#issuecomment-447561420\u003e,\n\u003e or mute the thread\n\u003e \u003chttps://github.com/notifications/unsubscribe-auth/Arw_NixyfCM_xKcxPyZ2JS_z8pSpf7jJks5u5NwWgaJpZM4ZUmBV\u003e\n\u003e .\n\u003e\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1768#issuecomment-447624730"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1768#issuecomment-447624730",
"url": "https://github.com/kamailio/kamailio/issues/1768#issuecomment-447624730",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>