aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/conversation_api_call.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-06 08:57:09 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-06 08:57:09 +0000
commita0ce326e5d3ad4275cff23de7a7916e492e54a33 (patch)
tree5f924d09b19d57de08988564d3e1aabb6b36674d /src/conversation/conversation_api_call.c
parentaece72e29b041e2dfbc5b49d2fd0d49f8ab2124e (diff)
downloadgnunet-a0ce326e5d3ad4275cff23de7a7916e492e54a33.tar.gz
gnunet-a0ce326e5d3ad4275cff23de7a7916e492e54a33.zip
-allow caller ID to differ from zone used for resolution
Diffstat (limited to 'src/conversation/conversation_api_call.c')
-rw-r--r--src/conversation/conversation_api_call.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/conversation/conversation_api_call.c b/src/conversation/conversation_api_call.c
index f69a6518c..1b51ad397 100644
--- a/src/conversation/conversation_api_call.c
+++ b/src/conversation/conversation_api_call.c
@@ -96,6 +96,11 @@ struct GNUNET_CONVERSATION_Call
96 struct GNUNET_IDENTITY_Ego *caller_id; 96 struct GNUNET_IDENTITY_Ego *caller_id;
97 97
98 /** 98 /**
99 * GNS zone to use to resolve @e callee.
100 */
101 struct GNUNET_IDENTITY_Ego *zone_id;
102
103 /**
99 * Target callee as a GNS address/name. 104 * Target callee as a GNS address/name.
100 */ 105 */
101 char *callee; 106 char *callee;
@@ -530,7 +535,7 @@ reconnect_call (struct GNUNET_CONVERSATION_Call *call)
530 &call_error_handler, 535 &call_error_handler,
531 call); 536 call);
532 call->state = CS_LOOKUP; 537 call->state = CS_LOOKUP;
533 GNUNET_IDENTITY_ego_get_public_key (call->caller_id, 538 GNUNET_IDENTITY_ego_get_public_key (call->zone_id,
534 &my_zone); 539 &my_zone);
535 call->gns_lookup = GNUNET_GNS_lookup (call->gns, 540 call->gns_lookup = GNUNET_GNS_lookup (call->gns,
536 call->callee, 541 call->callee,
@@ -548,6 +553,7 @@ reconnect_call (struct GNUNET_CONVERSATION_Call *call)
548 * 553 *
549 * @param cfg configuration to use, specifies our phone service 554 * @param cfg configuration to use, specifies our phone service
550 * @param caller_id identity of the caller 555 * @param caller_id identity of the caller
556 * @param zone_id GNS zone to use to resolve @a callee
551 * @param callee GNS name of the callee (used to locate the callee's record) 557 * @param callee GNS name of the callee (used to locate the callee's record)
552 * @param speaker speaker to use (will be used automatically immediately once the 558 * @param speaker speaker to use (will be used automatically immediately once the
553 * #GNUNET_CONVERSATION_EC_CALL_PICKED_UP event is generated); we will NOT generate 559 * #GNUNET_CONVERSATION_EC_CALL_PICKED_UP event is generated); we will NOT generate
@@ -560,6 +566,7 @@ reconnect_call (struct GNUNET_CONVERSATION_Call *call)
560struct GNUNET_CONVERSATION_Call * 566struct GNUNET_CONVERSATION_Call *
561GNUNET_CONVERSATION_call_start (const struct GNUNET_CONFIGURATION_Handle *cfg, 567GNUNET_CONVERSATION_call_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
562 struct GNUNET_IDENTITY_Ego *caller_id, 568 struct GNUNET_IDENTITY_Ego *caller_id,
569 struct GNUNET_IDENTITY_Ego *zone_id,
563 const char *callee, 570 const char *callee,
564 struct GNUNET_SPEAKER_Handle *speaker, 571 struct GNUNET_SPEAKER_Handle *speaker,
565 struct GNUNET_MICROPHONE_Handle *mic, 572 struct GNUNET_MICROPHONE_Handle *mic,
@@ -571,6 +578,7 @@ GNUNET_CONVERSATION_call_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
571 call = GNUNET_new (struct GNUNET_CONVERSATION_Call); 578 call = GNUNET_new (struct GNUNET_CONVERSATION_Call);
572 call->cfg = cfg; 579 call->cfg = cfg;
573 call->caller_id = caller_id; 580 call->caller_id = caller_id;
581 call->zone_id = zone_id;
574 call->callee = GNUNET_strdup (callee); 582 call->callee = GNUNET_strdup (callee);
575 call->speaker = speaker; 583 call->speaker = speaker;
576 call->mic = mic; 584 call->mic = mic;