[OpenSIPS-Users] Handling 488 on a leg B

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Feb 1 11:51:11 EST 2018


Hi Dmitry,

In failure route you re-process the original request (INVITE) and not 
the 488 reply - the reply is just the trigger.
Do you change the INVITE SDP before the first attempt (which ends with 
488) ? Or you change it for the first time in the failure route ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Summit 2018
   http://www.opensips.org/events/Summit-2018Amsterdam

On 02/01/2018 05:34 PM, Dmitry wrote:
>
> 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:bogdan at opensips.org]
> *Sent:* Wednesday, January 31, 2018 6:55 PM
> *To:* OpenSIPS users mailling list <users at lists.opensips.org>; Dmitry 
> <netaskd at gmail.com>
> *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
>
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180201/27b162ac/attachment-0001.html>


More information about the Users mailing list