Oops... I answered early. You had more replies. I've tried it everywhere. Before, after, branch route, script route, etc. The only combination I haven't tried is moving the rtpengine_offer call to a script route from the branch route it's in now, and then doing my custom replacements in the branch route. That won't work for my case because I need the rtpengine stuff in the branch unfortunately.
- Jeff On Sat, Jan 18, 2020 at 11:17 AM David Villasmil < [email protected]> wrote: > Though reading through it, it may not be what your're looking for. > I think the SDP gets replaced when you call the rtpengine manage command. > Have you tried doing the replace _after_ calling the manage command? > > Regards, > > David Villasmil > email: [email protected] > phone: +34669448337 > > > On Sat, Jan 18, 2020 at 4:15 PM David Villasmil < > [email protected]> wrote: > >> with: >> >> >> https://www.kamailio.org/docs/modules/stable/modules/rtpengine.html#rtpengine.f.rtpengine_offer >> >> 5.2. rtpengine_offer([flags]) >> *replace-origin* - flags that IP from the origin description (o=) should >> be also changed. >> >> >> >> Regards, >> >> David Villasmil >> email: [email protected] >> phone: +34669448337 >> >> >> On Sat, Jan 18, 2020 at 4:11 PM David Villasmil < >> [email protected]> wrote: >> >>> I believe you can use this: >>> >>> replace >>> >>> Similar to the flags list. Controls which parts of the SDP body should >>> be rewritten. Contains zero or more of: >>> >>> - >>> >>> origin >>> >>> Replace the address found in the *origin* (o=) line of the SDP body. >>> Corresponds to *rtpproxy* o flag. >>> - >>> >>> session connection or session-connection >>> >>> Replace the address found in the *session-level connection* (c=) >>> line of the SDP body. Corresponds to *rtpproxy* c flag. >>> >>> >>> Have you tried this? >>> >>> Regards, >>> >>> David Villasmil >>> email: [email protected] >>> phone: +34669448337 >>> >>> >>> On Sat, Jan 18, 2020 at 3:59 PM Jeff Pyle <[email protected]> wrote: >>> >>>> Hello, >>>> >>>> I'm running OpenSIPS 2.4 and rtpengine 7.0. I have the following >>>> commands in my script: >>>> >>>> route[sanitize_sdp] { >>>> subst_body('/^o=\S+ /o=- /'); >>>> subst_body('/^s=.*/s=-\r/'); >>>> } >>>> >>>> This works fine, unless I'm also using rtpengine, in which case these >>>> subst_body() changes are lost. In the past with rtpproxy this worked as >>>> expected. >>>> >>>> I understand the potential conflicts when manipulating the SDP using >>>> multiple methods at the same time. My question is if there is a way to >>>> execute this type of manual manipulation in a way that's compatible with >>>> rtpengine, or achieve similar results within the rtpengine module itself? >>>> My purpose is to remove the origin and session text if possible to further >>>> obfuscate source network information. >>>> >>>> >>>> - Jeff >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> [email protected] >>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>> >>> _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
