Re: [sipcore] draft-ietf-sipcore-location-conveyance-04

Paul Kyzivat <> Wed, 27 October 2010 01:34 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 866473A68F9 for <>; Tue, 26 Oct 2010 18:34:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -110.484
X-Spam-Status: No, score=-110.484 tagged_above=-999 required=5 tests=[AWL=0.115, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id Rh5kwh76ASFB for <>; Tue, 26 Oct 2010 18:34:17 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id BD9F23A6907 for <>; Tue, 26 Oct 2010 18:34:16 -0700 (PDT)
Authentication-Results:; dkim=neutral (message not signed) header.i=none
X-IronPort-AV: E=Sophos;i="4.58,244,1286150400"; d="scan'208";a="175374971"
Received: from ([]) by with ESMTP; 27 Oct 2010 01:36:03 +0000
Received: from [] ( []) by (8.13.8/8.14.3) with ESMTP id o9R1a34N004674; Wed, 27 Oct 2010 01:36:03 GMT
Message-ID: <>
Date: Tue, 26 Oct 2010 21:36:02 -0400
From: Paul Kyzivat <>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20101013 Thunderbird/3.1.5
MIME-Version: 1.0
To: "James M. Polk (E-mail)" <>, Jon Peterson <>
References: <>
In-Reply-To: <>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [sipcore] draft-ietf-sipcore-location-conveyance-04
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SIP Core Working Group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 27 Oct 2010 01:34:20 -0000

I took a quick look at the new version, and it seems to have cleanup a 
lot. But there *still* seems to be a problem with the syntax. (Interplay 
between ABNF and text.) From the text, I find:

    The placement of the "routing-allowed" header field parameter,
    strongly encouraged by [RFC5606], is outside the locationValue, and
    MUST always be last in the header field value. The routing-allowed
    parameter MUST be present, even when no locationValue is present.

This is questionably supported by the ABNF:

    Geolocation-header = "Geolocation" HCOLON Geolocation-value
    Geolocation-value  = ( locationValue [ COMMA locationValue ] )
                         / routing-param
    locationValue      =  LAQUOT locationURI RAQUOT
                           *(SEMI geoloc-param)
    locationURI        =  sip-URI / sips-URI / pres-URI
                           / http-URI / HTTPS-URI
                           / cid-url ; (from RFC 2392)
                           / absoluteURI ; (from RFC 3261)
    geoloc-param       =  generic-param;  (from RFC 3261)
    routing-param      =  "routing-allowed" EQUAL "yes" / "no"

It only works if you presume that there are separate occurrences of 
GeoLocation-header in the message, one with just locations, another with 
just the routing-param. The routing-param certainly can't be "last in 
the header field value" except in the degenerate sense, since it must be 
first and only in a Geolocation-header.

Below are some specific cases - both valid and invalid. In each case I 
show some headers bracketed by "...". That is intended to mean other 
headers in a message, but all in the same message. (And when I show 
multiple headers, there could be other non-geoloc headers interleaved.)

* The following are legal according to the above, and probably within 
expected usage:

Geolocation: routing-allowed=yes

Geolocation: routing-allowed=yes

Geolocation: routing-allowed=no

* IIUC the following are allowed by the above both syntactically and 
according to the text, but is presumably not *intended* to be valid. 
(Its legal because the in each instance of Geolocation-header its last.)

Geolocation: routing-allowed=no
Geolocation: routing-allowed=yes

The following is also allowed - I don't know if its intended or not:

Geolocation: routing-allowed=yes

* The following is allowed by the ABNF though disallowed by the text:


* The following is *not* allowed by the ABNF. I suspect it might be 
intended to be valid, but I'm far from sure about it:


In addition to that, the text is very explicit that:

    The routing-allowed
    parameter MUST be present, even when no locationValue is present.

but then it says:

    If no routing-allowed parameter
    is present in a SIP request, a SIP intermediary MAY insert this
    value with a RECOMMENDED value of "no" by default.

So its required, but we have rules to follow if its missing. But I don't 
understand how it *can* be required, since the sender of the request may 
not understand/support Geolocation and so won't include it. ISTM that in 
reality its only *required* if the is a locationValue present, and is 
otherwise optional. In that case, an intermediary that adds a 
locationValue not only MAY, but presumably MUST add a missing 
routing-param if it adds a locationValue.

I have never understood why the routing-param is required to be last. 
And as my examples show, its difficult/impossible to enforce this in ABNF.