+ break;
+
+ case RELATION_TYPE_CALLING: /* by calling */
+ /* remove all relations that are in called */
+ release_again2:
+ reltemp = j_relation;
+ while(reltemp)
+ {
+ if (reltemp->type == RELATION_TYPE_SETUP)
+ {
+ /* send release to endpoint */
+ message = message_create(j_serial, reltemp->epoint_id, JOIN_TO_EPOINT, message_type);
+ memcpy(&message->param, param, sizeof(union parameter));
+ message_put(message);
+
+ if (release(reltemp, LOCATION_PRIVATE_LOCAL, CAUSE_NORMAL))
+ return; // must return, because join IS destroyed
+ goto release_again2;
+ }
+ reltemp = reltemp->next;
+ }
+ PERROR("we are still here, this should not happen\n");
+ break;
+
+ default: /* by connected */