[Freeswitch-dev] Bug in SIP URI: ; received="XX.XX.XX.XX:XXXX" is not valid (SIP BNF)

Anthony Minessale anthony.minessale at gmail.com
Tue Nov 18 17:47:32 PST 2008


you'll see where sip compliance gets you ;)


On Tue, Nov 18, 2008 at 6:04 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:

> Hi, when FS calls to a natted user, it generates an INVITE with a Request
> URI
> as follows:
>
>  INVITE sip:user at XX.XX.XX.XX:XXXX;transport=udp;received="XX.XX.XX.XX:XXXX"
> SIP/2.0
>
> Well, this is not valid since a SIP URI parameter cannot contain quote
> symbol (").
> You can verify it in RFC 3261 - page 222 (look for "other-param"):
>
> ------------
> uri-parameters    =  *( ";" uri-parameter)
> uri-parameter     =  transport-param / user-param / method-param
>                     / ttl-param / maddr-param / lr-param / other-param
> transport-param   =  "transport="
>                     ( "udp" / "tcp" / "sctp" / "tls"
>                     / other-transport)
> other-transport   =  token
> user-param        =  "user=" ( "phone" / "ip" / other-user)
> other-user        =  token
> method-param      =  "method=" Method
> ttl-param         =  "ttl=" ttl
> maddr-param       =  "maddr=" host
> lr-param          =  "lr"
> other-param       =  pname [ "=" pvalue ]
> pname             =  1*paramchar
> pvalue            =  1*paramchar
> paramchar         =  param-unreserved / unreserved / escaped
> param-unreserved  =  "[" / "]" / "/" / ":" / "&" / "+" / "$"
> -------------
>
> This causes Twinkle sofphone droping the incoming request since it's
> malformed.
> Quote symbol (") should not be used in a SIP URI parameter in order to be
> SIP
> compliant.
>
> Since I just use Twinkle (the best and more SIP compliant softphone for
> Linux) I
> can't test FreeSwitch for now  :(
>
>
> Best regards.
>
>
> --
> Iñaki Baz Castillo
>
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20081118/7ea7c0d6/attachment.html 


More information about the Freeswitch-dev mailing list