[OpenSIPS-Devel] SDP manipulation functions and dialog callbacks
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Apr 12 18:11:54 CEST 2010
Hi Saúl,
it is more a logical problem as you do 2 different changes on the the
same original message - first you remove the whole body and later you
apply an IP change (remove and add) - this leads to a bogus message.
The only way to handle this (with the current implementation) is to have
a script logic that will prevent applying conflicting changes - either
you remove the whole SDP, either you apply IP/port fixes to it.
Regards,
Bogdan
Saúl Ibarra Corretgé wrote:
> Hi Bogdan and all,
>
> I've been playing a little bit with the strip_sdp function from textops
> module. My aim was to completely remove the SDP from a 180 reply, and
> the function did the trick.
>
> However, I'm using mediaproxy module with engage_mediaproxy function,
> which triggers the SDP mangling functions with dialog callbacks. This
> combination led to some unexpected result: the SDP was removed but I
> could still see IP and port for the relay chosen by mediaproxy module.
>
> My understanding here is that both functions (strip_adp and
> use_media_proxy) act on the original message, so when the mediaproxy
> modification function is triggered it will 'see' that the 180 does have
> a SDP, even if we called strip_sdp. Am I right here?
>
> Is there any way of dealing with this situation? Thanks in advance!
>
>
> Best regards,
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Devel
mailing list