SPA303 - Reordering the position of Content-Length header in SIP INVITE

Hi,
I have SPA303 IP Phone connected behind a SIP ALG router but have been facing issues with media setup for incoming and outgoing calls.
Further investigation using SIPp script helped me out to understand the root cause of the issue which is as follows:
If the SIP INVITE or 200 OK for SIP INVITE has Content-Length header ahead of the Content-Type header, the SIP ALG router is not able to handle the RTP traffic for the calls.  Cisco SPA303 IP phone exhibits this behaviour and hence couldn't successfully establish call with the SIP ALG that I use.
Can you please confirm if it is configurable to reposition or re-order the Content-Length header to resolve this issue?
Thanks in advance.
Regards,
Anand Krishnan

As far as I know it's not configurable. According SIP protocol, the order of SIP headers is not meaningfull.
Your router need to accept both orders as both are corrrect and have same meaning. Ask the vendor of router for updated firmware ...

Similar Messages

  • Content-Length Header being stripped out of Gatewayed pages

    I am working to integrate the GPL'ed Moodle e-learning web application with Plumtree.  However, I'm hitting a snag.  For certain POST events, Moodle expects to receive a content-length header.
    When I use the application outside the portal, it works fine, and the Content-Length header is sent.  However, when I have the application gatewayed through the portal, the Content-Length header seems to get stripped out of the HTTP request and I get HTTP error 411 (Content Length Required).
    Is there a way I can convince the portal to not strip out the Content Length HTTP header?

    I'm working with .NET portal.
    For the particular file that caused the error as reported in the tcptrace log, I opened IIS manager, found the virtual directory, right clicked to open the properties dialog and checked directory security.
    Select edit anonymous access to check the account used for anonymous access, supply the user account needed and allow IIS to manage password. If in doubt check the settings on pages containing http post that are functioning properly.
    Check Integrated Widows Authentication
    I found this virutal directory had no user in the anonymous account, not sure how this happened. This resulted in pages that contained post/postbacks giving the "length required" error when I hit a button to perform the post/postback. Pages that did not contain Posts/Postback work correctly.

  • Content-Length header not changed after url-rewrite... yields cut page.

    We use iPlanet6 ,service pack 4. The pages that return from the servlets are
    changed by the Application Server. The Application Server adds
    GXHC_GX_jst=901a10a6662d6164& to the all the URLs (which increase the
    page's size). The problem is that Application Server does not change the
    Content-Length header in the servlet response. This yields cut pages in the
    browser (IExplorer5).
    If we don't add the Content-Length header it works fine. (I.e., The pages
    are not cut.) Our problem is that we work with mobile devices that must have
    the Content-Length header to work properly.
    Q: Do you know if there is a patch that fix the problem?
    Q: Is it possible to configure the Application Server to prevent this
    url-rewrite?
    Regards,
              Aviram

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • Content-Length Header Missing in Http Response

    Hi folks,
    Our application uses JSPs and Servlets. To solve a TCP level probelm, we would like to ensure that each response sent from the WebLogic Server includes a content-length header. All the pages are dynamic and therefore we cannot explicitly set the content-length.
    To ensure that WebLogic has the opportunity to set this header, we have increased the response buffer size by adding a <%@ page buffer="nK" %> header to our JSPs and a response.setBufferSize call to our Servlets. The responses still do not contain a content-length header.
    Is there anything else we can do to get WebLogic to set this header?
    Thanks in advance,
    Santosh

    Anybody?

  • Does SPA122 support a custom "From" header in SIP INVITE msg?

    Our SIP service provider allows me to specify the calling line identification (CLI) for outgoing calls by placing the appropriate string in the "From" field of the SIP INVITE msg.
    This is independent of the "User ID" needed to register with the service.
    Does the SPA122 provier a way to specify a suitable "From" string?

    You can use the 'Display Name' field to send another name or number out to the other side.

  • JavaMail doesn't send Bcc + Content-Length

    Hello Folks,
    I recently found a String ignoreList in the class SMTPTransport which contains already "Bcc" and "contentLength":
    /*  141 */   private static final String[] ignoreList = { "Bcc", "Content-Length" };
    Thus I wanted to know whether sending Emails without the Bcc and Content-Length Header is on purpose or meant to be fixed in the following version.
    Thanks in advance!
    Greetings,
    Daniel

    It's on purpose.
    The whole point of Bcc is that it's not included in the headers of the sent message, despite the message being sent to the Bcc'ed recipients.
    Content-Length is not relevant for a message in transit, it's only used in some Unix mailbox formats.

  • Gzip / Content-Length HTTP-Header

    Hello,
    I'm writing an HTTP-Proxyserver, but I don't know how to get the length of a GZIPOutputStream ... I'm compressing the data, if the server does not send gzipped data:
    logger.debug("Encode as GZip data!");
    byte[] BinaryBody = new byte[8192];
    GZIPOutputStream gzipOut = new GZIPOutputStream(client.getOutputStream());
    int length;
    while ((length = in.read(BinaryBody)) != -1)
         gzipOut.write(BinaryBody, 0, length);
         gzipOut.flush();
    gzipOut.close();I often get a Nullpointer exception in the line (while ((length = in.read(BinaryBody)) != -1)
    I think it's because I don't set the Content-Length Header, but I'm not sure.
    greetings,
    Johannes

    Disable the "Use Chunked Streaming Mode" property in HTTP Transport Configuration of your business service. By default it remains enabled.
    Regards,
    Anuj

  • Content-Lengh Header Missing in Http Response

    Hi folks,
              Our application uses JSPs and Servlets. To solve a TCP level problem, we would like to ensure that each response sent from the WebLogic Server includes a content-length header. All the pages are dynamic and therefore we cannot explicitly set the content-length.
              To ensure that WebLogic has the opportunity to set this header, we have increased the response buffer size by adding a <%@ page buffer="nK" %> header to our JSPs and a response.setBufferSize call to our Servlets. The responses still do not contain a content-length header.
              Is there anything else we can do to get WebLogic to set this header?
              Thanks in advance,
              Santosh

    Anyway, this works for me:
    try {
      URL u = new URL("http://localhost:9090/");
      HttpURLConnection c = (HttpURLConnection) u.openConnection();
      c.setInstanceFollowRedirects(false);
      c.connect();
      Map<String,List<String>> hs = c.getHeaderFields();
      for(Map.Entry e : hs.entrySet()) {
        System.out.println(e.getKey() + ": " + e.getValue());
    } catch (Exception ex) {
      ex.printStackTrace();
    }Where on localhost:9090 I have a server that will issue a redirect on / and content on anything else.
    This code will issue the request, then read the response headers, including the Location: header.

  • Content-Lenght header on html pages

    I hope this is a simple one, and I am just lame in my web searching skills, but how would one get the Sun One Web Server 6.1 to include the Content-Length response header on requests for html pages?
    If I curl the web server for say an exe file (application\octet-stream mime type) the server sends me a Contetn-Length header in the response. When I curl a html page from the same server there is no Content-Length header in the response.
    I have a developer that wants to use this header to determine if we need to delete the object from our CDN network, which by the way does provide the Content-Length response header on html pages.
    Thanks in advance for any help on this.

    If there's no Content-Length header in the response when you request a .html file, server-parsed HTML has likely been enabled. When server-parsed HTML (aka SHTML or SSI) is enabled, the server parses the .html file and dynamically generates a response. When the response is dynamically generated, the server doesn't know how long the response will be until it has been completely generated. As a result, the server may omit the the Content-Length header.
    You can disable server-parsed HTML in the administration server GUI.

  • Incorrect Content-Length

    Dear Java Experts,
    I am writing a program which communicates with a servlet. The OutputStream of the URLConnection is get and I write a String to it. However, when I use the getContentLength Method to check, the length is always 4. In turn, the server-side always gets an EOFException.
    The display output of my program is:
    Invoker: DATA LENGTH = 357
    Invoker: CONTENT_LENGTH = 4
    The code statement is:
    URL servletUrl = null;
    URLConnection conn = null;
    ObjectInputStream ois = null;
    ObjectOutputStream oos = null;
    int backcmd = -1;
    Object ret = null;
    URL servletUrl = new URL(location);
    conn = servletUrl.openConnection();
    conn.setDoInput(true);
    conn.setDoOutput(true);
    conn.setUseCaches(false);
    conn.setRequestProperty("Content-Type", "application/octet-stream");
    BufferedOutputStream connos = new BufferedOutputStream(conn.getOutputStream());
    System.out.println("Invoker: DATA LENGTH = "+myString.length());
    connos.write(myString.getBytes());
    connos.flush();
    connos.close();
    int length = conn.getContentLength();
    System.out.println("Invoker: CONTENT_LENGTH = "+length);
    Please help.
    Ray

    According to the JDK Help - URLConnection.getContentLenght() returns the length of the content-length header field
    This does NOT sound like what you are trying to get
    perhaps you should try something like
    int length = ((String)conn.getContent()).length();

  • SunOne Web Server 6.1 and JSP response content-length

    Hi,
    I am looking for help for a problem in my previous post
    http://swforum.sun.com/jive/thread.jspa?threadID=58612.
    It seems to me the only significant difference of the response to the same jsp file from 6.0 and 6.1 server is the content-length header.
    6.0 response has the content-length header;
    6.1 response does not have the content-length header.
    HttpUrlConnection::getContentLength() returns the actual content length of the 6.0 response;
    HttpUrlConnection::getContentLength() returns -1 for the 6.1 response.
    Here is the dump,
    SunOne WebServer 6.0
    allowUserInteraction? false
    content? sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1eed786
    contentEncoding? null
    contentLength? 999
    contentType? application/x-java-jnlp-file
    Date? 1131378080000
    DefaultAllowUserInteraction? false
    DefaultUseCaches? true
    DoInput? true
    DoOutput? false
    Expiration? Wed Dec 31 19:00:00 EST 1969
    FileNameMap? java.net.URLConnection$1@1a1c887
    lastModified? Wed Dec 31 19:00:00 EST 1969
    requestMethod? GET
    responseCode? 200
    responseMessage? OK
    HEADER::Set-cookie=[JSESSIONID=pkand013-1%253A436f75a0%253A5b909ee2e5bbe3bc;path=/]
    HEADER::Date=[Mon, 07 Nov 2005 15:41:20 GMT]
    HEADER::Server=[Netscape-Enterprise/6.0]
    HEADER::null=[HTTP/1.1 200 OK]
    HEADER::Content-length=[999]
    HEADER::Content-type=[application/x-java-jnlp-file]
    SunOne WebServer 6.1
    allowUserInteraction? false
    content? sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1fee6fc
    contentEncoding? null
    contentLength? -1
    contentType? application/x-java-jnlp-file
    Date? Mon Nov 07 10:49:07 EST 2005
    DefaultAllowUserInteraction? false
    DefaultUseCaches? true
    DoInput? true
    DoOutput? false
    Expiration? Wed Dec 31 14:00:00 EST 1969
    FileNameMap? java.net.URLConnection$1@1503a3
    lastModified? Wed Dec 31 19:00:00 EST 1969
    requestMethod? GET
    responseCode? 200
    responseMessage? OK
    HEADER::null=[HTTP/1.1 200 OK]
    HEADER::Expires=[Wed, 31 Dec 1969 19:00:00 EST]
    HEADER::Set-cookie=[JSESSIONID=44A318F4BC0802A4C70C27FD4AB1C115;Path=/]
    HEADER::Transfer-encoding=[chunked]
    HEADER::Date=[Mon, 07 Nov 2005 15:49:07 GMT]
    HEADER::Pragma=[No-cache]
    HEADER::Server=[Sun-ONE-Web-Server/6.1]
    HEADER::Content-type=[application/x-java-jnlp-file]
    HEADER::Cache-control=[no-cache]
    In my test env, 6.0 and 6.1 are installed on the same machine (Win2K), using the same directory as web root, same http port. Browser runs on a different machine.
    Thanks
    Harry

    Hi, elving
    This is good information. Thanks very much.
    Actually, I am not using SSL, just plain http connection with basic auth. It might be the cache-control header that causes the head ache. 6.0 response does not have the cache-control header, but 6.1 has.
    The interesting thing is that adding a servlet mapping on 6.1 solves the problem.
    I will take a further look tomorrow.
    Cheers,
    Harry
    I doubt the problem has to do with the Content-Length
    header.
    I'd guess that you're using SSL. Are you? If so,
    you're almost certainly bumping into a known bug (or,
    as Microsoft describes it, a "feature") in Internet
    Explorer. Microsoft article KB316431 at
    http://support.microsoft.com/default.aspx?scid=316431h
    as some information on the problem. As the article
    points out, the problem occurs when Internet Explorer
    needs to invoke an external application to handle a
    file that was served over SSL with Cache-Control:
    no-cache and/or Pragma: no-cache headers.
    A work around would be force Web Server to send
    Cache-Control and Pragma headers that don't include
    the no-cache directive. For example, the following
    lines could be added to the obj.conf configuration
    file:<Object ppath="*.jnlp">
    Output fn="set-variable" set-srvhdrs="Cache-Control:
    private"
    Output fn="set-variable" set-srvhdrs="Pragma:
    private"
    </Object>Fortunately, it sounds like you've already
    found another viable work around.

  • HELP content  length always -1!!!!!

    Im developing a MIDlet to upload data to a servlet but my content length is always -1
    here is my code
    HttpConnection c = null;
        InputStream is = null;
        DataOutputStream dos = null;
        OutputStream os = null;
    try
           c = (HttpConnection)Connector.open(url2, Connector.READ_WRITE, true);
        c.setRequestMethod(HttpConnection.POST);
       c.setRequestProperty("IF-Modified-Since", "20 Jan 2001 16:19:14 GMT");
       c.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
       c.setRequestProperty("Content-type", "multipart/form-data; " );
        c.setRequestProperty("Connection", "close" );
        c.setRequestProperty("Content-Length",Long.toString( size ) );
               dos = new DataOutputStream(c.openDataOutputStream());
        dos.writeLong(size);  
        dos.write(photo);  
        dos.flush();  
        dos.close();
        finally
          if(is!= null) {
            is.close();
          if(os != null) {
            dos.close();
          if(c != null) {
            c.close();
          }what am I doing wrong
    Thanks in advance!!

    It depends on what implementation you are running on, but WTK 2.2, for example, always seem to use the chunked transfer encoding when doing a POST and there is no Content-Length header in the request headers, and if the server reply is also sent using the chunked transfer encoding there will be no Content-Length header in the reply headers either
    regards
    simon

  • Bug: XMLHttpRequest mishandles content-length

    In the Palm Pre browser, if you are running JavaScript code that Posts an XMLHttpRequest query that returns an XML document *and* that document doesn't have an explicit content-length header, the browser assumes a content-length of zero and presents an empty document. (If there is an explicit content-length header, then the browser uses it as the length of the returned XML document and all is well.)
    FWIW: In the JavaScript code that I've been using to dig into this issue, I have:
    xmlDoc=xhttp.responseXML;
    alert(xhttp.getAllResponseHeaders());
    alert(xhttp.responseText.length);
    The getAllResponseHeaders() call returns all the headers that I see going across the wire (using WireShark) *PLUS* a "content-length=0" header that isn't coming from the server (the server is not sending any content-length header). The responseText.length then, of course, reports a length of zero, regardless of the true length of the XML document being transmitted.

    I actually looked at the developer forum first as a place to post this, but that forum seemed to be 100% aimed toward native WebOS app development. I really didn't see an appropriate spot to report a bug that seems to reside within the browser. (I know far too little of WebOS app development to claim any knowledge of whether the WebOS app JavaScript interpreter has the same bug as the browser JavaScript interpreter.)
    So, that being said, which section of the developer forum would you suggest that I post in?
    Thanks!

  • Response content length Mismatch

    Hi All,
    I have this problem. When ever i run the application,i get the error "Response content length mismatch" for image,css,.png files.. AM using iPLanet 7.0 ..In my obj.conf file, there is no "Output fn" and <Client> tag..KIndly help me out in this as its really urgent
    REgards

    Hi All,
    I have this problem. When ever i run the application,i get the error "Response content length mismatch" for image,css,.png files.. AM using iPLanet 7.0 ..In my obj.conf file, there is no "Output fn" and <Client> tag..KIndly help me out in this as its really urgent
    REgards

  • Content Length Zero in OATS version 8.50

    Hi,
    I am using OATS 8.5 version. I am getting content length zero error in one of the scripts when I replay it in OFT. Please let me know if any configuration settings need to be made inorder to make this error as non-fatal and proceed with the remaining part of the script.
    Thank You.

    Hi
    Check out this thread to solve the issue.
    Content length zero
    Regards
    Alex

Maybe you are looking for

  • Insert audio and video icons is split

    why are these 2 buttons divided and that there is a single button that makes it possible to insert video and audio at once into the timeline

  • Sap Fiori setup with Mock server

    HI all,      I am new to SAP FIORI, trying to setup a FIORI project with Mock server this is working fine but results are not displaying in view. for mock server/data setup I have followed    the link  http://www.spyvee.com/saphtml5/docs/guide/MockDa

  • File - Webservice Scenario

    Is it possible to develop following scenario without BPM. XI Picks up File XI Invokes Webservice synchronously on receiving response XI should parse contents and send to Mail receiver How to do this without using BPM ?. Thanks

  • Books on cd-how to consolidate

    Is there a way to consolidate books on CD so they play like an audio book in large parts? Right now I have a playlist for each CD.

  • Skype Credit Auto-recharge has been cancelled

    Dear Skype,                 I have an incident yesterday, my skype a/c : suddenly can’t auto recharge, and the auto recharge has been cancelled, the last auto recharge is 23Nov13, we receive the email as below, but for point two, I try recharge the c