[SR-Users] TR: Migrate from RtpProxy to Rtpengine

Nicolas Breuer Nicolas.Breuer at belcenter.biz
Tue Aug 14 11:01:20 CEST 2018

With subst_body, the part of the expression is not replaced but added.
Please see

o=root 549881893 549881894 IN IP4
s=Original Description
c=IN IP4
t=0 0.
m=audio 10704 RTP/AVP 8 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
s=New Description.

-----Message d'origine-----
De : Nicolas Breuer 
Envoyé : mardi 14 août 2018 10:45
À : 'sr-users at lists.kamailio.org' <sr-users at lists.kamailio.org>
Objet : RE: [SR-Users] Migrate from RtpProxy to Rtpengine

I don't like the msg_apply_changes but can you explain the different behavior between rtpproxy & rtpengine?


-----Message d'origine-----
De : sr-users <sr-users-bounces at lists.kamailio.org> De la part de Daniel Tryba Envoyé : mardi 14 août 2018 10:39 À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org> 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.

is executed before any route armed with t_on_reply(), sou you can possibly rewrite your reply logic a little.

More information about the sr-users mailing list