[sr-dev] git:master:d57f7012: topoh: fixed unmask route issue, if maksing fails for one of the routes

2019-01-07 Thread Balajee
Module: kamailio
Branch: master
Commit: d57f70127c44fd74c459aefc8d2655978b9cb48b
URL: 
https://github.com/kamailio/kamailio/commit/d57f70127c44fd74c459aefc8d2655978b9cb48b

Author: Balajee 
Committer: Balajee 
Date: 2018-12-23T23:27:49+05:30

topoh: fixed unmask route issue, if maksing fails for one of the routes

---

Modified: src/modules/topoh/th_msg.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/d57f70127c44fd74c459aefc8d2655978b9cb48b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d57f70127c44fd74c459aefc8d2655978b9cb48b.patch

---

diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c
index 2ba5688395..9cf87aa8c6 100644
--- a/src/modules/topoh/th_msg.c
+++ b/src/modules/topoh/th_msg.c
@@ -709,7 +709,10 @@ int th_unmask_route(sip_msg_t *msg)
 
if(th_get_uri_param_value(>nameaddr.uri, 
_uparam_name,
)<0 || eval.len<=0)
-   return -1;
+   {
+   rr = rr->next;
+   continue;
+   }
 
out.s = th_mask_decode(eval.s, eval.len,
_uparam_prefix, 0, 
);


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] kamailio can't support send Rx_AAR for origin call (#1793)

2019-01-07 Thread lsm808
Hi All,

When kamailio(kamailio-5.0) receive 200 OK message, we need to send Rx_AAR for 
origin and term call.

Rx_AAR("MT_aar_reply", "origin","",2); for origin call
Rx_AAR("MT_aar_reply", "term","",2); for term call.

But from source code ims_qos_mod.c, we see lots of part like below to not 
support for a request.
Even we comments them, there are still lots of issues, could we support the 
scenarios like below:

when kamailio receive 200 OK, we can send Rx_AAR for term and origin call.

 //We don't ever do AAR on request for calling scenario...
if (msg->first_line.type != SIP_REPLY) {
 // Added by vlv
 // LM_DBG("Can't do AAR for call session in 
request\n");
 // return result;
}


-- 
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/1793___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] 5.1.6 tps_redis_load_branch SIGSEGV (#1784)

2019-01-07 Thread Daniel-Constantin Mierla
Can you get the output for gdb commands:

```
frame 1
p *xvbranch1
```

-- 
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/1784#issuecomment-452058260___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] Modules: rtpengine-rtpengine_query exported to ksr routes (#1792)

2019-01-07 Thread Surendra Tiwari




 Pre-Submission Checklist



- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, 
...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] 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)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)

 Checklist:

- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue # (replace  with an open issue number)

 Description


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1792

-- Commit Summary --

  * Modules: rtpengine-rtpengine_query exported to ksr routes

-- File Changes --

M src/modules/rtpengine/rtpengine.c (20)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1792.patch
https://github.com/kamailio/kamailio/pull/1792.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/1792
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] rtpengine - get the rtp stats when using custom id for calls (#1788)

2019-01-07 Thread Surendra Tiwari
@miconda sure. :-)

-- 
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/1788#issuecomment-452038966___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] rtpengine - get the rtpstats when using custom id for calls (#1788)

2019-01-07 Thread Daniel-Constantin Mierla
Try to use a short title for bug reports and feature requests, it is supposed 
to be a 'subject' like meaning, not the explanation of the issue. Add the full 
details of the issue or the feature request in the description of the issue.

I marked it as a feature request. One needs to add a new variable that would 
allow to specify the identifier, something like `$rtpestatsx(idvalue)`.

-- 
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/1788#issuecomment-452037853___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] $sipt(redirection_number) evaluates the value as a numerical value (#1789)

2019-01-07 Thread Daniel-Constantin Mierla
Iirc, this feature was contributed by @sergey-vb, maybe he can take a look 
instead of @tsearle and see what can be done. 

-- 
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/1789#issuecomment-452035884___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] dialog: The result of this check is always false (#1791)

