< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] How to have the same parameter appears more than once in the same SIP header


Top of page 32 of RFC3261:

   Even though an arbitrary number of parameter pairs may be attached to
   a header field value, any given parameter-name MUST NOT appear more
   than once.


RjS

On Apr 2, 2009, at 8:24 AM, Scott Godin wrote:

ExtensionParameters don't really support this.  It would be possible to do a trick to get both parameters into the message, but you will only be able to parse out the first one if trying to read an inbound SIP message with these two identical extension parameters in one of the headers.

Example:  msg.header(h_Contacts).front().param(p_extparam) = "\"value_a\";exp_param=\"value_b\"";

Scott

On Wed, Apr 1, 2009 at 10:14 AM, Wong Kok Meng-a17866 <kokmeng.wong@xxxxxxxxxxxx> wrote:
Hi,
 
We have an extension parameter and we require it to appear twice in the same header with different values. Eg,
 
Contact: <sip:subscriber1@xxxxxxxxx:9999>;ext_param=”value_a”;ext_param="value_b"
 
Is there any way that I can do it? Please advise. Thank you very much.
 
Regards,
Kok Meng, Wong

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/