Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
633e452a
Commit
633e452a
authored
Sep 29, 2005
by
Pekka Pessi
Browse files
Using offer/answer tags.
darcs-hash:20050929182505-65a35-806c826f7f8a0140f529eb39f1cba0fa51cd938d.gz
parent
af826441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
libsofia-sip-ua/nua/nua_stack.c
libsofia-sip-ua/nua/nua_stack.c
+11
-0
No files found.
libsofia-sip-ua/nua/nua_stack.c
View file @
633e452a
...
...
@@ -2708,6 +2708,8 @@ static void signal_call_state_change(nua_handle_t *nh,
sdp_session_t
const
*
local_sdp
=
NULL
;
char
const
*
local_sdp_str
=
NULL
;
int
offer_recv
,
answer_recv
,
offer_sent
,
answer_sent
;
if
(
ss
->
ss_state
!=
nua_callstate_ready
||
next_state
>
nua_callstate_ready
)
SU_DEBUG_5
((
"nua(%p): call state changed: %s -> %s%s%s%s%s
\n
"
,
nh
,
nua_callstate_name
(
ss
->
ss_state
),
...
...
@@ -2730,6 +2732,11 @@ static void signal_call_state_change(nua_handle_t *nh,
SOATAG_LOCAL_SDP_STR_REF
(
local_sdp_str
),
TAG_END
());
offer_recv
=
oa_recv
&&
strcasecmp
(
oa_recv
,
"offer"
)
==
0
;
answer_recv
=
oa_recv
&&
strcasecmp
(
oa_recv
,
"answer"
)
==
0
;
offer_sent
=
oa_sent
&&
strcasecmp
(
oa_sent
,
"offer"
)
==
0
;
answer_sent
=
oa_sent
&&
strcasecmp
(
oa_sent
,
"answer"
)
==
0
;
/* XXX:
* - add delivery of complete session and transaction state
* - build tag list once and reuse it for all ua_event()s
...
...
@@ -2750,6 +2757,10 @@ static void signal_call_state_change(nua_handle_t *nh,
NUTAG_CALLSTATE
(
ss_state
),
NH_ACTIVE_MEDIA_TAGS
(
1
,
nh
->
nh_soa
),
/* NUTAG_SOA_SESSION(nh->nh_soa), */
TAG_IF
(
offer_recv
,
NUTAG_OFFER_RECV
(
offer_recv
)),
TAG_IF
(
answer_recv
,
NUTAG_ANSWER_RECV
(
answer_recv
)),
TAG_IF
(
offer_sent
,
NUTAG_OFFER_SENT
(
offer_sent
)),
TAG_IF
(
answer_sent
,
NUTAG_ANSWER_SENT
(
answer_sent
)),
TAG_IF
(
oa_recv
,
SOATAG_REMOTE_SDP
(
remote_sdp
)),
TAG_IF
(
oa_recv
,
SOATAG_REMOTE_SDP_STR
(
remote_sdp_str
)),
TAG_IF
(
oa_sent
,
SOATAG_LOCAL_SDP
(
local_sdp
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment