Re: [sr-dev] Please do not avoid my request. Can not set up rtp proxy with kamailio

2018-08-08 Thread ANOOP V M
can you provide me correct video or any guide to set up this rtpproxy and
solve my problem. I have tried many of your documents. But none of them
tells the correct and complete path to set up this rtpproxy. I need to
solve this quick.

On Wed, Aug 8, 2018 at 3:48 PM Alex Balashov 
wrote:

> On Wed, Aug 08, 2018 at 01:36:14PM +0530, ANOOP V M wrote:
>
> > Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:create_twinlistener:
> > can't bind to the IPv4 port 63826: Cannot assign requested address
>
> It seems to me the error is staring you in the face. :-)
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
___
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] getting an error while install kamailio5.1 on ubuntu 18.4 (#1602)

2018-08-08 Thread sergey-safarov
@limitall could you test commit 1736723cc2a15bb75c26711675712a966161b722 or 
current master
if now master builds correctly, then please close ticket.

-- 
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/1602#issuecomment-411573679___
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] pkg/kamailio: Defined correct dependences for perl module (#1615) (#1616)

2018-08-08 Thread Victor Seva
Merged #1616 into 5.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/pull/1616#event-1777632868___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:5.0:cef1294c: pkg/kamailio: Defined correct dependences for perl module (#1615)

2018-08-08 Thread Victor Seva
Module: kamailio
Branch: 5.0
Commit: cef1294c9a6c8a94327a82460d77ab5591e54f5b
URL: 
https://github.com/kamailio/kamailio/commit/cef1294c9a6c8a94327a82460d77ab5591e54f5b

Author: Sergey Safarov 
Committer: Victor Seva 
Date: 2018-08-08T14:36:17+02:00

pkg/kamailio: Defined correct dependences for perl module (#1615)

(cherry picked from commit 9ac132ba3a47f13cf7b58839dde34a04348340c9)

---

Modified: pkg/kamailio/obs/kamailio.spec

---

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

---

diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index c8ae154912..7cc9fcf700 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -552,8 +552,8 @@ Requires:   kamailio = %ver
 Requires:   perl
 BuildRequires:  perl
 %else
-Requires:   mod_perl
-BuildRequires:  mod_perl-devel
+Requires:   perl-libs
+BuildRequires:  perl-ExtUtils-Embed
 %endif
 
 %descriptionperl


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


Re: [sr-dev] Please do not avoid my request. Can not set up rtp proxy with kamailio

2018-08-08 Thread Alex Balashov
On Wed, Aug 08, 2018 at 01:36:14PM +0530, ANOOP V M wrote:

> Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:create_twinlistener:
> can't bind to the IPv4 port 63826: Cannot assign requested address

It seems to me the error is staring you in the face. :-)

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [sr-dev] Please do not avoid my request. Can not set up rtp proxy with kamailio

2018-08-08 Thread Julien Chavanton
Hi, this article may answer some of your questions

https://www.kamailio.org/wiki/install/upgrade/4.4.x-to-5.0.0

On Wed, Aug 8, 2018, 01:06 ANOOP V M  wrote:

> I have to configure the rtp proxy. The sip is working fine . But also i
> need to transmit the rtp packets also through kamailio.
>
> I was using kamailio version
> ==
> version: kamailio 5.1.4 (x86_64/linux) 9e6f13
> flags: STATS: Off, 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: 9e6f13
> compiled on 12:13:17 Jul 24 2018 with gcc 5.4.0
> 
>
>
> But using this version, Sip proxy is working but rtp proxy not.
>
> I think you have removed the mi_fifo in this version. I have reported this
> before and did not get any response from you.
>
> So i have installed kamailio version
>
> ==
> version: kamailio 4.1.9 (x86_64/linux) ed7bb1
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> DBG_QM_MALLOC, 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 4MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: ed7bb1
> compiled on 11:24:29 Aug  7 2018 with gcc 5.4.0
> ===
>
> Now i have installed rtp proxy and and it is running in my server.
>  kamctl fifo nh_show_rtpp
> udp:127.0.0.1:7722::  set=0
> index:: 0
> disabled:: 0
> weight:: 1
> recheck_ticks:: 0
> .
>
>
> But when i use the rtpproxy it says some error in log file as below.
>
> Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:handle_command:
> received command "9834_10 Uc0,8,3,111,9,101
> 75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060 52.90.183.183 15712
> as60627a88;1"
> Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: INFO:handle_command: new
> session 75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060, tag
> as60627a88;1 requested, type strong
> Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:create_twinlistener:
> can't bind to the IPv4 port 63826: Cannot assign requested address
> Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:handle_command: can't
> create listener
> Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:doreply: sending reply
> "9834_10 E10#012"
>
>
>
>
>
>
> Also the header is not changing for the sip packets.
> Please help me. I did not find a complete documentation anywhere. Need
> your support as soon as possible.
>
>
> I here by attaching my kamailio.cfg file for the current version and
> oldest one. Please check it and tell me if any changes needed.
> ___
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] Please do not avoid my request. Can not set up rtp proxy with kamailio

