seshagiri | 27 Jun 2012 05:23
Picon

What is the difference between 408 and 504 responses

   What is the difference between 408 and 504 responses ?
>
>
>    In the below negative scenarios our sbc forward the recieived requests
> to UAS.
>    UAS will not respond for few requests( It will not send 200 for INFO or
> UPDATE or OPTIONS)
>    In some scenarios UAS will not send 200 OK after 180.
>    But our sbc sends responses like 408 or 504 to UAC.
>    I could not able to understand when it sends 408 and when it sends 504 ?
>
>
>
>
> Messages  Retrans   Timeout   Unexpected-Msg
>       INVITE ---------->         0         0         0
>          100 <----------         0         0         0         0
>          180 <----------         0         0         0         0
>          183 <----------         0         0         0         0
>          200 <----------  E-RTD1 0         0         0         0
>          ACK ---------->         0         0
>        Pause [   1000ms]         0                             0
>         INFO ---------->         0         0
>          100 <----------         0         0         0         0
>          408 <----------  E-RTD1 0         0         0         0
>        Pause [    20.0s]         0                             0
>          BYE ---------->         0         0         0
>          200 <----------         0         0         0         0
>
>
(Continue reading)

Tarun2 Gupta | 27 Jun 2012 07:29
Favicon

Re: What is the difference between 408 and 504 responses

Hi

504 is usually sent by a server (gateway) when it does not receive a timely
response from another server (such as a location server).

408 is related to SIP transaction layer request timeouts.

Regards,
Tarun Gupta
Aricent

-----Original Message-----
From: sip-implementors-bounces <at> lists.cs.columbia.edu
[mailto:sip-implementors-bounces <at> lists.cs.columbia.edu] On Behalf Of seshagiri
Sent: Wednesday, June 27, 2012 8:54 AM
To: sip-implementors
Subject: [Sip-implementors] What is the difference between 408 and 504 responses

   What is the difference between 408 and 504 responses ?
>
>
>    In the below negative scenarios our sbc forward the recieived requests
> to UAS.
>    UAS will not respond for few requests( It will not send 200 for INFO or
> UPDATE or OPTIONS)
>    In some scenarios UAS will not send 200 OK after 180.
>    But our sbc sends responses like 408 or 504 to UAC.
>    I could not able to understand when it sends 408 and when it sends 504 ?
>
>
(Continue reading)

Giriprathap Raju | 27 Jun 2012 07:33
Picon

Re: What is the difference between 408 and 504 responses

*Hi seshagiri,*

**

*PJSIP_SC_REQUEST_TIMEOUT and PJSIP_SC_SERVER_TIMEOUT are totally two
different things.*

**

*->PJSIP_SC_REQUEST_TIMEOUT* = 408 is when the session expires or
connection lost and the and the application tries to send the packet to the
server then if it not finds the Acknowledgment packet then it throws
the *PJSIP_SC_REQUEST_TIMEOUT
error.*

**

*where as *

**

*-> PJSIP_SC_SERVER_TIMEOUT = 504 *is usually sent by a server (gateway)
when it does not receive a response from another server .

On Wed, Jun 27, 2012 at 10:59 AM, Tarun2 Gupta <tarun2.gupta <at> aricent.com>wrote:

> Hi
>
> 504 is usually sent by a server (gateway) when it does not receive a timely
> response from another server (such as a location server).
(Continue reading)

Giriprathap Raju | 27 Jun 2012 07:52
Picon

Re: What is the difference between 408 and 504 responses

PJSIP_ISSUE.

When i sync my pjsip based application and register with it works fine but
when go into background and put the device idle for more than a hour we are
getting the *PJSIP_SC_SERVICE_UNAVAILABLE* = 503 response form the server
and the pjsip application is not retrying for the registration again.But in
the application we are retrying the connection for every 5 seconds after
the connection lost

(reg_retry_interval=5 ) can any body solve this issue for me .. what should
i do any suggestions.

On Wed, Jun 27, 2012 at 11:03 AM, Giriprathap Raju <
giriprathapraju.v <at> gmail.com> wrote:

> *Hi seshagiri,*
>
> **
>
> *PJSIP_SC_REQUEST_TIMEOUT and PJSIP_SC_SERVER_TIMEOUT are totally two
> different things.*
>
> **
>
> *->PJSIP_SC_REQUEST_TIMEOUT* = 408 is when the session expires or
> connection lost and the and the application tries to send the packet to the
> server then if it not finds the Acknowledgment packet then it throws the *PJSIP_SC_REQUEST_TIMEOUT
> error.*
>
> **
(Continue reading)

Brett Tate | 27 Jun 2012 13:28
Favicon

Re: What is the difference between 408 and 504 responses

> What is the difference between 408 and 504 responses?

The following are from RFC 3261.  However because RFC 4320 unfortunately deprecated the 408 for non-INVITE
requests (even when the reason cited was not applicable), you might see 504 or other status-codes more
frequently used as an alternative when a 408 actually would have been more appropriate.  My concerns about
the deprecation were raised during the following the thread: 
http://www.ietf.org/mail-archive/web/sipcore/current/msg02421.html

21.4.9 408 Request Timeout

 The server could not produce a response within a suitable amount of
 time, for example, if it could not determine the location of the user
 in time.  The client MAY repeat the request without modifications at
 any later time.

21.5.5 504 Server Time-out

 The server did not receive a timely response from an external server
 it accessed in attempting to process the request.  408 (Request
 Timeout) should be used instead if there was no response within the
 period specified in the Expires header field from the upstream
 server.

seshagiri | 27 Jun 2012 19:26
Picon

Re: What is the difference between 408 and 504 responses

Thanks for your explanations.
On Jun 27, 2012 4:58 PM, "Brett Tate" <brett <at> broadsoft.com> wrote:

> > What is the difference between 408 and 504 responses?
>
> The following are from RFC 3261.  However because RFC 4320 unfortunately
> deprecated the 408 for non-INVITE requests (even when the reason cited was
> not applicable), you might see 504 or other status-codes more frequently
> used as an alternative when a 408 actually would have been more
> appropriate.  My concerns about the deprecation were raised during the
> following the thread:
> http://www.ietf.org/mail-archive/web/sipcore/current/msg02421.html
>
> 21.4.9 408 Request Timeout
>
>  The server could not produce a response within a suitable amount of
>  time, for example, if it could not determine the location of the user
>  in time.  The client MAY repeat the request without modifications at
>  any later time.
>
> 21.5.5 504 Server Time-out
>
>  The server did not receive a timely response from an external server
>  it accessed in attempting to process the request.  408 (Request
>  Timeout) should be used instead if there was no response within the
>  period specified in the Expires header field from the upstream
>  server.
>
>
(Continue reading)


Gmane