[sr-dev] [kamailio/kamailio] assign CSeq header for REGISTER generation (#1768)

maryamb99 notifications at github.com
Sun Dec 16 09:06:00 CET 2018


Hello,
I wanted to generate "Authorized REGISTER" after receiving "401
unauthorized" response from upstream server by my kamailio core . I could
assign new values for many headers like this($uac_req(ruri)="sip:" +
$var(uri); ) but it was impossible to assign new value for Common Sequence
header .it wasn't defined in source codes .
With your permission I solved my problem with modification in (uac.s and
uac_send.c source code) then I recompiled kamailio core again. after
changes I can assign new value to CSeq header ( $uac_req(cseq)= $(cs{s.int})
+ 1;)  and my problem solved.
with this solution upstream server accepts my response because CSeq is more
than "401 unauthorized " response from its side.
If you would like I can send my modifications and configuration file .
thanks in advance


On Sat, Dec 15, 2018 at 2:55 PM Henning Westerholt <notifications at github.com>
wrote:

> Can you give more details about the expected behavior and your
> configuration? If you need more help in debugging it, it would be good to
> discuss it first on the sr-users e-mail list
>
>> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/kamailio/kamailio/issues/1768#issuecomment-447561420>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/Arw_NixyfCM_xKcxPyZ2JS_z8pSpf7jJks5u5NwWgaJpZM4ZUmBV>
> .
>


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1768#issuecomment-447624730
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181216/b242a5fc/attachment.html>


More information about the sr-dev mailing list