Looks like the valid form is just "From: <sip:Alice,[email protected]:5060>;tag=fmTag-1234567890-0". From the part you quote, user-unreserved is a valid component of userinfo, and ',' is a character in the user-unreserved set, so it can be used directly without escaping.
For reference, escaped characters are not done with backslashes, but are in the form 'escaped = "%" HEXDIG HEXDIG'. So an escaped comma (which is valid but not necessary) would be %2C, i.e. "From: <sip:alice%[email protected]:5060>;tag=fmTag-1234567890-0" On 20 August 2014 20:38, Paul Miller <[email protected]> wrote: > Hi all, > > I am interested in setting up a test call whereby the Userpart of the URI > has a comma (‘,’) included; however looking at the ABNF syntax I cannot > fathom out an example SIP header line that would be syntactically correct. > > I have also tried a few clients and they all seem to behaviour differently > (some removed it, others simply kept a comma and did not escape it). > > > > I am looking at a From Header: where Alice,Smith of example.com is sending a > message. > > > > E.g. > > From: <sip:Alice\,[email protected]:5060>;tag=fmTag-1234567890-0 > > > > As you can see I am thinking the comma is to be escaped using the backslash > character but is that correct? > > > > ======================== > > Extract of ABNF site > > Userinfo Top > > userinfo = ( user / telephone-subscriber ) > [ ":" password ] "@" > > ; examples: > > ; sip:[email protected] > > ; sip:alice:[email protected];transport=tcp > > ; sip:+1-212-555-1212:[email protected];user=phone > > > > user = 1*( unreserved / escaped / user-unreserved > ) > > user-unreserved = "&" / "=" / "+" / > "$" / "," / ";" / "?" / "/" > > > > password = *( unreserved / escaped / "&" / > "=" / "+" / "$" / "," ) > > > Thanks for any assistance > > > > Paul > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Sipp-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sipp-users > ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
