[Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Fabio Margarido
Hi there, I'd like to know it there is a way for me to pass a variable number of tagged parameters for Sofia functions. For example, I have an array with an unknown number of strings that represent headers, and I'd like to call nua_invite() with a SIP_HEADER_STR() tag for each member of the

Re: [Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Pekka Pessi
2009/3/9 Fabio Margarido fabiomargar...@gmail.com: I'd like to know it there is a way for me to pass a variable number of tagged parameters for Sofia functions. For example, I have an array with an unknown number of strings that represent headers, and I'd like to call nua_invite() with a

Re: [Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Pekka Pessi
...oops, too fast clickin... 2009/3/9 Fabio Margarido fabiomargar...@gmail.com: I'd like to know it there is a way for me to pass a variable number of tagged parameters for Sofia functions. For example, I have an array with an unknown number of strings that represent headers, and I'd like to

Re: [Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Aleksander Morgado
Hi Fabio, I'd like to know it there is a way for me to pass a variable number of tagged parameters for Sofia functions. For example, I have an array with an unknown number of strings that represent headers, and I'd like to call nua_invite() with a SIP_HEADER_STR() tag for each member of the

Re: [Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Pekka Pessi
2009/3/9 Aleksander Morgado sofia-sip-de...@aleksander.es:   nua_invite(nh, ...other tags..., TAG_NEXT(tags)); Isn't TAG_END() needed here at the end? Or is it implicitly taken from the tag list? The NULL pointer at tags[n_headers].t_tag is used as sentinel. NULL is as good as TAG_END() --