Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sip_add_header(3sip) [opensolaris man page]

sip_add_header(3SIP)				   Session Initiation Protocol Library Functions			      sip_add_header(3SIP)

NAME
sip_add_header - add a SIP header to the SIP message SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ] #include <sip.h> int sip_add_header(sip_msg_t sip_msg, char *header_string); DESCRIPTION
The sip_add_header() function takes the SIP header header_string, adds a CRLF (carriage return/line feed) and appends it to the SIP message sip_msg. The sip_add_header() function is typically used when adding a SIP header with multiple values. RETURN VALUES
The sip_add_header() function returns 0 on success and the appropriate error value on failure. ERRORS
On failure, the sip_add_header() function can return one of the following error values: EINVAL Mandatory parameters are not provided, i.e. null. EPERM The message cannot be modified. ENOMEM Error allocating memory for creating headers/parameters. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
libsip(3LIB) SunOS 5.11 09 Feb 2007 sip_add_header(3SIP)

Check Out this Related Man Page

sip_add_branchid_to_via(3SIP)			   Session Initiation Protocol Library Functions		     sip_add_branchid_to_via(3SIP)

NAME
sip_add_branchid_to_via - add a branch parameter to the topmost VIA header in the SIP message SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ] #include <sip.h> int sip_add_branchid_to_via(sip_msg_t sip_msg, char *branchid); DESCRIPTION
The sip_add_branchid_to_via() function adds a branch param to the topmost VIA header in the SIP message sip_msg. Note that a new header is created as a result of adding the branch parameter and the old header is marked deleted. Applications with multiple threads working on the same VIA header need to take note of this. RETURN VALUES
These functions return 0 on success and the appropriate error value on failure. ERRORS
On failure, functions that return an error value may return one of the following: EINVAL Mandatory parameters are not provided or are NULL. For sip_add_branchid_to_via(), the topmost VIA header already has a branch param or the SIP message does not have a VIA header. EPERM The message cannot be modified. ENOMEM There is an error allocating memory for creating headers/parameters. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
libsip(3LIB) SunOS 5.11 25 Jan 2007 sip_add_branchid_to_via(3SIP)
Man Page

3 More Discussions You Might Find Interesting

1. Linux

SIP VoIP Technology

I would like to know more about SIP technology (Session Initiation Protocol). I have some trouble with SIP eXpress router and VoIP trasfer from server to client . -The server is working and the client uses Xtensoftphone but the client can not to register in server . -I need some more... (0 Replies)
Discussion started by: hydra
0 Replies

2. Shell Programming and Scripting

how to extract the value

hi i have a file which has following content: <config> <key>Protocol</key> <value>SIP</value> <config> i want a script which will see the value of Protocol is SIP. Can any one pls help me? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

3. IP Networking

Same IP | Different port | Different MAC

Hello all, I meet a "strange" situation, at least for me, and i want your opinion. I have a node used as SIP B2BUA (node A) and i have the following issue. SIP messages does not reach a client node (node B) but ICMP do. I see in the pcap that SIP and ICMP messages have different destination... (3 Replies)
Discussion started by: @dagio
3 Replies