[SIPForum-discussion] help on From header
Hadriel Kaplan
HKaplan at acmepacket.com
Thu Jul 30 17:28:30 UTC 2009
The "user" param of the URI is set to "phone", which is supposed to mean the username portion is a telephone number.
I can't recall where it is now exactly - it was in RFC 2543 explicitly, but it's only mentioned as a MAY in 3261 and not described well.
Since the URI username is "Anonymous" in your case, the parser is apparently choking on it not being a phone number.
In theory the device sending this message shouldn't be putting that "user=phone" param in there (or shouldn't be leaving it in there), but your device also should be able to deal with the fact it did. (i.e., be conservative in what you send, liberal in what you receive)
-hadriel
________________________________
From: discussion-bounces at sipforum.org [mailto:discussion-bounces at sipforum.org] On Behalf Of XIAO Xiaohong
Sent: Tuesday, July 28, 2009 9:18 PM
To: discussion at sipforum.org
Subject: [SIPForum-discussion] help on From header
Hello,
Could somebody tell me following From header is valid or not? Which rfc specified "user=phone"?
From:Anonymous<sip:Anonymous at anonymous.invalid;user=phone>;tag=F4363246313536415576E403
The SIP stack in my equipment complains when it is trying to decoding above From header.
STACK ERROR:Syntax error while parsing Tel/related
STACK ERROR:syntax error, unexpected ALPHAS, expecting ISDNTAG or EXTENSIONTAG or PHONETAG
If we change the From header to
From:Anonymous<sip:Anonymous at anonymous.invalid>;tag=F4363246313536415576E403
Then everything is OK.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20090730/1c290460/attachment-0002.html>
More information about the discussion
mailing list