LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS 4 SIP setup help needed‏

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS 4 SIP setup help needed‏
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Thu, 3 Sep 2009 08:56:30 +1000
On Wed, Sep 02, 2009 at 03:23:42PM +0000, Ashi Aber wrote:
> 
> 
> Hi,
> We finished testing LVS with a SIP simulator (sipp) now we started 
> integrating LVS with a SIP application server.
> We used WebLogic SIP server.
> Ldirecotrd's default SIP header didn't work with WebLogic,  WebLogic sent the 
> 200 OK reply to the wrong port.
> 
> I updated the SIP "Via" header line to fix the problem:
> 
> 
> 
> ]# diff ldirectord ldirectord.org 
> 
> 3022c3021,3022
> 
> <
>                            
> "Via: SIP/2.0/UDP $sip_s_addr_str;rport;branch=z9hG4bKhjhs8ass877\r\n" .
> 
> ---
> 
> >
>                            
> "Via: SIP/2.0/UDP $sip_s_addr_str:$sip_s_port;" .
> 
> >
>                                            
> "branch=z9hG4bKhjhs8ass877\r\n" .
> You may want to add this change to the SIP howto. 

Hi,

the current code that I see for ldirectord is as follows.
Does it agree with your results?

                my $request =
                "OPTIONS sip:" . $$v{login} . " SIP/2.0\r\n" .
                "Via: SIP/2.0/UDP $sip_s_addr_str:$sip_s_port;" .
                        "branch=z9hG4bKhjhs8ass877\r\n" .
                "Max-Forwards: 70\r\n" .
                "To: <sip:" . $$v{login} . ">\r\n" .
                "From: <sip:" . $$v{login} . ">;tag=1928301774\r\n" .
                "Call-ID: " . (join "", map { unpack "H*", chr(rand(256)) } 
1..8) . "\r\n" .
                "CSeq: 63104 OPTIONS\r\n" .
                "Contact: <sip:" . $$v{login} . ">\r\n" .
                "Accept: application/sdp\r\n" .
                "Content-Length: 0\r\n\r\n";


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>