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 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

Reply via email to