Commit 99ec7b17 authored by Pekka Pessi's avatar Pekka Pessi

nua_params: saving NUTAG_EARLY_ANSWER value to handle params.

darcs-hash:20061004161412-65a35-b49f86816fa7742940122970939313efca45261e.gz
parent fa3ecdd9
......@@ -276,6 +276,7 @@ int nua_stack_init_instance(nua_handle_t *nh, tagi_t const *tags)
* NUTAG_AUTOANSWER() \n
* NUTAG_CALLEE_CAPS() \n
* NUTAG_DETECT_NETWORK_UPDATES() \n
* NUTAG_EARLY_ANSWER() \n
* NUTAG_EARLY_MEDIA() \n
* NUTAG_ENABLEINVITE() \n
* NUTAG_ENABLEMESSAGE() \n
......@@ -398,6 +399,7 @@ int nua_stack_init_instance(nua_handle_t *nh, tagi_t const *tags)
* NUTAG_AUTOALERT() \n
* NUTAG_AUTOANSWER() \n
* NUTAG_CALLEE_CAPS() \n
* NUTAG_EARLY_ANSWER() \n
* NUTAG_EARLY_MEDIA() \n
* NUTAG_ENABLEINVITE() \n
* NUTAG_ENABLEMESSAGE() \n
......@@ -680,6 +682,10 @@ static int nhp_set_tags(su_home_t *home,
else if (tag == nutag_autoalert) {
NHP_SET(nhp, auto_alert, value != 0);
}
/* NUTAG_EARLY_ANSWER(early_answer) */
else if (tag == nutag_early_answer) {
NHP_SET(nhp, early_answer, value != 0);
}
/* NUTAG_EARLY_MEDIA(early_media) */
else if (tag == nutag_early_media) {
NHP_SET(nhp, early_media, value != 0);
......@@ -1442,6 +1448,7 @@ int nua_stack_get_params(nua_t *nua, nua_handle_t *nh, nua_event_t e,
TIF(NUTAG_MEDIA_ENABLE, media_enable),
TIF(NUTAG_ENABLEINVITE, invite_enable),
TIF(NUTAG_AUTOALERT, auto_alert),
TIF(NUTAG_EARLY_ANSWER, early_answer),
TIF(NUTAG_EARLY_MEDIA, early_media),
TIF(NUTAG_ONLY183_100REL, only183_100rel),
TIF(NUTAG_AUTOANSWER, auto_answer),
......
......@@ -60,7 +60,8 @@ typedef struct nua_handle_preferences
unsigned nhp_media_enable:1;
unsigned nhp_invite_enable:1;
unsigned nhp_auto_alert:1;
unsigned nhp_early_media:1;/**< Establish early media session */
unsigned nhp_early_answer:1; /**< Include answer in 1XX */
unsigned nhp_early_media:1; /**< Establish early media with 100rel */
unsigned nhp_only183_100rel:1;/**< Only 100rel 183. */
unsigned nhp_auto_answer:1;
unsigned nhp_auto_ack:1; /**< Automatically ACK a final response */
......@@ -135,6 +136,7 @@ typedef struct nua_handle_preferences
unsigned nhb_media_enable:1;
unsigned nhb_invite_enable:1;
unsigned nhb_auto_alert:1;
unsigned nhb_early_answer:1;
unsigned nhb_early_media:1;
unsigned nhb_only183_100rel:1;
unsigned nhb_auto_answer:1;
......@@ -162,8 +164,8 @@ typedef struct nua_handle_preferences
unsigned nhb_allow:1;
unsigned nhb_supported:1;
unsigned nhb_user_agent:1;
unsigned nhb_organization:1;
unsigned :0; /* at most 32 bits ... */
unsigned nhb_organization:1;
unsigned nhb_m_display:1;
unsigned nhb_m_username:1;
......
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