2018-08-08 Thread ANOOP V M
I have to configure the rtp proxy. The sip is working fine . But also i
need to transmit the rtp packets also through kamailio.

I was using kamailio version
==
version: kamailio 5.1.4 (x86_64/linux) 9e6f13
flags: STATS: Off, 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: 9e6f13
compiled on 12:13:17 Jul 24 2018 with gcc 5.4.0



But using this version, Sip proxy is working but rtp proxy not.

I think you have removed the mi_fifo in this version. I have reported this
before and did not get any response from you.

So i have installed kamailio version

==
version: kamailio 4.1.9 (x86_64/linux) ed7bb1
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, 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 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: ed7bb1
compiled on 11:24:29 Aug  7 2018 with gcc 5.4.0
===

Now i have installed rtp proxy and and it is running in my server.
 kamctl fifo nh_show_rtpp
udp:127.0.0.1:7722::  set=0
index:: 0
disabled:: 0
weight:: 1
recheck_ticks:: 0
.


But when i use the rtpproxy it says some error in log file as below.

Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:handle_command:
received command "9834_10 Uc0,8,3,111,9,101
75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060 52.90.183.183 15712
as60627a88;1"
Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: INFO:handle_command: new
session 75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060, tag
as60627a88;1 requested, type strong
Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:create_twinlistener:
can't bind to the IPv4 port 63826: Cannot assign requested address
Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:handle_command: can't
create listener
Aug  8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:doreply: sending reply
"9834_10 E10#012"






Also the header is not changing for the sip packets.
Please help me. I did not find a complete documentation anywhere. Need your
support as soon as possible.


I here by attaching my kamailio.cfg file for the current version and oldest
one. Please check it and tell me if any changes needed.


kamailio_version5.1.4.cfg
Description: Binary data


kamailio_version4.1.9.cfg
Description: Binary data
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:fe9da5b3: pv: $msg(hdrs_len) - return the length of all headers

2018-08-08 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: fe9da5b3a5d687c7f6dd041ab45e4edc5821c413
URL: 
https://github.com/kamailio/kamailio/commit/fe9da5b3a5d687c7f6dd041ab45e4edc5821c413

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-08-08T09:31:17+02:00

pv: $msg(hdrs_len) - return the length of all headers

---

Modified: src/modules/pv/pv_core.c

---

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

---

diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 7911d75bc7..01cebc8534 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -3472,6 +3472,8 @@ int pv_parse_msg_attrs_name(pv_spec_p sp, str *in)
case 8:
if(strncmp(in->s, "body_len", 8)==0)
sp->pvp.pvn.u.isname.name.n = 5;
+   else if(strncmp(in->s, "hdrs_len", 8)==0)
+   sp->pvp.pvn.u.isname.name.n = 8;
else goto error;
break;
default:
@@ -3541,14 +3543,12 @@ int pv_get_msg_attrs(sip_msg_t *msg, pv_param_t *param, 
pv_value_t *res)
if (s.s != NULL)
s.len = msg->buf + msg->len - s.s;
return pv_get_sintval(msg, param, res, s.len);
-
case 6: /* headers count */
n = 0;
for(hdr=msg->headers; hdr!=NULL; hdr=hdr->next) {
n++;
}
return pv_get_sintval(msg, param, res, n);
-
case 7: /* first part - first line + headers */
if(msg->unparsed==NULL)
return pv_get_null(msg, param, res);
@@ -3556,6 +3556,13 @@ int pv_get_msg_attrs(sip_msg_t *msg, pv_param_t *param, 
pv_value_t *res)
s.len = msg->unparsed - s.s;
trim();
return pv_get_strval(msg, param, res, );
+   case 8: /* headers size */
+   if(msg->unparsed==NULL)
+   return pv_get_sintval(msg, param, res, 0);
+   s.s = msg->buf + msg->first_line.len;
+   s.len = msg->unparsed - s.s;
+   trim();
+   return pv_get_sintval(msg, param, res, s.len);
 
