Module: kamailio
Branch: master
Commit: 391dce68f712d7b38eb48188f3ae2413da0f70c6
URL:
https://github.com/kamailio/kamailio/commit/391dce68f712d7b38eb48188f3ae241…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-01-10T14:25:13+01:00
core: keep names for uac cseq helper headers in cfg env
- shared by dialog and tm for cseq updates after uac auth
---
Modified: src/core/srapi.c
Modified: src/core/srapi.h
---
Diff:
https://github.com/kamailio/kamailio/commit/391dce68f712d7b38eb48188f3ae241…
Patch:
https://github.com/kamailio/kamailio/commit/391dce68f712d7b38eb48188f3ae241…
---
diff --git a/src/core/srapi.c b/src/core/srapi.c
index e01659b..2a2b7ec 100644
--- a/src/core/srapi.c
+++ b/src/core/srapi.c
@@ -56,6 +56,10 @@ static sr_cfgenv_t _sr_cfgenv;
void sr_cfgenv_init(void)
{
memset(&_sr_cfgenv, 0, sizeof(sr_cfgenv_t));
+ _sr_cfgenv.uac_cseq_auth.s = "P-K-CSeq-Auth";
+ _sr_cfgenv.uac_cseq_auth.len = strlen(_sr_cfgenv.uac_cseq_auth.s);
+ _sr_cfgenv.uac_cseq_refresh.s = "P-K-CSeq-Refresh";
+ _sr_cfgenv.uac_cseq_refresh.len = strlen(_sr_cfgenv.uac_cseq_refresh.s);
}
/**
diff --git a/src/core/srapi.h b/src/core/srapi.h
index d480fbf..e415537 100644
--- a/src/core/srapi.h
+++ b/src/core/srapi.h
@@ -31,6 +31,8 @@ sr_generate_callid_f sr_get_callid_func(void);
typedef int (*sr_cseq_update_f)(sip_msg_t*);
typedef struct sr_cfgenv {
sr_cseq_update_f cb_cseq_update;
+ str uac_cseq_auth;
+ str uac_cseq_refresh;
} sr_cfgenv_t;
void sr_cfgenv_init(void);