Module: kamailio
Branch: master
Commit: d236312676a3f7e9a66d5cc904ed6a377f5e36ef
URL:
https://github.com/kamailio/kamailio/commit/d236312676a3f7e9a66d5cc904ed6a3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-07-13T10:18:49+02:00
uac: use cseq update callback exported by dialog via core srapi
---
Modified: modules/uac/auth.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d236312676a3f7e9a66d5cc904ed6a3…
Patch:
https://github.com/kamailio/kamailio/commit/d236312676a3f7e9a66d5cc904ed6a3…
---
diff --git a/modules/uac/auth.c b/modules/uac/auth.c
index 19283a5..867eed7 100644
--- a/modules/uac/auth.c
+++ b/modules/uac/auth.c
@@ -37,6 +37,7 @@
#include "../../hashes.h"
#include "../../dset.h"
#include "../../srapi.h"
+#include "../../parser/parse_cseq.h"
#include "../../modules/tm/tm_load.h"
#include "auth.h"
@@ -476,8 +477,10 @@ int uac_auth(sip_msg_t *msg)
if(t->uas.request) {
t->uas.request->msg_flags |= FL_UAC_AUTH;
cenv = sr_cfgenv_get();
- if(cenv->cseq_update == 1) {
- sr_hdr_add_zz(msg, "P-K-Auth-CSeq", "yes");
+ if(cenv->cb_cseq_update != NULL) {
+ if(cenv->cb_cseq_update(msg)<0) {
+ goto error;
+ }
}
}