Kamailio didn't start listening on IP mentioned in Module RTPPROXY parameter [Timeout_Socket](https://kamailio.org/docs/modules/5.1.x/modules/rtpproxy.ht….
Below is my configuration file.
```
loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_tout", 1)
modparam("rtpproxy", "rtpproxy_retr", 2)
modparam("rtpproxy", "timeout_socket", "tcp:127.0.0.1:7725")
```
when I type a commmand on linux
```$ netstat -nlp```
it only shows SIP listening ports. Kamailio should start listening on ```tcp:1270.0.01:7725```
--
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/1597
Module: kamailio
Branch: master
Commit: aede7c4835dd516cea75a5191d1ae6af3460c3c8
URL: https://github.com/kamailio/kamailio/commit/aede7c4835dd516cea75a5191d1ae6a…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-08-31T11:31:46+02:00
modules: readme files regenerated - sipjson ... [skip ci]
---
Modified: src/modules/sipjson/README
---
Diff: https://github.com/kamailio/kamailio/commit/aede7c4835dd516cea75a5191d1ae6a…
Patch: https://github.com/kamailio/kamailio/commit/aede7c4835dd516cea75a5191d1ae6a…
---
diff --git a/src/modules/sipjson/README b/src/modules/sipjson/README
index add1b53f97..525ae98351 100644
--- a/src/modules/sipjson/README
+++ b/src/modules/sipjson/README
@@ -93,6 +93,8 @@ Chapter 1. Admin Guide
'opt' parameter cannot be empty, '0' can be given when only
default attributes are wanted.
+ B - (uppercase B) SIP message body
+ + c - (lowercase c) CSeq attributes
+ + t - (lowercase t) To header attributes
* ovar - name of the output pseduo-variable
This function can be used from ANY_ROUTE.
@@ -105,6 +107,11 @@ sj_serialize("0B", "$var(json)");
4. Output Samples
The content of the output variable is a JSON. Next are some samples.
+ Note that the content might change with future development and this
+ example become outdated, simply print the document when you start
+ testing your config and match the name of the attribute with the name
+ of pseudo-variables to understand what values can be there. Unlike
+ pseudo-variables, the $null values might converted to empty strings.
Example 1.2. sj_serialize output
...
@@ -129,6 +136,7 @@ ing
"ua":"sipsak 0.9.7pre",
"ci":"482215126(a)172.17.0.2",
"rb":""
+ ...
}
...
# the sip message sent to Kamailio:
Module: kamailio
Branch: master
Commit: db3b9dbd48f7bb74abf08b0e97bcac15015df719
URL: https://github.com/kamailio/kamailio/commit/db3b9dbd48f7bb74abf08b0e97bcac1…
Author: Roman Romanchenko <rromanchenko(a)sipwise.com>
Committer: Roman Romanchenko <rromanchenko(a)sipwise.com>
Date: 2018-08-31T12:02:43+03:00
tm: crash on memcpy fix
- in some cases tag is not initialized and lead to crash.
Memory pointer check before writing to added.
---
Modified: src/modules/tm/t_reply.c
---
Diff: https://github.com/kamailio/kamailio/commit/db3b9dbd48f7bb74abf08b0e97bcac1…
Patch: https://github.com/kamailio/kamailio/commit/db3b9dbd48f7bb74abf08b0e97bcac1…
---
diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 474851aa7c..f53625e833 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -299,6 +299,7 @@ inline static int update_totag_set(struct cell *t, struct sip_msg *ok)
for (i=t->fwded_totags; i; i=i->next) {
if (i->tag.len==tag->len
+ && i->tag.s
&& memcmp(i->tag.s, tag->s, tag->len) ==0 ){
/* to tag already recorded */
LM_DBG("to-tag retransmission\n");
- in some cases tag is not initialized and lead to crash.
Memory pointer check before writing to added.
<!-- 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 -->
- [ ] 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
- [ x ] 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:
<!-- 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
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1628
-- Commit Summary --
* tm: crash on memcpy fix
-- File Changes --
M src/modules/tm/t_reply.c (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1628.patchhttps://github.com/kamailio/kamailio/pull/1628.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/1628
Module: kamailio
Branch: master
Commit: 6c5fc21329bac531b64c1350c10e3d0490aefef6
URL: https://github.com/kamailio/kamailio/commit/6c5fc21329bac531b64c1350c10e3d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-08-31T11:20:08+02:00
sipjson: docs - updates to serialize options and sample json section
---
Modified: src/modules/sipjson/doc/sipjson_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/6c5fc21329bac531b64c1350c10e3d0…
Patch: https://github.com/kamailio/kamailio/commit/6c5fc21329bac531b64c1350c10e3d0…
---
diff --git a/src/modules/sipjson/doc/sipjson_admin.xml b/src/modules/sipjson/doc/sipjson_admin.xml
index ccfa868073..f357367086 100644
--- a/src/modules/sipjson/doc/sipjson_admin.xml
+++ b/src/modules/sipjson/doc/sipjson_admin.xml
@@ -93,6 +93,16 @@
B - (uppercase B) SIP message body
</para>
</listitem>
+ <listitem>
+ <para>
+ c - (lowercase c) CSeq attributes
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ t - (lowercase t) To header attributes
+ </para>
+ </listitem>
</itemizedlist>
</listitem>
<listitem>
@@ -120,7 +130,12 @@ sj_serialize("0B", "$var(json)");
<section>
<title>Output Samples</title>
<para>
- The content of the output variable is a JSON. Next are some samples.
+ The content of the output variable is a JSON. Next are some samples. Note
+ that the content might change with future development and this example
+ become outdated, simply print the document when you start testing your
+ config and match the name of the attribute with the name of pseudo-variables
+ to understand what values can be there. Unlike pseudo-variables, the
+ $null values might converted to empty strings.
</para>
<example>
<title><function>sj_serialize</function> output</title>
@@ -146,6 +161,7 @@ sj_serialize("0B", "$var(json)");
"ua":"sipsak 0.9.7pre",
"ci":"482215126(a)172.17.0.2",
"rb":""
+ ...
}
...
# the sip message sent to &kamailio;:
Module: kamailio
Branch: master
Commit: 957b43ddea8dad434736e800a16581d49ccb2478
URL: https://github.com/kamailio/kamailio/commit/957b43ddea8dad434736e800a16581d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-08-31T10:19:06+02:00
tls: docs - some updates to sample tls.cfg
---
Modified: src/modules/tls/tls.cfg
---
Diff: https://github.com/kamailio/kamailio/commit/957b43ddea8dad434736e800a16581d…
Patch: https://github.com/kamailio/kamailio/commit/957b43ddea8dad434736e800a16581d…
---
diff --git a/src/modules/tls/tls.cfg b/src/modules/tls/tls.cfg
index c1a08f6759..dd25abd4ac 100644
--- a/src/modules/tls/tls.cfg
+++ b/src/modules/tls/tls.cfg
@@ -33,13 +33,13 @@ require_certificate = yes
# This is an example server domain for TLS connections
# received from the loopback interface. We allow
-# the use of SSLv2 and SSLv3 protocols here, we do
+# the use of TLSv1 protocols here, we do
# not require that clients present client certificates
# but if they present it it must be valid. We also use
# a special certificate and CA list for loopback
# interface.
#
-#[server:127.0.0.1:5061]
+#[server:5.6.7.8:5061]
#method = TLSv1
#verify_certificate = yes
#require_certificate = no
@@ -48,9 +48,11 @@ require_certificate = yes
#verify_depth = 3
#ca_list = local_ca.pem
#crl = local_crl.pem
+#server_name = kamailio.org
+#server_id = kamailio.org
-# Special settings for the example.sip (1.2.3.4) public SIP
-# server. We do not verify the certificate of the
+# Special settings for connecting to the example.sip (1.2.3.4)
+# public SIP server. We do not verify the certificate of the
# server because it can be expired. The server
# implements authentication using SSL client
# certificates so configure the client certificate
@@ -62,3 +64,5 @@ require_certificate = yes
#private_key = /usr/local/etc/kamailio/tls/example_key.pem
#ca_list = /usr/local/etc/kamailio/tls/example_ca.pem
#crl = /usr/local/etc/kamailio/tls/example_crl.pem
+#server_name = example.sip
+#server_id = example.sip