Module: kamailio
Branch: master
Commit: 24afe136361402f49f62aadc4401706c77a6b253
URL: https://github.com/kamailio/kamailio/commit/24afe136361402f49f62aadc4401706…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-12-13T16:07:55+01:00
core: internal flag to mark sip request if there is a route for next hop
---
Modified: src/core/parser/msg_parser.h
---
Diff: https://github.com/kamailio/kamailio/commit/24afe136361402f49f62aadc4401706…
Patch: https://github.com/kamailio/kamailio/commit/24afe136361402f49f62aadc4401706…
---
diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h
index 0b0f5044ed..f3ea088eb8 100644
--- a/src/core/parser/msg_parser.h
+++ b/src/core/parser/msg_parser.h
@@ -109,6 +109,7 @@ typedef enum request_method {
#define FL_USE_XAVP_VIA_FIELDS (1<<22) /*!< use xavp fields for local via attrs */
#define FL_MSG_NOREPLY (1<<23) /*!< do not send sip reply for request */
#define FL_SIPTRACE (1<<24) /*!< message to be traced in stateless replies */
+#define FL_ROUTE_ADDR (1<<25) /*!< request has Route address for next hop */
/* WARNING: Value (1 << 28) is temporarily reserved for use in kamailio call_control
* module (flag FL_USE_CALL_CONTROL )! */
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
added new function del_destination that deletes sip address from list
added add_destination module functions for kamailio.cfg
added counter parameter for attempt count. after count pass, module dont try until it adds again.
added kemi interfaces both of them
added lock to stack
added find_destination function
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2133
-- Commit Summary --
* keepalive : added new function del_destination and added .cfg functions
-- File Changes --
M src/modules/keepalive/api.h (4)
M src/modules/keepalive/keepalive.h (10)
M src/modules/keepalive/keepalive_api.c (117)
M src/modules/keepalive/keepalive_core.c (14)
M src/modules/keepalive/keepalive_mod.c (93)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2133.patchhttps://github.com/kamailio/kamailio/pull/2133.diff
--
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/pull/2133
Module: kamailio
Branch: master
Commit: e8bd86d764eca0b9554f9eee665ba786d76230e7
URL: https://github.com/kamailio/kamailio/commit/e8bd86d764eca0b9554f9eee665ba78…
Author: Yasin CANER <caner_yaso(a)hotmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-12-12T12:06:24+01:00
keepalive : added new function del_destination and added cfg functions (#2133)
* keepalive : added new function del_destination and added .cfg functions
added new function del_destination that deletes sip address from list
added add_destination module functions for kamailio.cfg
added counter parameter for attempt count. after count pass, module dont try until it adds again.
added kemi interfaces both of them
added lock to stack
added find_destination function
* keepalive : fixed function names and re-placed un/lock functions
fixed function names and re-placed un/lock functions
* keepalive : added doc for exported new functions ka_add_destination and ka_del_destination [skip ci]
added documents for exported new function ka_add_destination and ka_del_destination
renamed in documents from is_alive to ka_is_alive
added missing rpc command in documents
---
Modified: src/modules/keepalive/api.h
Modified: src/modules/keepalive/doc/keepalive.xml
Modified: src/modules/keepalive/doc/keepalive_admin.xml
Modified: src/modules/keepalive/keepalive.h
Modified: src/modules/keepalive/keepalive_api.c
Modified: src/modules/keepalive/keepalive_core.c
Modified: src/modules/keepalive/keepalive_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/e8bd86d764eca0b9554f9eee665ba78…
Patch: https://github.com/kamailio/kamailio/commit/e8bd86d764eca0b9554f9eee665ba78…
Module: kamailio
Branch: master
Commit: ae08b5955935466c401709903b38491aba7ec33e
URL: https://github.com/kamailio/kamailio/commit/ae08b5955935466c401709903b38491…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-12-12T08:46:16+01:00
modules: readme files regenerated - tm ... [skip ci]
---
Modified: src/modules/tm/README
---
Diff: https://github.com/kamailio/kamailio/commit/ae08b5955935466c401709903b38491…
Patch: https://github.com/kamailio/kamailio/commit/ae08b5955935466c401709903b38491…
---
diff --git a/src/modules/tm/README b/src/modules/tm/README
index 3607b3969b..4b23eacb58 100644
--- a/src/modules/tm/README
+++ b/src/modules/tm/README
@@ -1937,17 +1937,20 @@ branch_route[1] {
the only way a script can add a new transaction in an atomic way.
Typically, it is used to deploy a UAS.
- Note that any flag operations (e.g. for accounting) after this function
- has been called will be ignored. You can use the the tmx module
- function t_flush_flags() to flush the altered flags to the already
- created transaction.
+ Note: once the t_newtran() is executed, the new message flag operations
+ (i.e., setflag() and resetflag()) are not syncronized to the
+ transaction, being stored only in the private memory SIP message
+ structure. Use the tmx module function t_flush_flags() to synchronize
+ the modified message flags to the already created transaction.
Example 1.56. t_newtran usage
...
if (t_newtran()) {
- log("UAS logic");
+ xlog("the transaction has been created\n");
t_reply("999","hello");
-} else sl_reply_error();
+} else {
+ sl_reply_error();
+}
...
See misc/examples/mixed/uas.cfg for more examples.
Module: kamailio
Branch: master
Commit: 9a0c850f98063da145120f90d2c5c2a43e76b976
URL: https://github.com/kamailio/kamailio/commit/9a0c850f98063da145120f90d2c5c2a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-12-12T08:42:06+01:00
tm: clarification that the sip message flags operations after t_newtran()
- they are not reflected in transaction, only in local sip message
structure
---
Modified: src/modules/tm/doc/functions.xml
---
Diff: https://github.com/kamailio/kamailio/commit/9a0c850f98063da145120f90d2c5c2a…
Patch: https://github.com/kamailio/kamailio/commit/9a0c850f98063da145120f90d2c5c2a…
---
diff --git a/src/modules/tm/doc/functions.xml b/src/modules/tm/doc/functions.xml
index 82647117cd..489147afd1 100644
--- a/src/modules/tm/doc/functions.xml
+++ b/src/modules/tm/doc/functions.xml
@@ -303,19 +303,22 @@ branch_route[1] {
way. Typically, it is used to deploy a UAS.
</para>
<para>
- Note that any flag operations (e.g. for accounting) after this
- function has been called will be ignored. You can use the the tmx
- module function t_flush_flags() to flush the altered flags to the
- already created transaction.
+ Note: once the t_newtran() is executed, the new message flag operations
+ (i.e., setflag() and resetflag()) are not syncronized to the transaction,
+ being stored only in the private memory SIP message structure. Use the
+ tmx module function t_flush_flags() to synchronize the modified message
+ flags to the already created transaction.
</para>
<example>
<title><function>t_newtran</function> usage</title>
<programlisting>
...
-if (t_newtran()) {
- log("UAS logic");
- t_reply("999","hello");
-} else sl_reply_error();
+if (t_newtran()) {
+ xlog("the transaction has been created\n");
+ t_reply("999","hello");
+} else {
+ sl_reply_error();
+}
...
</programlisting>
</example>