[Spce-user] rtpengine & sdpops
Andreas Granig
agranig at sipwise.com
Tue Apr 12 04:03:38 EDT 2016
Hi,
I don't believe that's possible. What you could also do though in case
you must for some reason use kamailio for this task is filtering the
codecs on the kamailio-lb instance, which would work out of the box
without this trick. That would only filter end-to-end calls, not calls
going to some internal service (voicemail for instance).
The most generic approach is to configure sems.sbc.sdp_filter in
/etc/ngcp-config/config.yml, which would utilize the sems b2bua to
perform the codec filtering.
Andreas
On 04/11/2016 11:10 PM, Sergey Zyrianov wrote:
> Hi,
>
> Thanks for the reply!
>
> Is there any option to apply changes to SDP only?
> msg_apply_changes() seems to be too invasive atm.
>
> Thanks,
> Sergey.
>
> On Mon, Apr 11, 2016 at 9:39 PM, Andreas Granig <agranig at sipwise.com
> <mailto:agranig at sipwise.com>> wrote:
>
> Hi Sergey,
>
> Since rtpengine is replacing the full sdp body, you need to do a
> msg_apply_changes() after rtpproxy_offer() and before
> sdp_remove_codecs_by_name().
>
> Andreas
>
> On 04/11/2016 09:31 PM, Sergey Zyrianov wrote:
> > Hi,
> >
> > In kamailio script I tried to remove some codecs before/after
> rewriting
> > the SDP with rtpeninge_offer().
> > My codecs list stay the same:
> >
> > ....
> > if (rtpproxy_offer("ie-spc"))
> > t_on_reply("1");
> > sdp_remove_codecs_by_name("G729,G723");
> >
> > G729 and G723 codecs are still mentioned by SDP regardless if i move
> > sdp_remove_conecs_by_name before/after the rtpproxy_offer.
> > It seems like I can not have both modules working on the same SDP?
> >
> > Thanks,
> > Sergey.
> >
> >
> > _______________________________________________
> > Spce-user mailing list
> > Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
> > https://lists.sipwise.com/listinfo/spce-user
> >
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
> https://lists.sipwise.com/listinfo/spce-user
>
>
More information about the Spce-user
mailing list