*
* This test performs the operations of a call to a phone
* where the phone user picks up and then the call is
- * terminated by the party that initiated the call. The
- * actual transmission of voice data is not tested.
+ * terminated by the party that initiated the call.
*/
#include "platform.h"
#include "gnunet_util_lib.h"
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)) )
{
(int) data_size,
(const char *) data);
}
+ else
+ {
+ fprintf (stderr, ".");
+ }
if ( (20 < call_i) &&
(20 < phone_i) &&
(NULL != call) )
break;
case GNUNET_CONVERSATION_EC_CALL_SUSPENDED:
case GNUNET_CONVERSATION_EC_CALL_RESUMED:
+ case GNUNET_CONVERSATION_EC_CALL_ERROR:
fprintf (stderr, "Unexpected call code: %d\n", code);
break;
}