hi,
I have'nt cross-checked the spec to see if the local part of callid does infact accomodate the "@" sign, if so it should'nt as that is the reason for the conflict in your parser.
Your parser would take the after part of the "@" as the host part as one is checking for multiple occurances of the "@" sign, which is how it should be.
So i would suggest instead of using "87602@141351" as the local-id part you would be better of using something like "87602/141351.
Rama
satya <[EMAIL PROTECTED]> wrote:
Hi,SUB: a doubt in SIP header (call-id)I had faced one problem when i'm testing my company's inhouse product, which is implementing SIP.Here my role is :To test the parser modules ---- which are written for headers in SIP like ---- call-id, to, from, via, contact,contact-length, cseq......When i'm trying to test the call-id module... i gave a header like the following oneit is parsed with local-id as 87602 andhost as [EMAIL PROTECTED]but what is I expect waslocal-id as 87602@141351 andhost as worcester.bell-telephone.comsince as per the rfc 2543....... I can give the 'reserved' letter '@' in local-id.------------------------------------------------------------------------------------------------------------------------------------------------------------Call-ID = ( "Call-ID" | "i" ) ":" local-id "@" host
local-id = 1*uric
uric = reserved | unreserved | escaped
reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
unreserved = alphanum | mark
mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
escaped = "%" hex hex
alphanum = alpha | digit
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
alpha = lowalpha | upalpha
upalpha = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"
lowalpha = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" |"j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" |"s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"
hex = "A" | "B" | "C" | "D" | "E" | "F"| "a" | "b" | "c" | "d" | "e" | "f" | digit
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So my doubt was " whether the reserved letter @ can be used in the local-id part of call-id header or not" ...... could u please clarify.. this issue....Please find some time to clear this....I'll be greatful to u...Regards,Senapathy T.( please reply to [EMAIL PROTECTED] or [EMAIL PROTECTED] )
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com
