Skip to content

[DOC] Wrong assumption about direction in the ng-control-protocol documentation #2012

@vingarzan

Description

@vingarzan

rtpengine version the issue has been seen with

N/A

Used distribution and its version

N/A

Linux kernel version used

N/A

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

None

Expected behaviour you didn't see

No response

Unexpected behaviour you saw

https://rtpengine.readthedocs.io/en/latest/ng_control_protocol.html#answer-message

It is claimed that "It doesn’t make sense to include the direction key in the answer message". However, when a call goes multiple times through the same SIP proxy, while we can discriminate on the SDP offer through the use of direction (2 different processing elements are triggered), if we abide by the documentation then then rtpengine probably can't identify the SDP answer correctly and only applies changes once.

This is a common case for example with a P-CSCF in IMS, which might handle in the same instance both the caller and the called party, yet each have completely separate processing applied. The Kamailio implementation does not seem to have a problem in sending the direction and, upon testing with my own client, it is effective to use it in the SDP answer.

Steps to reproduce the problem

Apply twice the SDP-offer to a call, with different directions. Then apply SDP-answer twice without direction -> only the first one works. But if we add the Direction parameter in the SDP-answer, everything works just fine. Hence the documentation is confusing.

Additional program output to the terminal or logs illustrating the issue

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions