Both are correct. The SIP grammar allows for headers to be sent in either comma separated form or separate header values. Hence,
Via: A Via B is same as Via: A , B BTW, this is a general rule for all headers - not just Via. See section 7.3 of bis-05 for examples. regds arjun -- Arjun Roychowdhury @ Hughes 11717 Exploration Lane, Germantown, MD, 20876 (O): 240-453-2384 (M):240-475-2139 "Ashwani" <[EMAIL PROTECTED]> on 11/02/2001 06:19:07 AM To: [EMAIL PROTECTED] cc: Subject: [Sip-implementors] Multiple Via Fields I am little confused with the syntax of via headers according to draft it is like this Via = ( "Via" |"v" ) ":" 1#( sent-protocol sent-by *( ";" via-params ) [ comment ] ) This means, according to syntax multiple Via fields will be coming separated by comma. for e.g. if we consider following Via: SIP/2.0/UDP c.bell-tell.com:5060,SIP/2.0/UDP 10.0.0.1:5060;received=199.172.136.3 But every where in the document the above is shown as Via: SIP/2.0/UDP c.boston.bell-tell.com:5060 Via: SIP/2.0/UDP 10.0.0.1:5060;received=199.172.136.3 Please anybody clarify what will be the correct way in which multiple via fields will be coming in a SIP message Thanks in Advance Ashwani (See attached file: att1.htm)
|
I am little confused with the syntax of via
headers
according to draft it is like this
Via = ( "Via" |"v" ) ":" 1#( sent-protocol sent-by*( ";" via-params ) [ comment ] )
This means, according to syntax multiple Via fields will be coming separated by comma. for e.g. if we consider following Via: SIP/2.0/UDP c.bell-tell.com:5060,SIP/2.0/UDP 10.0.0.1:5060;received=199.172.136.3
But every where in the document the above is shown as Via: SIP/2.0/UDP c.boston.bell-tell.com:5060 Via: SIP/2.0/UDP 10.0.0.1:5060;received=199.172.136.3 Please anybody clarify what will be the correct way in which multiple via fields will be coming in a SIP message Thanks in Advance Ashwani
|
