Re: [Sip-implementors] Max length of To/ From headers

2015-11-16 Thread Dale R. Worley
Arun Arora writes: > Hi Dale, The crash is exactly I am trying to avoid, plus I don't want > to rely on the API user to add NUL at the end. Yes, I am using char * In that case, you can use pointer/length pairs (as others have noted). But of course, if you can't depend on the caller giving you va

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Paul Kyzivat
On 11/13/15 10:37 AM, Arun Arora wrote: Hi Paul, It sounds interesting :) Can you give an example…? I didn’t exactly catch the reference of the range as API arg. Just pass around a pointer to the message buffer, and use an offset/length pair to identify each particular value of interest with

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Arun Arora
On 13/11/15, 9:04 PM, "Dale R. Worley" wrote: >Arun Arora writes: >> Is their any specific length of To/ From header defined by the >> standard (I guess not, but still would like to know other's views) > >As far as I can tell, your question is, "Is there a specific length >defined from To/F

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Arun Arora
Hi Paul, It sounds interesting :) Can you give an example…? I didn’t exactly catch the reference of the range as API arg. Thanks, Arun On 13/11/15, 8:25 PM, "Paul Kyzivat" wrote: >On 11/13/15 6:58 AM, Arun Arora wrote: >> Hi all, >> >> Is their any specific length of To/ From header defi

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Dale R. Worley
Arun Arora writes: > Is their any specific length of To/ From header defined by the > standard (I guess not, but still would like to know other's views) As far as I can tell, your question is, "Is there a specific length defined from To/From headers?" The answer to that is definitely not. > Cur

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Paul Kyzivat
On 11/13/15 6:58 AM, Arun Arora wrote: Hi all, Is their any specific length of To/ From header defined by the standard (I guess not, but still would like to know other’s views) My usual answer to this is that the length of any one header field in the message is bounded by the size of the mes

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Joel Gerber
: 519.786.1241 -Original Message- From: Arun Arora [mailto:arun.arora@gmail.com] Sent: November-13-15 8:02 AM To: Joel Gerber ; sip-implementors@lists.cs.columbia.edu Subject: Re: [Sip-implementors] Max length of To/ From headers Hmm.. What you say about length is correct and I

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Arun Arora
...@lists.cs.columbia.edu >[mailto:sip-implementors-boun...@lists.cs.columbia.edu] On Behalf Of Arun Arora >Sent: November-13-15 7:35 AM >To: Brett Tate ; sip-implementors@lists.cs.columbia.edu >Subject: Re: [Sip-implementors] Max length of To/ From headers > >Hmm.. That’s true, ‘No

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Joel Gerber
: [Sip-implementors] Max length of To/ From headers Hmm.. That’s true, ‘No max should be there’ to support inter-op. However, for API design, I guess their is no way other than asking API-User to Provide the length of Strings for To and From. I am designing the API to receive the To/ From header

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Arun Arora
Hmm.. That’s true, ‘No max should be there’ to support inter-op. However, for API design, I guess their is no way other than asking API-User to Provide the length of Strings for To and From. I am designing the API to receive the To/ From header in form or 'name-addr' or 'addr-spec' in order to

Re: [Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Brett Tate
> Is their any specific length of To/ From header defined by the standard No. > In case no specific length is defined, is their any common-practice > for max length? RFC 3261 section 18.1.1 might provide you some guidance for message size minimums to support. The common practice is not cap the

[Sip-implementors] Max length of To/ From headers

2015-11-13 Thread Arun Arora
Hi all, Is their any specific length of To/ From header defined by the standard (I guess not, but still would like to know other’s views) In case no specific length is defined, is their any common-practice for max length? The question is related to the SIP session start API I am working on for