Hello Bogdan, Thank you for advice.
I catched 488 and can send INVITE from failure_route, but I can’t modify body inside it. The main goal is change SAVP profile to AVP when 488 received. I tried to do it via rtpengine_offer function. It doesn’t work. I guess, it try to read the body from response (488 in my case) but not from request. I tried to rewrite body via remove_body_part and add_body_part functions, it also doesn’t work. So, I don’t understand how exactly rewrite body in failure_route before do t_relay(). In addition, I tried making a new branch (via append_branch function and via branch_route). It just duplicate my re-INVITE without changing the body. Could you please drop a hint (example on few lines of code) how to do it? Thanks. From: Bogdan-Andrei Iancu [mailto:[email protected]] Sent: Wednesday, January 31, 2018 6:55 PM To: OpenSIPS users mailling list <[email protected]>; Dmitry <[email protected]> Subject: Re: [OpenSIPS-Users] Handling 488 on a leg B Hello Dmitry, What you want to do is called (in SIP) serial forking. Use failure_route{} to catch the 488 and to add a create a new branch (with modified body) . See: http://www.opensips.org/Documentation/Script-Routes-2-3#toc3 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit 2018 http://www.opensips.org/events/Summit-2018Amsterdam On 01/30/2018 02:56 PM, Dmitry wrote: Hello all, Could you say how can I re-send INVITE with changed SDP to B-leg after receive 488 from it? Call flow: -> A-leg INVITE <- A-leg 100 -> B-leg INVITE <- B-leg 100 <- B-leg 488 – I catch it, and want to send INVITE again with properly SDP -> B-leg ACK <-A-leg 488 -> B-leg ACK Thanks for any advice. Cheers! _______________________________________________ Users mailing list [email protected] <mailto:[email protected]> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
