sip_get_trans(3SIP) Session Initiation Protocol Library Functions sip_get_trans(3SIP)NAME
sip_get_trans - lookup a transaction
SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ]
#include <sip.h>
const struct sip_xaction *sip_get_trans(sip_msg_t sip_msg, int which,
int *error);
DESCRIPTION
The sip_get_trans() transaction for the SIP message sip_msg. A transaction is not freed if there are any references on it.
The transaction type should be specified as one of the following:
SIP_CLIENT_TRANSACTON - lookup a client transaction
SIP_SERVER_TRANSACTON - lookup a server transaction
The sip_get_trans() function matches a transaction to a message as specified in RFC 3261, sections 17.1.3 and 17.2.3. The sip_get_trans()
function holds a reference to the returned transaction. The caller must release this reference after use.
RETURN VALUES
The sip_get_trans() function returns the required value on success or NULL on failure.
The value of errno is not changed by these calls in the event of an error.
ERRORS
On success, the value of the location pointed to by error is set to 0.
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_get_trans(3SIP)
Check Out this Related Man Page
sip_hold_trans(3SIP) Session Initiation Protocol Library Functions sip_hold_trans(3SIP)NAME
sip_hold_trans, sip_release_trans - hold or release reference on a transaction
SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ]
#include <sip.h>
void sip_hold_trans(sip_transaction_t sip_trans);
void sip_release_trans(sip_transaction_t sip_trans);
DESCRIPTION
The sip_hold_trans() function is used to hold a reference on the transaction sip_trans. A transaction is not freed if there are any refer-
ences on it.
The sip_release_trans() function is used to release a reference on the transaction sip_trans. If the reference falls to 0 and the transac-
tion is in a terminated state, the transaction is freed.
RETURN VALUES
The value of errno is not changed by these calls in the event of an error.
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_hold_trans(3SIP)
Hi
I am new to this forum.I need a help in the following:
We receve pipe delimited file with
transaction ID,tran_date,Quest_cd,Ans_cd,ans_value.
Same transaction ID can be repeated with different quest_cd and ans_cd.
Basically I need to check if a perticular pair of quest_cd and ans_cd (say... (13 Replies)
HI Guys
whenever i post a transaction , abcd.in file is stored in the temp and vanishes when the transaction is compleated . the abcd.in file stays for 1 sec in temp is der any solution to capture the abcd.in file to another directory
cp -r /tmp/abcd.in /tmp/smith.in
when i used the... (1 Reply)
We are getting below error when processing a transaction through ESB.
I work for SOA admin and checked the JCA connection is working fine also code also working fine in other envs.
An unhandled exception has been thrown in the ESB system. The exception reported is:... (1 Reply)
Hi guys, I was wondering if someone can give me a hand in helping me append transaction header line in a file at the end of the transaction detail lines.
Basically, I have a file that looks like this:
FHEAD File1
THEAD TRANS1-blah
TDETL HI1
TDETL HI2
TDETL HI3
TTAIL TRANS1-blah
THEAD... (3 Replies)
Hi,
I have an issue where i need to lookup in a given transaction file and if the same transaction is found in another file, then i need to replace a few columns with some other value.
Finally, the changed and unchanged lines must be printed and stored in the same source file.
for example... (5 Replies)
Hi All,
I have transaction in one file.I want to match that to another file and find the number of time the transaction is available on the other file.I need to take each record from TRANSFILE and match that with SPEND FILE and find the number of counts of the transaction
TRANSFILE:
... (4 Replies)