Solved by :
In Kamailio.conf
modparam("rtpengine", "read_sdp_pv", "$avp(sdp)")
-------------
sdp_get("$avp(sdp)");
avp_subst("$avp(sdp)","/(^s=.*)/s=$sel(cfg_get.proxygw.detail)\r/");
rtpengine_manage("replace-origin replace-session-connection");
-----Message d'origine-----
De : Nicolas Breuer
Envoyé : mardi 14 août 2018 15:44
À : '[email protected]' <[email protected]>
Objet : RE: [SR-Users] Migrate from RtpProxy to Rtpengine
I'm using branches routes and msg_apply can't be set in branches
I tried, just for the fun.
if ( subst_body('/(^s=.*)/s=$sel(cfg_get.proxygw.detail)\r/') ) { $var(s)="";
};
msg_apply_changes();
rtpengine_manage("replace-origin replace-session-connection");
and this is not working , it's added and not replaced.
-----Message d'origine-----
De : sr-users <[email protected]> De la part de Daniel Tryba
Envoyé : mardi 14 août 2018 10:39 À : Kamailio (SER) - Users Mailing List
<[email protected]> Objet : Re: [SR-Users] Migrate from RtpProxy to
Rtpengine
On Tue, Aug 14, 2018 at 08:23:28AM +0000, Nicolas Breuer wrote:
> substr
> msg_apply_changes()
> rtpengine_manage()
>
>
> This will not work because msg_apply_changes is working only in request route.
> I do substr in reply routes also.
From documentation:
"This function can be used from REQUEST_ROUTE or core REPLY_ROUTE."
It can't be used in any other "named" reply.
See:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#reply_route
reply_route{}
is executed before any route armed with t_on_reply(), sou you can possibly
rewrite your reply logic a little.
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users