Commit 288bd90f authored by Pekka Pessi's avatar Pekka Pessi

nta.c, sofia-sip.nta.h: added nta_leg_get_seq(), nta_leg_get_rseq()

darcs-hash:20080124082658-65a35-0261d6f5603c382ce0f5c30176649193c35704ee.gz
parent 8aba9c44
......@@ -3905,6 +3905,18 @@ char const *nta_leg_get_rtag(nta_leg_t const *leg)
return NULL;
}
/** Get local request sequence number. */
uint32_t nta_leg_get_seq(nta_leg_t const *leg)
{
return leg ? leg->leg_seq : 0;
}
/** Get remote request sequence number. */
uint32_t nta_leg_get_rseq(nta_leg_t const *leg)
{
return leg ? leg->leg_rseq : 0;
}
/** Save target and route set at UAC side.
*
* @sa nta_leg_server_route(), @RFC3261 section 12.1.2
......
......@@ -210,6 +210,12 @@ SOFIAPUBFUN char const *nta_leg_rtag(nta_leg_t *leg, char const *tag);
/** Get remote tag. */
SOFIAPUBFUN char const *nta_leg_get_rtag(nta_leg_t const *leg);
/** Get local request sequence number. @NEW_1_12_9 */
SOFIAPUBFUN uint32_t nta_leg_get_seq(nta_leg_t const *leg);
/** Get remote request sequence number. @NEW_1_12_9 */
SOFIAPUBFUN uint32_t nta_leg_get_rseq(nta_leg_t const *leg);
/** Set UAC route. */
SOFIAPUBFUN int nta_leg_client_route(nta_leg_t *leg,
sip_record_route_t const *route,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment