- fix #3217
authorSree Harsha Totakura <totakura@in.tum.de>
Sun, 22 Dec 2013 10:30:23 +0000 (10:30 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Sun, 22 Dec 2013 10:30:23 +0000 (10:30 +0000)
src/conversation/conversation_api_call.c
src/conversation/test_conversation_api.c

index 7cd723c2c10e6696bed273aa5ba5844e20f9a07a..befbbc91048fb3df5a90fdcd76a7e9600eed1e3d 100644 (file)
@@ -417,7 +417,7 @@ handle_gns_response (void *cls,
   struct ClientCallMessage *ccm;
 
   GNUNET_break (NULL != call->gns_lookup);
-  GNUNET_break (CS_LOOKUP == call->gns_lookup);
+  GNUNET_break (CS_LOOKUP == call->state);
   call->gns_lookup = NULL;
   for (i=0;i<rd_count;i++)
   {
index 04700ef54a22c3c47a9382125c26f3c5d0e2fe9a..cad1a8d133014fd905fb60df1d24f23cad230642 100644 (file)
@@ -131,14 +131,14 @@ play (void *cls,
       const void *data)
 {
   const char *origin = cls;
-  static unsigned int phone_i;
+  static unsigned int phone_i = 1;
   static unsigned int call_i;
   char buf[32];
 
   if (0 == strcmp (origin, "phone"))
-    GNUNET_snprintf (buf, sizeof (buf), "phone-%u", phone_i++);
-  else
     GNUNET_snprintf (buf, sizeof (buf), "call-%u", call_i++);
+  else
+    GNUNET_snprintf (buf, sizeof (buf), "phone-%u", phone_i++);
   if ( (data_size != strlen (buf) + 1) ||
        (0 != strncmp (buf, data, data_size)) )
   {
@@ -148,6 +148,10 @@ play (void *cls,
              (int) data_size,
              (const char *) data);
   }
+  else
+  {
+    fprintf (stderr, ".");
+  }
   if ( (20 < call_i) &&
        (20 < phone_i) &&
        (NULL != call) )