default:
return pv_get_null(msg, param, res);


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


[sr-dev] git:master:cf0964f0: pv: $msg(fpart) - return first line and the headers

2018-08-08 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: cf0964f0246c29366788c011dfddc09b2ab3bf33
URL: 
https://github.com/kamailio/kamailio/commit/cf0964f0246c29366788c011dfddc09b2ab3bf33

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-08-08T09:31:17+02:00

pv: $msg(fpart) - return first line and the headers

---

Modified: src/modules/pv/pv_core.c

---

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

---

diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 5aedfd8a8d..7911d75bc7 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -3465,6 +3465,8 @@ int pv_parse_msg_attrs_name(pv_spec_p sp, str *in)
case 5:
if(strncmp(in->s, "fline", 5)==0)
sp->pvp.pvn.u.isname.name.n = 4;
+   else if(strncmp(in->s, "fpart", 5)==0)
+   sp->pvp.pvn.u.isname.name.n = 7;
else goto error;
break;
case 8:
@@ -3547,6 +3549,14 @@ int pv_get_msg_attrs(sip_msg_t *msg, pv_param_t *param, 
pv_value_t *res)
}
return pv_get_sintval(msg, param, res, n);
 
+   case 7: /* first part - first line + headers */
+   if(msg->unparsed==NULL)
+   return pv_get_null(msg, param, res);
+   s.s = msg->buf;
+   s.len = msg->unparsed - s.s;
+   trim();
+   return pv_get_strval(msg, param, res, );
+
default:
return pv_get_null(msg, param, res);
}


___
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] smsops: Add support for concatenated SMS in decode_3gpp_sms() (#1617)

2018-08-08 Thread ng-voice GmbH
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/1617#issuecomment-411303145___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:bc97a8d6: Merge pull request #1617 from tdimitrov/concatsms

2018-08-08 Thread GitHub
Module: kamailio
Branch: master
Commit: bc97a8d622acd4aae95a384285a565cb700dd8a8
URL: 
https://github.com/kamailio/kamailio/commit/bc97a8d622acd4aae95a384285a565cb700dd8a8

Author: ng-voice GmbH 
Committer: GitHub 
Date: 2018-08-08T10:41:51+04:00

Merge pull request #1617 from tdimitrov/concatsms

smsops: Add support for concatenated SMS in decode_3gpp_sms()

---

Modified: src/modules/smsops/smsops_impl.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/bc97a8d622acd4aae95a384285a565cb700dd8a8.diff
Patch: 
https://github.com/kamailio/kamailio/commit/bc97a8d622acd4aae95a384285a565cb700dd8a8.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] smsops: Add support for concatenated SMS in decode_3gpp_sms() (#1617)

2018-08-08 Thread ng-voice GmbH
Merged #1617 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/1617#event-1776972321___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:f1247ea2: smsops: Add support for concatenated SMS in decode_3gpp_sms()

2018-08-08 Thread Tsvetomir Dimitrov
Module: kamailio
Branch: master
Commit: f1247ea2652a96fd22052dcfc41f4d953624de5c
URL: 
https://github.com/kamailio/kamailio/commit/f1247ea2652a96fd22052dcfc41f4d953624de5c

Author: Tsvetomir Dimitrov 
Committer: Tsvetomir Dimitrov 
Date: 2018-08-07T22:15:00+03:00

smsops: Add support for concatenated SMS in decode_3gpp_sms()

---

Modified: src/modules/smsops/smsops_impl.c

---

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


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