[sr-dev] SF.net SVN: openser:[5943] branches/1.4/modules/seas

Elias Baixas elias.baixas at voztele.com
Wed Oct 21 18:56:00 CEST 2009


yes, indeed it was the body in a header parameter :P

Elias

On Wed, Oct 21, 2009 at 6:52 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:

> 2009/10/21 Elias Baixas <elias.baixas at voztele.com>:
> > Revision: 5943
> >          http://openser.svn.sourceforge.net/openser/?rev=5943&view=rev
> > Author:   eliasbaixas
> > Date:     2009-10-21 14:29:23 +0000 (Wed, 21 Oct 2009)
> >
> > Log Message:
> > -----------
> > Fixed error with quoted parameters on URIs
>
>
> Hi Elias, a URI parameter cannot contain quotation (double quotation),
> neither in the key or in the value. This is:
>
> Valid:
> 1) From: <sip:elias at sipmola.org <sip%3Aelias at sipmola.org>;aaa=111>;bbb=222
> 2) From: <sip:elias at sipmola.org <sip%3Aelias at sipmola.org>
> ;aaa=111>;bbb="222"
>
> Invalid:
> 3) From: sip:elias at sipmola.org <sip%3Aelias at sipmola.org>;aaa="111">
> 4) From: sip:elias at sipmola.org <sip%3Aelias at sipmola.org>;"aaa"=111>
> 5) From: <sip:elias at sipmola.org <sip%3Aelias at sipmola.org>
> ;aaa=111>;"bbb"=222
>
> Note that in case 2) bbb is a header parameter key, so its value can be
> quoted.
> Case 5) is invalid since the header parameter key ("bbb") cannot be quoted.
>
> NOTE: I just mean *double* quotation ("). Using single quotation (')
> is allowed in key and value for SIP URI parameters and header
> parameters. The following is valid:
>
> 6) From: <sip:elias at sipmola.org <sip%3Aelias at sipmola.org>
> ;'aaa'='111'>;'bbb'='222'
>
>
> Regards.
>
>
> PS: If it's useful for you, I coded some time ago a SIP grammar tester
> (using Ragel) implementing *100% strictly* the SIP ABNF grammar, so I
> can check with it *any* SIP ABNF component:
>  http://dev.sipdoc.net/projects/ragel-sip-parser/wiki/Phase1
>
>
> --
> Iñaki Baz Castillo
> <ibc at aliax.net>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20091021/d8c39eca/attachment.htm>


More information about the sr-dev mailing list