Skip to content

hope the forwarding server receives the caller, callee, and mixed RTP streams simultaneously. #2078

@sznoname

Description

@sznoname

rtpengine version the issue has been seen with

13.5.1.3+0~mr13.5.1.3

Used distribution and its version

Debian 13

Linux kernel version used

6.12.73+deb13-amd64

CPU architecture issue was seen on (see uname -m)

x86_64

Expected behaviour you didn't see

I would like the forwarding server to receive both individual caller/callee RTP streams and the mixed RTP stream simultaneously.

But currently only the callee's RTP stream is being received.

rtpengine-recording.conf:

table = 0
tcp-send-to = 127.0.0.1:9000
tcp-mixed = true
...

kamailio.cfg:

route[start_forwarding] {
	if (is_request()) {
		if(!has_totag()) {
			jansson_set("string", "callid", "$ci", "$var(myjson)");
			jansson_set("string", "from", "$fU", "$var(myjson)");
			jansson_set("string", "to", "$tU", "$var(myjson)");
			jansson_set("string", "stream", "caller", "$var(myjson)");
			start_forwarding("metadata=$var(myjson) rtpp_flags=directional");			
			xinfo("invite start_forwarding\n");
		}
	} else {
		if(has_body("application/sdp") && !dlg_isflagset("1")) {
			jansson_set("string", "callid", "$ci", "$var(myjson)");
			jansson_set("string", "from", "$fU", "$var(myjson)");
			jansson_set("string", "to", "$tU", "$var(myjson)");
			jansson_set("string", "stream", "callee", "$var(myjson)");
			start_forwarding("metadata=$var(myjson) rtpp_flags=directional");
			dlg_setflag("1");
			xinfo("answer start_forwarding\n");
		}
	}
	return 1;
}

rtpengine.log:

[control] Dump for 'start forwarding ... "rtpp_flags": "directional"
[core] Start forwarding (entire call)

rtpengine-recording.log:

DEBUG: [core] [tls_send.c:122] Starting TCP connection to 127.0.0.1:9000
...

rtpengine.log
rtpengine-recording.log

The "rtpp_flags=directional" option appears to have no effect.

Unexpected behaviour you saw

No response

Steps to reproduce the problem

No response

Additional program output to the terminal or logs illustrating the issue

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions