Module: kamailio
Branch: master
Commit: 3976224f6bb4b790b1752a00174439a1e2de1665
URL: https://github.com/kamailio/kamailio/commit/3976224f6bb4b790b1752a00174439a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-05-17T13:02:22+02:00
presence_conference: fix compiler warnings #612
> CC (gcc) [M presence_conference.so] pidf.o
> In file included from /usr/include/time.h:27:0,
> from pidf.c:49:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
---
Modified: modules/presence_conference/pidf.c
---
Diff: https://github.com/kamailio/kamailio/commit/3976224f6bb4b790b1752a00174439a…
Patch: https://github.com/kamailio/kamailio/commit/3976224f6bb4b790b1752a00174439a…
---
diff --git a/modules/presence_conference/pidf.c b/modules/presence_conference/pidf.c
index 7af6c82..1f64e14 100644
--- a/modules/presence_conference/pidf.c
+++ b/modules/presence_conference/pidf.c
@@ -41,6 +41,7 @@
#define _BSD_SOURCE 1 /* needed on linux to "fix" the effect
of the above define on
features.h/unistd.h syscall() */
+ #define _DEFAULT_SOURCE 1 /* _BSD_SOURCE is deprecated */
#define _DARWIN_C_SOURCE 1
#else
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
Module: kamailio
Branch: master
Commit: 09470aed719b0fad6c600d9c18a339e343550f33
URL: https://github.com/kamailio/kamailio/commit/09470aed719b0fad6c600d9c18a339e…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-05-17T12:08:14+02:00
lib/srdb1: fix compiler warning #612
> CC (gcc) [L libsrdb1.so.1.0] db_ut.o
> In file included from /usr/include/time.h:27:0,
> from db_ut.c:50:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
---
Modified: lib/srdb1/db_ut.c
---
Diff: https://github.com/kamailio/kamailio/commit/09470aed719b0fad6c600d9c18a339e…
Patch: https://github.com/kamailio/kamailio/commit/09470aed719b0fad6c600d9c18a339e…
---
diff --git a/lib/srdb1/db_ut.c b/lib/srdb1/db_ut.c
index 6b3bad4..3431104 100644
--- a/lib/srdb1/db_ut.c
+++ b/lib/srdb1/db_ut.c
@@ -43,6 +43,7 @@
#define _BSD_SOURCE 1 /* needed on linux to "fix" the effect
* of the above define on
* features.h/unistd.h syscall() */
+ #define _DEFAULT_SOURCE 1 /* _BSD_SOURCE is deprecated */
#else
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
#endif
> CC (gcc) [L libsrdb1.so.1.0] db_ut.o
> In file included from /usr/include/time.h:27:0,
> from db_ut.c:50:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/620
-- Commit Summary --
* lib/srdb1: fix compiler warning
-- File Changes --
M lib/srdb1/db_ut.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/620.patchhttps://github.com/kamailio/kamailio/pull/620.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/620
### Kamailio 4.3.3 and HUAWEI HG8245. Port 1 call port 2. 481 Call/Transaction Does Not Exist. Warning: 399 No Dialog match.
In our network we used several ONT Huawei models. But with one model HUAWEI-EchoLife HG8245 / V1R003C00S205 we have the following problem. When connecting to this device in the POTS ports of the two phones. From the first port we can not call to the second and from the second port can not call to the first port. On the other ONT Huawei devices, there is no such problem. Earlier we had set OpenSIP and this device did not have a problem.
kamailio -v
Version: kamailio 4.3.3 (x86_64/linux) f69971
/var/log/kamailio
`May 16 09:17:14 kamailio /usr/local/sbin/kamailio[12379]: INFO: <script>: Callee '123456' is local - M=INVITE RURI=sip:123456@10.10.10.100 F=sip:654321@10.10.10.100 T=sip:123456@10.10.10.100 IP=10.10.10.200 ID=2n8k823jnikjspj2ipppz3k3i434i38n(a)10.10.10.200
May 16 09:17:14 kamailio /usr/local/sbin/kamailio[12379]: INFO: <script>: Call control: dst user '123456' currently has [0/3] active calls - M=INVITE RURI=sip:123456@10.10.10.100 F=sip:654321@10.10.10.100 T=si
p:123456@10.10.10.100 IP=10.10.10.200 ID=2n8k823jnikjspj2ipppz3k3i434i38n(a)10.10.10.200
May 16 09:17:14 kamailio /usr/local/sbin/kamailio[12379]: INFO: <script>: Normalize source: sip:654321@10.10.10.100 -> sip:654321@10.10.10.100
May 16 09:17:14 kamailio /usr/local/sbin/kamailio[12379]: INFO: <script>: Request leaving server - M=INVITE RURI=sip:123456@10.10.10.200:5060;transport=udp F=sip:654321@10.10.10.100 T=sip:123456@178.168.4.
37 IP=10.10.10.200 ID=2n8k823jnikjspj2ipppz3k3i434i38n(a)10.10.10.200
May 16 09:17:14 kamailio /usr/local/sbin/kamailio[12381]: INFO: <script>: Reply - S=100 D=Trying F=sip:654321@10.10.10.100 T=sip:123456@10.10.10.100 IP=10.10.10.200 ID=2n8k823jnikjspj2ipppz3k3i434i38n(a)10.1
4.197.135
May 16 09:17:14 kamailio /usr/local/sbin/kamailio[12388]: INFO: <script>: Reply - S=481 D=Call/Transaction Does Not Exist F=sip:654321@10.10.10.100 T=sip:123456@10.10.10.100 IP=10.10.10.200 ID=2n8k823jnikj
spj2ipppz3k3i434i38n(a)10.10.10.200
`
sngrep
`2016/05/16 09:17:14.111226 10.10.10.200:5060 -> 10.10.10.100:5060
SIP/2.0 481 Call/Transaction Does Not Exist
Via: SIP/2.0/UDP 10.10.10.100;branch=z9hG4bK85a8.dd95f1d220b2fe3c0978ebefb5e65d9c.0,SIP/2.0/UDP 10.10.10.200:5060;branch=z9hG4bKpszmps0mj00k3z8nj44kck14s;rport=5060
Call-ID: 2n8k823jnikjspj2ipppz3k3i434i38n(a)10.14.197.135
From: "654321"<sip:654321@10.10.10.100>;tag=8isjcssl
To: <sip:123456@10.10.10.100>;tag=0cinjs0z
CSeq: 2 INVITE
Warning: 399 10.10.10.200 "SS100006F143L3557[05552] No Dialog match"
User-Agent: HUAWEI-EchoLife HG8245/V1R003C00S205
Content-Length: 0
`
---
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/624
Module: kamailio
Branch: master
Commit: 472782d2f094b1971543b4d0c3733058d9086d78
URL: https://github.com/kamailio/kamailio/commit/472782d2f094b1971543b4d0c373305…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-17T08:16:12+02:00
cfgutils: added more to docs for route exists functions
---
Modified: modules/cfgutils/README
Modified: modules/cfgutils/doc/cfgutils_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/472782d2f094b1971543b4d0c373305…
Patch: https://github.com/kamailio/kamailio/commit/472782d2f094b1971543b4d0c373305…
---
diff --git a/modules/cfgutils/README b/modules/cfgutils/README
index 8948d05..b634eaf 100644
--- a/modules/cfgutils/README
+++ b/modules/cfgutils/README
@@ -542,7 +542,8 @@ unlock("$rU");
4.17. check_route_exists(route)
- Check if a route block exists
+ Check if a route block exists. It returns true (1) on found and false
+ on not found or error.
Parameters:
@@ -553,7 +554,7 @@ unlock("$rU");
Example 1.21. check_route_exists() usage
...
-if(check_route_exists("FROGJUMP") {
+if(check_route_exists("JUMP") {
$var(jumping_frogs) = 1;
};
...
@@ -563,6 +564,9 @@ if(check_route_exists("FROGJUMP") {
Execute a routing block only if it is defined. If it's not defined,
silently move to the next action in the configuration script.
+ It returns the code of last action in the route block, if that exists,
+ or false if the route doesn't exists or was an error executing it.
+
Parameters:
"name" of a route block in the config file, like "route[FROGJUMP]"
@@ -572,7 +576,9 @@ if(check_route_exists("FROGJUMP") {
Example 1.22. route_if_exists() usage
...
-route_if_exists("PRESENCE_SANTA_CLAUS");
+if(route_if_exists("JUMP")) {
+ exit;
+}
...
4.19. core_hash(string1, string2, size)
diff --git a/modules/cfgutils/doc/cfgutils_admin.xml b/modules/cfgutils/doc/cfgutils_admin.xml
index 0266ab5..3e22fba 100644
--- a/modules/cfgutils/doc/cfgutils_admin.xml
+++ b/modules/cfgutils/doc/cfgutils_admin.xml
@@ -529,7 +529,8 @@ unlock("$rU");
<section id="cfgutils.f.check_route_exists">
<title><function moreinfo="none">check_route_exists(route)</function></title>
<para>
- Check if a route block exists
+ Check if a route block exists. It returns true (1) on found and false on
+ not found or error.
</para>
<para>Parameters:</para>
<para>
@@ -543,7 +544,7 @@ unlock("$rU");
<title><function moreinfo="none">check_route_exists()</function> usage</title>
<programlisting format="linespecific">
...
-if(check_route_exists("FROGJUMP") {
+if(check_route_exists("JUMP") {
$var(jumping_frogs) = 1;
};
...
@@ -556,6 +557,10 @@ if(check_route_exists("FROGJUMP") {
Execute a routing block only if it is defined. If it's not defined, silently
move to the next action in the configuration script.
</para>
+ <para>
+ It returns the code of last action in the route block, if that exists, or
+ false if the route doesn't exists or was an error executing it.
+ </para>
<para>Parameters:</para>
<para>
<quote>name</quote> of a route block in the config file, like <quote>route[FROGJUMP]</quote>
@@ -568,7 +573,9 @@ if(check_route_exists("FROGJUMP") {
<title><function moreinfo="none">route_if_exists()</function> usage</title>
<programlisting format="linespecific">
...
-route_if_exists("PRESENCE_SANTA_CLAUS");
+if(route_if_exists("JUMP")) {
+ exit;
+}
...
</programlisting>
</example>