[OpenSIPS-Users] Handling SDP on 302 request with mhome

Antonis Psaras apsaras at microbase.gr
Mon Sep 27 00:48:56 EST 2021


Hello Team

 

I have an OpenSIPs with multi home (WAN / LAN) connected to an Asterisk
(LAN). The problem I have is the following.

 

A call is coming from Asterisk to OpenSIPs LAN interface for a user
registered on OpenSIPs. That user has call forwarding enabled and OpenSIPs
receives a 302. 

 

That request is handled as follows

 

failure_route[failure]

{

        if (t_check_status("(301)|(302)"))

        {

                get_redirects("1:1");

 

                uac_replace_from("","$tu");

                uac_replace_to("","$ru");

 

                if (!ds_select_dst("1", "0"))

                {

                        send_reply("500","Unable to route");

                        exit;

                }

 

                t_relay();

  

      }

 

        rtpengine_delete();

}

 

A new INVITE is generated from OpenSIPs towards Asterisk but SDP negotiated
is the initial (OpenSIPs to Client) with the WAN IP.

 

Is there a way to correct that?

 

Thank you in advance for your support.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210927/19afa676/attachment.html>


More information about the Users mailing list