2019-01-07 Thread Jose Luis Verdeguer




 Pre-Submission Checklist



- [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)
- [ ] New feature (non-breaking change which adds new functionality)
- [x] Breaking change (fix or feature that would change existing functionality)

 Checklist:

- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #1783

 Description

The result of this check is always false (or I think so because I always obtain 
0!=8) and the function dlg_new_dialog() is never executed. 

The function dlg_new_dialog() must be executed to save the new dialog. In other 
case the cnxcc module (I don know if there are more modules affected) doesn't 
work.

Can anyone review if this check is important, please? 

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1791

-- Commit Summary --

  * dialog: The result of this check is always false and the function 
dlg_new_dialog() is never executed

-- File Changes --

M src/modules/dialog/dlg_handlers.c (2)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1791.patch
https://github.com/kamailio/kamailio/pull/1791.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/1791
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Pepelux/cnxcc (#1790)

2019-01-07 Thread Jose Luis Verdeguer
Merged #1790 into master.

-- 
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/1790#event-2057950826___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] Pepelux/cnxcc (#1790)

2019-01-07 Thread Jose Luis Verdeguer

 Description


Only a correction in doc file
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1790

-- Commit Summary --

  * cnxcc: New improvement for the cnxcc module. With this changes it is 
possible to account the connect cost for the call. This is useful for calls to 
premium numbers that have connection charges
  * Merge branch 'master' of github.com:kamailio/kamailio into pepelux/cnxcc
  * Merge branch 'master' of github.com:kamailio/kamailio into pepelux/cnxcc
  * Merge branch 'master' of github.com:kamailio/kamailio into pepelux/cnxcc

-- File Changes --


-- Patch Links --

https://github.com/kamailio/kamailio/pull/1790.patch
https://github.com/kamailio/kamailio/pull/1790.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/1790
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:5.2:06610073: acc_json: proper check if the mqueue name is set and the module can be loaded

2019-01-07 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 5.2
Commit: 06610073bb490355d87a774a74716195d3c01192
URL: 
https://github.com/kamailio/kamailio/commit/06610073bb490355d87a774a74716195d3c01192

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2019-01-07T15:36:15+01:00

acc_json: proper check if the mqueue name is set and the module can be loaded

(cherry picked from commit 7ce278d8acc2b9c4b8fa349672826b5511f7)

---

Modified: src/modules/acc_json/acc_json_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/06610073bb490355d87a774a74716195d3c01192.diff
Patch: 
https://github.com/kamailio/kamailio/commit/06610073bb490355d87a774a74716195d3c01192.patch

---

diff --git a/src/modules/acc_json/acc_json_mod.c 
b/src/modules/acc_json/acc_json_mod.c
index 908d7d0eb9..55f2bb11f9 100644
--- a/src/modules/acc_json/acc_json_mod.c
+++ b/src/modules/acc_json/acc_json_mod.c
@@ -115,7 +115,8 @@ static int mod_init(void)
if(output_mqueue_str && (load_mq_api(_api) != 0)) {
LM_ERR("can't load mqueue module API, disabling json acc to 
mqueue\n");
output_mqueue_str = NULL;
-   } else {
+   }
+   if(output_mqueue_str) {
q_name.s = output_mqueue_str;
q_name.len = strlen(output_mqueue_str);
}


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:7ce278d8: acc_json: proper check if the mqueue name is set and the module can be loaded

2019-01-07 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 7ce278d8acc2b9c4b8fa349672826b5511f7
URL: 
https://github.com/kamailio/kamailio/commit/7ce278d8acc2b9c4b8fa349672826b5511f7

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2019-01-07T15:35:34+01:00

acc_json: proper check if the mqueue name is set and the module can be loaded

---

Modified: src/modules/acc_json/acc_json_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/7ce278d8acc2b9c4b8fa349672826b5511f7.diff
Patch: 
https://github.com/kamailio/kamailio/commit/7ce278d8acc2b9c4b8fa349672826b5511f7.patch

---

diff --git a/src/modules/acc_json/acc_json_mod.c 
b/src/modules/acc_json/acc_json_mod.c
index ee3f84bf6b..f1ce4e71f3 100644
--- a/src/modules/acc_json/acc_json_mod.c
+++ b/src/modules/acc_json/acc_json_mod.c
@@ -115,7 +115,8 @@ static int mod_init(void)
if(output_mqueue_str && (load_mq_api(_api) != 0)) {
LM_ERR("can't load mqueue module API, disabling json acc to 
mqueue\n");
output_mqueue_str = NULL;
-   } else {
+   }
+   if(output_mqueue_str) {
q_name.s = output_mqueue_str;
q_name.len = strlen(output_mqueue_str);
}


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:d73ce5b7: modules: readme files regenerated - cnxcc ... [skip ci]

2019-01-07 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: d73ce5b79ee89ee2e83559875418b0587057d29e
URL: 
https://github.com/kamailio/kamailio/commit/d73ce5b79ee89ee2e83559875418b0587057d29e

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2019-01-07T14:16:36+01:00

modules: readme files regenerated - cnxcc ... [skip ci]

---

Modified: src/modules/cnxcc/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/d73ce5b79ee89ee2e83559875418b0587057d29e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d73ce5b79ee89ee2e83559875418b0587057d29e.patch

---

diff --git a/src/modules/cnxcc/README b/src/modules/cnxcc/README
index b20ee01226..24d73ddaf2 100644
--- a/src/modules/cnxcc/README
+++ b/src/modules/cnxcc/README
@@ -4,9 +4,18 @@ Carlos Ruiz Díaz
 
ConexionGroup S.A.
 
+Edited by
+
+Jose Luis Verdeguer
+
+   Zoon Suite
+   
+
Copyright © 2013 Carlos Ruiz Díaz, carlos.ruizd...@gmail.com
 
Copyright © 2014 Carlos Ruiz Díaz, car...@latamvoices.com
+
+   Copyright © 2018 Jose Luis Verdeguer
  __
 
Table of Contents
@@ -26,8 +35,8 @@ Carlos Ruiz Díaz
 
 4. Functions
 
-  4.1. cnxcc_set_max_credit(customer, maxcredit, cps, ipulse,
-  fpulse)
+  4.1. cnxcc_set_max_credit(customer, maxcredit, connect, cps,
+  ipulse, fpulse)
 
   4.2. cnxcc_set_max_time(customer, maxtime)
   4.3. cnxcc_update_max_time(customer, maxtime)
@@ -73,8 +82,8 @@ Chapter 1. Admin Guide
 
4. Functions
 
-4.1. cnxcc_set_max_credit(customer, maxcredit, cps, ipulse,
-fpulse)
+4.1. cnxcc_set_max_credit(customer, maxcredit, connect, cps,
+ipulse, fpulse)
 
 4.2. cnxcc_set_max_time(customer, maxtime)
 4.3. cnxcc_update_max_time(customer, maxtime)
@@ -167,24 +176,27 @@ modparam("cnxcc", "credit_check_period", 1)
 
 4. Functions
 
-   4.1. cnxcc_set_max_credit(customer, maxcredit, cps, ipulse, fpulse)
+   4.1. cnxcc_set_max_credit(customer, maxcredit, connect, cps, ipulse,
+  fpulse)
+
4.2. cnxcc_set_max_time(customer, maxtime)
4.3. cnxcc_update_max_time(customer, maxtime)
4.4. cnxcc_set_max_channel(customer, maxchan)
4.5. cnxcc_terminate_all(customer)
 
-4.1.  cnxcc_set_max_credit(customer, maxcredit, cps, ipulse, fpulse)
+4.1.  cnxcc_set_max_credit(customer, maxcredit, connect, cps, ipulse, fpulse)
 
-   Associates the call with a customer id and sets the max credit, cost
-   per second, initial pulse and final pulse. The discount is calculated
-   in pulses (30/6, 1/1, etc) and subtracted from the pool of credit.
+   Associates the call with a customer id and sets the max credit, connect
+   cost, cost per second, initial pulse and final pulse. The discount is
+   calculated in pulses (30/6, 1/1, etc) and subtracted from the pool of
+   credit.
 
The customer value can be provided as a string or a variable holding a
string.
 
-   The maxcredit and cps can be double (float) or integer values, they
-   have to be provided as static string values of variables holding string
-   values.
+   The maxcredit, connect and cps can be double (float) or integer values,
+   they have to be provided as static string values of variables holding
+   string values.
 
The ipulse and fpulse values are integer values, they can be also given
via variables holding integers.
@@ -196,15 +208,16 @@ modparam("cnxcc", "credit_check_period", 1)
 
Example 1.3. cnxcc_set_max_credit()
 ...
-cnxcc_set_max_credit("john-doe", "100.5", "0.5", "20", "10");
+cnxcc_set_max_credit("john-doe", "100", "3.0", "0.5", 60, 1);
 ...
-$var(customer) = "john-doe-premium"; # customer id
-$var(credit) = "100";   # max credit
-$var(cps)   = "2.00";   # cost per second
-$var(initial_p)   = 30; # initial pulse
-$var(final_p) = 6;  # final pulse
-cnxcc_set_max_credit("$var(customer)", "$var(credit)", "$var(cps)",
-"$var(initial_p)", "$var(final_p)");
+$var(customer)  = "john-doe-premium"; # customer id
+$var(credit)= "100";  # max credit
+$var(connect)   = "3.0";  # connect const
+$var(cps)   = "0.5";  # cost per second
+$var(initial_p) = 60; # initial pulse
+$var(final_p)   = 1;  # final pulse
+cnxcc_set_max_credit("$var(customer)", "$var(credit)", "$var(connect)",
+"$var(cps)", "$var(initial_p)", "$var(final_p)");
 ...
 
 4.2.  cnxcc_set_max_time(customer, maxtime)


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] $sipt(redirection_number) evaluates the value as a numerical value (#1789)

2019-01-07 Thread duarterocha91
Greetings, 

I'm sorry if this isn't the right place to post this

$sipt(redirection_number) from module sipt evaluates the value  of redirection 
number as a numerical value however, it can contain hexadecimal values.

Best Regards

-- 
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/1789___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:c64518a2: cnxcc: New improvement for the cnxcc module. With this changes it is possible to account the connect cost for the call. This is useful for calls to premium numbers that h

2019-01-07 Thread Jose Luis Verdeguer
Module: kamailio
Branch: master
Commit: c64518a25123de77d6104a5c4522eb52ccd6892d
URL: 
https://github.com/kamailio/kamailio/commit/c64518a25123de77d6104a5c4522eb52ccd6892d

Author: Jose Luis Verdeguer 
Committer: Jose Luis Verdeguer 
Date: 2019-01-07T14:06:19+01:00

cnxcc: New improvement for the cnxcc module. With this changes it is possible 
to account the connect cost for the call. This is useful for calls to premium 
numbers that have connection charges

---

Modified: src/modules/cnxcc/cnxcc_check.c
Modified: src/modules/cnxcc/cnxcc_mod.c
Modified: src/modules/cnxcc/cnxcc_mod.h
Modified: src/modules/cnxcc/cnxcc_rpc.c
Modified: src/modules/cnxcc/doc/cnxcc.xml
Modified: src/modules/cnxcc/doc/cnxcc_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/c64518a25123de77d6104a5c4522eb52ccd6892d.diff
Patch: 
https://github.com/kamailio/kamailio/commit/c64518a25123de77d6104a5c4522eb52ccd6892d.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] cnxcc: New improvement for the cnxcc module (#1785)

2019-01-07 Thread Jose Luis Verdeguer
Merged #1785 into master.

-- 
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/1785#event-2057537038___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:5.2:c5216b56: modules: readme files regenerated - modules ... [skip ci]

2019-01-07 Thread Kamailio Dev
Module: kamailio
Branch: 5.2
Commit: c5216b56b396b79e4392770bd438e712caca1576
URL: 
https://github.com/kamailio/kamailio/commit/c5216b56b396b79e4392770bd438e712caca1576

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2019-01-07T12:46:31+01:00

modules: readme files regenerated - modules ... [skip ci]

---

Modified: src/modules/rtpengine/README
Modified: src/modules/websocket/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/c5216b56b396b79e4392770bd438e712caca1576.diff
Patch: 
https://github.com/kamailio/kamailio/commit/c5216b56b396b79e4392770bd438e712caca1576.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git: new commits in branch 5.2

2019-01-07 Thread Daniel-Constantin Mierla
- URL:  
https://github.com/kamailio/kamailio/commit/1133f818461cf2ed6c8bd755543f93b366a02683
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

lib/srdb1: memset db connection structure earlier in db_bind_mod()

(cherry picked from commit 1b014d65e26a99f9f5d4aea1b27949776f083c2d)

- URL:  
https://github.com/kamailio/kamailio/commit/cc51d6c7170ad289c8f521a05470a2eacd05f565
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

tm: reply_received() - simplify locking for processing sip response

- leverage the recursive mutex and skip several zones of unlock/lock,
which can lead to races on delayed processing or fast reply
retransmissions
- related to GH #1613 #1744

(cherry picked from commit 39b89a18a8c357151a173ab02dc95dff1f02715d)

- URL:  
https://github.com/kamailio/kamailio/commit/c9eaace851e91aa75bf979f5092f31894564c6f1
Author: Yasin CANER 
Date:   2019-01-07T12:22:35+01:00

rtpengine : crash is fixed and codec flags added to doc (#1742)

* rtpengine : add information to doc about transcode

rtpengine : add information to doc about transcode parameter

* rtpengine : codec flag crash is fixed
codec-transcode , codec-strip , codec-mask , codec-offer gives crash without 
codec value.It is fixed and  some logs are added for help.

* rtpengine : codec-transcode and other flags are added to doc

codec-transcode , codec-strip , codec-mask , codec-strip are added to doc with 
example.

* rtpengine : str_key_val_prefix is fixed for null values
str_key_val_prefix is fixed for null values

* rtpengine : b parameter is changed with via-branch in document
b parameter is changed with via-branch in document

(cherry picked from commit a9a3ec0214227d272338a827ceb4fd12cea94429)

- URL:  
https://github.com/kamailio/kamailio/commit/3a2d9921dc8a3c8133e7e3bacfba94468f9bbeb6
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

auth_xkeys: clone value before inserting the lump inside auth_xkeys_add()

(cherry picked from commit 01f5ecbc45c236daea62d6638a02c168720c8479)

- URL:  
https://github.com/kamailio/kamailio/commit/f1a22ec8fb62277b627398daaa54be60b9c557b5
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

misc/examples: kamailio-basic-kemi-python.py - use functions for method and 
myself checks

(cherry picked from commit 52c236e6417581b1f0354cc52f2eb5f762bc3b31)

- URL:  
https://github.com/kamailio/kamailio/commit/8e4a914f3530dc37caec0a70d4b06a2326efc60f
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

misc/examples: sample default config with websocket enabled

(cherry picked from commit 45cecdef62b43ea19a8be607faddbe9918b67f06)

- URL:  
https://github.com/kamailio/kamailio/commit/2e81abf1262784e390eb31efa95c5f437bd7051e
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

dialog: store call-id, r-uri, f-uri and t-uri with 0-ending char

- can simplify matching with standard string comparison and regexp

(cherry picked from commit f1ab32ee4a0bf64017a0b05f2013b81d37d50208)

- URL:  
https://github.com/kamailio/kamailio/commit/306d1590ad00f7518a7b7284768e52d1a35131f7
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

misc/example/kemi: merge condition lines in kamailio-basic-kemi-python.py

- fix syntax error

(cherry picked from commit beb99b3e4911506246bdd4eaed9aae582232eb84)

- URL:  
https://github.com/kamailio/kamailio/commit/2405ed822068e796caf0ef0f8b04558cdb4a9bfa
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

app_jsdt: updated duktape js engine to v2.3.0

(cherry picked from commit f24487568c76b7e4af70698e246ad67c2cee2f96)

- URL:  
https://github.com/kamailio/kamailio/commit/4b22810de302ef26a7c74cb868c33be183e8f114
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

misc/examples/kemi/kamailio-basic-kemi-jsdt.js: use functions to match methods 
and myself

(cherry picked from commit 3991bcf5541d22d3a7ccaa3f89a9e0d189fd41b8)

- URL:  
https://github.com/kamailio/kamailio/commit/7c8d57dfcfbab6d81ed8cb118cab834e3ef2c016
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

misc/examples/kemi/kamailio-basic-kemi-lua.lua: fix condition on user agent

(cherry picked from commit c3f3f088cdcff566970c8af0e07e7ae5abb50504)

- URL:  
https://github.com/kamailio/kamailio/commit/97c0391a03313622776133f6696ccdabe7772839
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:35+01:00

misc/examples/kemi/kamailio-basic-kemi-python.py: fix condition on user agent

(cherry picked from commit 323e96dbe5f263d66134183de8b2e8cff268431f)

- URL:  
https://github.com/kamailio/kamailio/commit/b5a46dbffd3b9b2f4a61d57fc6aec2c46187b61e
Author: Daniel-Constantin Mierla 
Date:   2019-01-07T12:22:36+01:00

misc/examples/kemi/kamailio-basic-kemi-jsdt.js: removed extra parenthesis

(cherry picked from commit d9c38917ad0fea678449c41a60d52c68b697f8a1)

- URL:  
https://github.com/kamailio/kamailio/commit/cad6b2f034b2eea519be14e04f4979543c80a762
Author: 

[sr-dev] [kamailio/kamailio] while passing different callid then actual for rtpengine_offer, rtpengine_answer and rtpengine_delete, rtpstats will not populate the stastics of rtpengine (#1788)

2019-01-07 Thread Surendra Tiwari


### Description



### Troubleshooting

 Reproduction



 Debugging Data



```
(paste your debugging data here)
```

 Log Messages



```
(paste your log messages here)
```

 SIP Traffic



```
(paste your sip traffic here)
```

### Possible Solutions



### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

```
(paste your output here)
```

* **Operating System**:



```
(paste your output here)
```


-- 
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/1788___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] secfilter: changed char* by str in RPC function params (#1787)

2019-01-07 Thread Jose Luis Verdeguer
Merged #1787 into master.

-- 
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/1787#event-2057312324___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:b586e9a0: secfilter: changed char* by str in RPC function params to avoid memory problems

2019-01-07 Thread Jose Luis Verdeguer
Module: kamailio
Branch: master
Commit: b586e9a03063197d84d7e173d71b6659901e6def
URL: 
https://github.com/kamailio/kamailio/commit/b586e9a03063197d84d7e173d71b6659901e6def

Author: Jose Luis Verdeguer 
Committer: Jose Luis Verdeguer 
Date: 2019-01-07T12:02:54+01:00

secfilter: changed char* by str in RPC function params to avoid memory problems

---

Modified: src/modules/secfilter/secfilter_rpc.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b586e9a03063197d84d7e173d71b6659901e6def.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b586e9a03063197d84d7e173d71b6659901e6def.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:cee4941d: topoh: aded debug message for knowing the reason of no decoding rr

2019-01-07 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: cee4941daf56985d9734263c4b99c33f9ef3a149
URL: 
https://github.com/kamailio/kamailio/commit/cee4941daf56985d9734263c4b99c33f9ef3a149

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2019-01-07T12:01:21+01:00

topoh: aded debug message for knowing the reason of no decoding rr

---

Modified: src/modules/topoh/th_msg.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/cee4941daf56985d9734263c4b99c33f9ef3a149.diff
Patch: 
https://github.com/kamailio/kamailio/commit/cee4941daf56985d9734263c4b99c33f9ef3a149.patch

---

diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c
index 9cf87aa8c6..142eda1580 100644
--- a/src/modules/topoh/th_msg.c
+++ b/src/modules/topoh/th_msg.c
@@ -701,7 +701,7 @@ int th_unmask_route(sip_msg_t *msg)

(strncasecmp(rr->nameaddr.uri.s,th_uri_prefix.s,

th_uri_prefix.len)!=0)))
{
-   LM_DBG("rr %d is not encoded: [%.*s]", 
i,
+   LM_DBG("rr %d is not encoded: [%.*s] - 
missing prefix\n", i,
rr->nameaddr.uri.len, 
rr->nameaddr.uri.s);
rr = rr->next;
continue;
@@ -710,6 +710,8 @@ int th_unmask_route(sip_msg_t *msg)
if(th_get_uri_param_value(>nameaddr.uri, 
_uparam_name,
)<0 || eval.len<=0)
{
+   LM_DBG("rr %d is not encoded: [%.*s] - 
missing param\n", i,
+   rr->nameaddr.uri.len, 
rr->nameaddr.uri.s);
rr = rr->next;
continue;
}


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] topoh: fixed unmask route issue, if maksing fails for one of the routes (#1776)

2019-01-07 Thread Daniel-Constantin Mierla
Merged #1776 into master.

-- 
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/1776#event-2057302490___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] topoh: fixed unmask route issue, if maksing fails for one of the routes (#1776)

2019-01-07 Thread Daniel-Constantin Mierla
It took a bit of time to get back to this one due to winter holidays. The 
request helped to understand, I will merge the patch. Thanks!

-- 
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/1776#issuecomment-451898386___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:5f3e430f: Merge pull request #1776 from balajeesv/routeissue

2019-01-07 Thread GitHub
Module: kamailio
Branch: master
Commit: 5f3e430fa7c769aa8b262dbeaec96fd2e556c08a
URL: 
https://github.com/kamailio/kamailio/commit/5f3e430fa7c769aa8b262dbeaec96fd2e556c08a

Author: Daniel-Constantin Mierla 
Committer: GitHub 
Date: 2019-01-07T11:58:19+01:00

Merge pull request #1776 from balajeesv/routeissue

topoh: fixed unmask route issue, if maksing fails for one of the routes

---

Modified: src/modules/topoh/th_msg.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/5f3e430fa7c769aa8b262dbeaec96fd2e556c08a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/5f3e430fa7c769aa8b262dbeaec96fd2e556c08a.patch

---

diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c
index 2ba5688395..9cf87aa8c6 100644
--- a/src/modules/topoh/th_msg.c
+++ b/src/modules/topoh/th_msg.c
@@ -709,7 +709,10 @@ int th_unmask_route(sip_msg_t *msg)
 
if(th_get_uri_param_value(>nameaddr.uri, 
_uparam_name,
)<0 || eval.len<=0)
-   return -1;
+   {
+   rr = rr->next;
+   continue;
+   }
 
out.s = th_mask_decode(eval.s, eval.len,
_uparam_prefix, 0, 
);


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] cnxcc: New improvement for the cnxcc module (#1785)

2019-01-07 Thread Daniel-Constantin Mierla
It can be merged from my point of view. Thanks!

-- 
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/1785#issuecomment-451895675___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] secfilter: changed char* by str in RPC function params (#1787)

2019-01-07 Thread Daniel-Constantin Mierla
Just a side note for the future: passing structure variables as function 
parameters is not optimized if the structure is large (some compilers and 
static analyzers will complain). `str` is a small structure and it is fine, so 
not something that must to change here. Otherwise is recommended to pass the 
address (the pointer). What I mean is to have:

```
static int get_type(str *ctype)
```

instead of:

```
static int get_type(str ctype)
```

-- 
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/1787#issuecomment-451895137___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] secfilter: changed char* by str in RPC function params (#1787)

2019-01-07 Thread Jose Luis Verdeguer
 Description

Changed char* by str in RPC function params to avoid memory problems
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1787

-- Commit Summary --

  * secfilter: changed char* by str in RPC function params to avoid memory 
problems

-- File Changes --

M src/modules/secfilter/secfilter_rpc.c (52)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1787.patch
https://github.com/kamailio/kamailio/pull/1787.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/1787
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:bbe1e8fa: pkg/kamailio/deb: version set to 5.3.0~dev2

2019-01-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: bbe1e8fa5649182413f12fa931177027f3b75fc8
URL: 
https://github.com/kamailio/kamailio/commit/bbe1e8fa5649182413f12fa931177027f3b75fc8

Author: Victor Seva 
Committer: Victor Seva 
Date: 2019-01-07T10:03:03+01:00

pkg/kamailio/deb: version set to 5.3.0~dev2

---

Modified: pkg/kamailio/deb/bionic/changelog
Modified: pkg/kamailio/deb/buster/changelog
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/changelog
Modified: pkg/kamailio/deb/precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
Modified: pkg/kamailio/deb/xenial/changelog

---

Diff:  
https://github.com/kamailio/kamailio/commit/bbe1e8fa5649182413f12fa931177027f3b75fc8.diff
Patch: 
https://github.com/kamailio/kamailio/commit/bbe1e8fa5649182413f12fa931177027f3b75fc8.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:d03bc22f: Makefile.defs: version set to 5.3.0-dev2

2019-01-07 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: d03bc22fdfe657e9408f172989f4d657260017d6
URL: 
https://github.com/kamailio/kamailio/commit/d03bc22fdfe657e9408f172989f4d657260017d6

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2019-01-07T09:45:25+01:00

Makefile.defs: version set to 5.3.0-dev2

---

Modified: src/Makefile.defs

---

Diff:  
https://github.com/kamailio/kamailio/commit/d03bc22fdfe657e9408f172989f4d657260017d6.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d03bc22fdfe657e9408f172989f4d657260017d6.patch

---

diff --git a/src/Makefile.defs b/src/Makefile.defs
index 62708d93a9..4ea09037d5 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -107,7 +107,7 @@ INSTALL_FLAVOUR=$(FLAVOUR)
 VERSION = 5
 PATCHLEVEL = 3
 SUBLEVEL =  0
-EXTRAVERSION = -dev1
+EXTRAVERSION = -dev2
 
 # memory manager switcher
 # 0 - f_malloc (fast malloc)


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] kamailio 5.2 : which is the best way to connect to Kamailio and to manage him?

2019-01-07 Thread Henning Westerholt
Am Montag, 7. Januar 2019, 03:56:34 CET schrieb ybouj...@by-research.be:
> Thanks for your quick answer.
> 
> MIGRATION :
> 
> Regarding migration 4.2 to 5.2 I will check line by line and try to fix it.
> My most issue is the database modules changed and to adapt is taking time.
> 
> DEV :
> 
> Regarding the Dev environment, I am trying to use Go (for cross-platform)
> and kafka connector to get all the events through Database and push
> notification to my automation then if Kamailio upgrade or change any
> structure, I will not be impacted.
> 
> Like this :
> 
>   KAMAILIO 5.2 -> DB MONGODB NoSQL -> Connector -> Transforms -> 
> Converter ->
> Kafka
> 
>   Kafka -> Converter -> Transforms -> Connector  -> DB MONGODB NoSQL ->
> KAMAILIO 5.2
> 
>   I am not sure but if MongoDB is supported by Kamailio 5.2 and if any 
> script
> is available to install it?
> 
> But I have seen into the website at : https://www.kamailio.org/w/features/
> 
>   External Interaction via
>   - RPC control interface – via XMLRPC, JSONRPC, UDP or TCP
> 
>   Extensibility APIs
>   Java SIP Servlet Application Interface – write Java SIP 
> Servlets to 
extent
> your VoIP services and integrate with web services Lua Programming
> Interface
>   JavaScript Programming Interface
>   Managed Code (C#) Programming Interface
>   Python Programming Interface
>   Java Programming Interface
>   Generic Event API via TCP connections
> 
> But I can't find any link to API or other.

Hello Youssef,

have a look to this wiki page on some pointers how to use mongodb with 
Kamailio:

https://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb

About the API question - as Kamailio provides a small core and over 200 
extension modules there are no huge generic API docs. You start by choosing 
the appropriate RPC control interface. Your further process then it depends on 
the modules that you loaded.

Have a look to the respective module documentation (README) to find the 
provided RPC commands from this module. The core provides also some RPC 
commands, they are documented in our wiki.

Best regards,

Henning


-- 
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Kamailio security assessment - https://skalatan.de/de/assessment

___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev