[OpenSIPS-Users] media-proxy invalid IP in sdp

Pasan Meemaduma pasandev at ymail.com
Thu Jul 21 08:50:30 CEST 2011


HI Saul,

Further I have below in my config , Is this cause the problem ?


   if (loose_route()) {
        if(!has_totag()) {
            sl_send_reply("403", "Initial loose-routing rejected");
            exit;
        }

        if(nat_uac_test("19") || search("^Route:.*;nat=yes")) {
            if(!search("^Content-Length:[ ]*0")) {
                fix_nated_sdp("3");
                setbflag(2);
            }
        }
        append_hf("P-hint: rr-enforced\r\n");
        route(1);
    }


Is fix_nated_sdp() cause source address being append to sdp and media proxy ip 58.96.1.2 is append by use_media_proxy() ?

If this is the case how can I fix the config. Will commenting out  fix_nated_sdp("3"); fix the problem.



________________________________
From: Pasan Meemaduma <pasandev at ymail.com>
To: Saul Ibarra Corretge <saul at ag-projects.com>; OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Thursday, July 21, 2011 10:32 AM
Subject: Re: [OpenSIPS-Users] media-proxy invalid IP in sdp


Hi Saul,

This server is a production one handling more than 30K calls per day. 


I just only observe this problem with a particular account.

Their (sip account) outgoing call works fine. This happens when a call transfer happens. any individual call works just fine.


When a call transfer the PBX using the sip account send a re INVITE which is getting a corrupted IP address in here. c=IN IP4 220.233.253.16258.96.1.2.   <-- This should be c=IN IP4  58.96.1.2.

media proxy handles many calls like 50-70 sessions without any issue.

What I trying now is to have a direct public IP for that PBX so it wont use media proxy since its not behind NAT.

I'm sure use_media_proxy only calling once.


________________________________
From: Saul Ibarra Corretge <saul at ag-projects.com>
To: Pasan Meemaduma <pasandev at ymail.com>; OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Wednesday, July 20, 2011 8:53 PM
Subject: Re: [OpenSIPS-Users] media-proxy invalid IP in sdp

Hi,

On Jul 19, 2011, at 12:31 PM, Pasan Meemaduma wrote:

> Hi 
> 
> I only use 'use_media_proxy' in my dispatch route. below is my script where use_media_proxy is invoked
> 

[snip]

Can you add a xlog statement where use_media_rpoxy is called? Just to make sure that its not called twice :-)

Also, in your previous mail you said that this didn't happen always, did you find a pattern?


Regards,

-- 
Saúl Ibarra Corretgé
AG Projects








_______________________________________________
Users mailing list
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/20110720/c9507b79/attachment.htm>


More information about the Users mailing list