Commit b8c4c6d8 authored by Pekka Pessi's avatar Pekka Pessi

nta: add function nta_leg_get_call_id() to <sofia-sip/nta.h>

parent 448470d6
......@@ -4449,6 +4449,21 @@ char const *nta_leg_tag(nta_leg_t *leg, char const *tag)
return leg->leg_local->a_tag;
}
/** Get Call-Id.
*
* @param leg pointer to dialog object
*
* @return Pointer to Call-Id structure, or NULL if there is none.
*/
sip_call_id_t const *
nta_leg_get_call_id(nta_leg_t const *leg)
{
if (leg)
return leg->leg_id;
else
return NULL;
}
/** Get local tag. */
char const *nta_leg_get_tag(nta_leg_t const *leg)
{
......
......@@ -198,6 +198,9 @@ SOFIAPUBFUN void nta_leg_bind(nta_leg_t *leg,
nta_request_f *callback,
nta_leg_magic_t *);
/** Get Call-Id */
SOFIAPUBFUN sip_call_id_t const *nta_leg_get_call_id(nta_leg_t const *leg);
/** Add local tag. */
SOFIAPUBFUN char const *nta_leg_tag(nta_leg_t *leg, char const *tag);
......
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