[SR-Users] rtpengine rewrite sdp for second time

Carsten Bock carsten at ng-voice.com
Mon Aug 17 08:49:12 CEST 2015


Hi Virmantas,

you could try to one or a combination of the following:
- explicitly delete the first session by calling rtpengine_manage() in
the failure route
- call msg_apply_changes() from Textops before calling
rtpengine_manage() the second time (so the already made changes are
applied and the message gets reparsed)

Thanks,
Carsten

2015-08-16 20:13 GMT+02:00 Virmantas Variakojis
<virmantas.variakojis at gmail.com>:
> Hi,
>
> I have a situation like this:
> I have kamailio with 3 NIC's. I'm sending INVITE to first provider over
> NIC1. Before sending INVITE I use rtpengine_manage to rewrite sdp body with
> IP that is on NIC1:
> rtpengine_manage ("replace-origin replace-session-connection
> direction=intvlan direction=prov1 ICE=remove");
>
> If first provider fails i want to send INVITE for the same call to second
> provider. But if i use like this:
> rtpengine_manage ("replace-origin replace-session-connection
> direction=intvlan direction=prov2 ICE=remove");
> or (because ip of prov1 is allready set):
> rtpengine_manage ("replace-origin replace-session-connection direction=prov1
> direction=prov2 ICE=remove");
> rtpengine ignores my changes as said in documentation: "The direction must
> only be specified in for initial SDP offer; answers or subsequent offers can
> omit this option."
>
> and if I try to set ip like this:
> rtpengine_manage ("replace-origin replace-session-connection
> media-address=X.X.X.X ICE=remove");
> SDP body is doubled: it leaves old values and adds the new one.
>
> What i'm doing wrong or how can I rewrite SDP for second time? Thanks in
> advance for answer!
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Carsten Bock
CEO (Geschäftsführer)

ng-voice GmbH
Schomburgstr. 80
D-22767 Hamburg / Germany

http://www.ng-voice.com
mailto:carsten at ng-voice.com

Office +49 40 5247593-0
Fax +49 40 5247593-99

Sitz der Gesellschaft: Hamburg
Registergericht: Amtsgericht Hamburg, HRB 120189
Geschäftsführer: Carsten Bock
Ust-ID: DE279344284

Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/



More information about the sr-users mailing list