Hello, Attila On 13.12.2006, 23:55, "Attila Sipos" <[EMAIL PROTECTED]> wrote to <[email protected]>:
AS> Q1. say you send an INVITE and you get a 302 response with AS> Contact: sip:[EMAIL PROTECTED];sdfs=sd;msdf=21342;shabba=dabba AS> When you send the redirected INVITE (the INVITE triggered by AS> the 302), what SIP URI request line should you have? AS> I think it should be: AS> INVITE sip:[EMAIL PROTECTED];sdfs=sd;msdf=21342;shabba=dabba SIP/2.0 AS> not: AS> INVITE sip:[EMAIL PROTECTED] SIP/2.0 AS> am I right? RFC 3261, paragraph 20.10, says: A Contact header field value can contain a display name, a URI with URI parameters, and header parameters. [...] ... If no "<" and ">" are present, all parameters after the URI are header parameters, not URI parameters. So, the Request-URI of the new INVITE should be: INVITE sip:[EMAIL PROTECTED] SIP/2.0 If the UAS sending 302 wants to redirect your softphone to the URI with all parameters, it MUST use name-addr form (with "<" and ">"), not addr-spec. RFC 3261 says: When the header field value contains a display name, the URI including all URI parameters is enclosed in "<" and ">". [...] Even if the "display-name" is empty, the "name-addr" form MUST be used if the "addr-spec" contains a comma, semicolon, or question mark. So, in your example the Contact header should look like this: Contact: <sip:[EMAIL PROTECTED];sdfs=sd;msdf=21342;shabba=dabba> AS> Q2. you have an a UA and it has an outbound proxy configured. AS> when you get a 302 response, where should the redirected AS> INVITE go to? AS> a. the outbound proxy? AS> or AS> b. the target specified by the Contact in the 302? It depends of the configuration settings of your softphone. For example, the softphone which I use can be configured in two modes: with or without strict outbound proxy. In the first mode (strict outbound proxy) redirected INVITE will be sent through the proxy; in the second mode (without strict outbound proxy) it will be sent directly to the destination. -- With best regards, Igor Vanin, St. Petersburg, Russia mailto:[EMAIL PROTECTED] http://gpmail.spb.ru _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
