Module: kamailio
Branch: master
Commit: 1545b8de396e8e5d0ef24c9102beff18b3cf36e5
URL: https://github.com/kamailio/kamailio/commit/1545b8de396e8e5d0ef24c9102beff1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-06T18:55:57+02:00
core: check if ifa_addr field is set while trying to skip AF_PACKET interfaces
- reported by Juha Heinanen
---
Modified: socket_info.c
---
Diff: https://github.com/kamailio/kamailio/commit/1545b8de396e8e5d0ef24c9102beff1…
Patch: https://github.com/kamailio/kamailio/commit/1545b8de396e8e5d0ef24c9102beff1…
---
diff --git a/socket_info.c b/socket_info.c
index cecfef9..95c6ee6 100644
--- a/socket_info.c
+++ b/socket_info.c
@@ -1207,7 +1207,7 @@ int add_interfaces(char* if_name, int family, unsigned short port,
{
#ifdef AF_PACKET
/* skip AF_PACKET addr family since it is of no use later on */
- if (ifa->ifa_addr->sa_family == AF_PACKET)
+ if (ifa->ifa_addr && ifa->ifa_addr->sa_family == AF_PACKET)
continue;
#endif
if (if_name && strcmp(if_name, ifa->ifa_name))
```
version: kamailio 5.0.0-dev0 (i386/linux) 00f108-dirty
flags: STATS: Off, EXTRA_DEBUG, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 00f108 -dirty
compiled on 16:25:22 Mar 29 2016 with gcc 4.9.3
```
For my obscure reasons, I need to send an application/vnd.3gpp.pic-bw-small in a multipart body, in an INVITE.
While parsing the SDP, I have the following:
```
ERROR: <core> [parser/parse_content.c:370]: decode_mime_type(): ERROR:decode_mime_type: parse error near in [application/vnd.3gpp.pic-bw-small] char[51][3] offset=16
ERROR: sdpops [sdpops_mod.c:1659]: w_sdp_get_line_startswith(): Unable to parse sdp
```
I believe the application/vnd.3gpp.pic-bw-small is not recognized (not in the known MIME types tree: type_tree)
I think, I still should be able to parse the SDP even if the MIME type provided in the multipart message is unknown.
---
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/561
Module: kamailio
Branch: master
Commit: 0e2f744f79d78c9cc33e32544222a53ded3eab47
URL: https://github.com/kamailio/kamailio/commit/0e2f744f79d78c9cc33e32544222a53…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-05T07:27:15+02:00
pv: documentation for pv_evalx() function
---
Modified: modules/pv/doc/pv_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/0e2f744f79d78c9cc33e32544222a53…
Patch: https://github.com/kamailio/kamailio/commit/0e2f744f79d78c9cc33e32544222a53…
---
diff --git a/modules/pv/doc/pv_admin.xml b/modules/pv/doc/pv_admin.xml
index 4cbd6b80..21a8ba7 100644
--- a/modules/pv/doc/pv_admin.xml
+++ b/modules/pv/doc/pv_admin.xml
@@ -450,6 +450,33 @@ $var("foo") now is "foo indeed"
</programlisting>
</example>
</section>
+ <section id="pv.f.pv_evalx">
+ <title>
+ <function moreinfo="none">pv_evalx(dst, fmt)</function>
+ </title>
+ <para>
+ The fmt string is evaluated twice for exiting variables,
+ the result is stored in dst variable. The dst must be the
+ name of a writable variable. The fmt can contain variables
+ that have a value containing other variables.
+ </para>
+
+ <para>
+ Function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>pv_xavp_to_var()</function> usage</title>
+ <programlisting format="linespecific">
+...
+$var(x) = "test";
+$var(y) = "$var(x)"
+pv_evalx("$var(z)", "$var(y) one");
+
+# - the value of $var(z) is "test one"
+...
+ </programlisting>
+ </example>
+ </section>
</section>
<section>