Header initialization/validation in pjlib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does core/dialog/invite layers contain methods for initializing and  
validating a common header (To:/From:/Contact:) from a string?

E.g. if I just do (pseudocode):

	                pHeader = (pjsip_hdr*)pjsip_generic_string_hdr_create 
(pTxData->pool,
							            "Contact",
							            "notvalid");
  	                pjsip_msg_add_hdr(pTxData->msg, pHeader);

The message goes out with:

Contact: notvalid

What's the best way, given a string, to assign it to a header, but  
make sure is valid at the same time?

Thanks,
Alex



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux