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" 
<sip-implementors-boun...@lists.cs.columbia.edu on behalf of 
pkyzi...@alum.mit.edu> wrote:

>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 message. :-)
>
>In general you will need to buffer the full message. You could arrange 
>your API so that individual args are specified as ranges within the 
>message buffer.
>
>       Thanks,
>       Paul
>
>> 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 SIP 
>> library.
>> Currently the API signature is:
>>
>> iSipSessStart (char * psFrom, char *psTo);
>>
>> However, length is currently not known. Now, if I use strlen(), I might be 
>> into trouble if the API user does not end the parameter with NULL.
>> Secondly, I need to make a copy of the string as API user can pass constant 
>> string in the argument which cannot be modified..
>>
>> Hence, the question of To/ From header length.
>>
>>
>> Thanks for the help,
>> Arun
>>
>> _______________________________________________
>> Sip-implementors mailing list
>> Sip-implementors@lists.cs.columbia.edu
>> https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
>>
>
>_______________________________________________
>Sip-implementors mailing list
>Sip-implementors@lists.cs.columbia.edu
>https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to