Lines Matching refs:user

101  * Remove connection from its user's queue
107 if (conn->user == NULL)
108 cc_conn_log(conn, "no %s", "user");
110 TAILQ_REMOVE(&conn->user->connq, conn, connq_link);
111 conn->user->queue_act--;
112 conn->user = NULL;
117 * Put connection on user queue
120 cc_connect_to_user(struct ccconn *conn, struct ccuser *user)
123 if (conn->user != NULL)
124 cc_conn_log(conn, "still connected to %p", conn->user);
125 conn->user = user;
126 TAILQ_INSERT_TAIL(&user->connq, conn, connq_link);
127 conn->user->queue_act++;
315 if (conn->user != NULL) {
316 cc_conn_log(conn, "still connected to user %p\n", conn->user);
317 conn->user->queue_act--;
318 TAILQ_REMOVE(&conn->user->connq, conn, connq_link);
391 struct ccuser *u = conn->user;
404 * user aborts, so check that there is a user before using it.
418 /* don't send a drop - user'll get a rel */
429 /* don't send a drop - user'll get a rel */
474 /* return an error to the user, go back to C1/U1
499 /* no user - destroy */
538 /* user has not seen the connection - destroy */
572 printf(",%02x,%02x", sap->blli_id2.proto, sap->blli_id2.user);
578 sap->blli_id3.proto, sap->blli_id3.user,
601 struct ccuser *user;
641 LIST_FOREACH(user, &priv->user_list, node_link) {
642 if ((user->state == USER_IN_WAITING ||
643 user->state == USER_IN_ARRIVED ||
644 user->state == USER_IN_WAIT_ACC ||
645 user->state == USER_IN_WAIT_REJ) &&
646 !unisve_is_catchall(user->sap)) {
648 printf("TRYING user=%p\n", user);
649 print_sap(user->sap);
651 if (unisve_match(user->sap, &conn->called,
661 LIST_FOREACH(user, &priv->user_list, node_link) {
662 if ((user->state == USER_IN_WAITING ||
663 user->state == USER_IN_ARRIVED ||
664 user->state == USER_IN_WAIT_ACC ||
665 user->state == USER_IN_WAIT_REJ) &&
666 unisve_is_catchall(user->sap))
684 if (user->queue_max == user->queue_act) {
696 cc_connect_to_user(conn, user);
698 cc_user_sig(user, USER_SIG_SETUP_IND, NULL, 0);
737 cc_user_sig(conn->user, USER_SIG_ADD_PARTY_ACK,
759 cc_user_sig(conn->user, USER_SIG_ADD_PARTY_REJ, NULL, epref->epref);
777 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1]));
778 conn->user->cause[0] = drop->cause;
780 cc_user_sig(conn->user, USER_SIG_DROP_PARTY_IND,
785 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1]));
786 conn->user->cause[0] = drop->cause;
788 cc_user_sig(conn->user, USER_SIG_ADD_PARTY_REJ,
794 cc_user_sig(conn->user, USER_SIG_DROP_PARTY_OK, NULL, 0);
846 cc_user_sig(conn->user, USER_SIG_CONNECT_OUTGOING_ERR,
885 /* user informed of arrival of this call */
926 /* reject from user */
927 struct ccuser *user = conn->user;
930 cc_user_sig(user, USER_SIG_REJECT_ERR,
946 struct ccuser *user = conn->user;
949 cc_user_sig(user, USER_SIG_ACCEPT_ERR,
956 cc_user_sig(user, USER_SIG_ACCEPT_ERR,
1017 /* request to add party from user */
1027 cc_user_sig(conn->user, USER_SIG_ADD_PARTY_ERR,
1037 cc_user_sig(conn->user, USER_SIG_ADD_PARTY_ERR,
1059 /* user request to drop a party */
1068 cc_user_sig(conn->user, USER_SIG_DROP_PARTY_ERR,
1080 cc_user_sig(conn->user, USER_SIG_DROP_PARTY_ERR,
1090 cc_user_sig(conn->user, USER_SIG_DROP_PARTY_ERR,
1126 * The connection is already disconnected from the user.
1150 * of the user - the others are re-dispatched.
1226 if (conn->user != NULL)
1227 cc_user_sig(conn->user,
1257 * Shuffle attributes and inform the user.
1288 cc_user_sig(conn->user, USER_SIG_SETUP_CONFIRM,
1370 cc_user_sig(conn->user, USER_SIG_SETUP_COMPL, NULL, 0);
1438 memcpy(conn->user->cause, conf->release.cause,
1439 sizeof(conn->user->cause));
1441 * If any party is in P6, ok the user
1447 cc_user_sig(conn->user,
1452 cc_user_sig(conn->user, USER_SIG_RELEASE_CONFIRM,
1467 conn->user->aborted = 1;
1468 memcpy(conn->user->cause, conf->release.cause,
1469 sizeof(conn->user->cause));
1476 memcpy(conn->user->cause, conf->release.cause,
1477 sizeof(conn->user->cause));
1478 cc_user_sig(conn->user, USER_SIG_RELEASE_CONFIRM,
1502 memcpy(conn->user->cause, conf->release.cause,
1503 sizeof(conn->user->cause));
1505 * If any party is in P6, ok the user
1511 cc_user_sig(conn->user,
1516 cc_user_sig(conn->user, USER_SIG_RELEASE_CONFIRM,
1532 conn->user->aborted = 1;
1541 memcpy(conn->user->cause, conf->release.cause,
1542 sizeof(conn->user->cause));
1543 cc_user_sig(conn->user, USER_SIG_RELEASE_CONFIRM,
1592 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1]));
1593 conn->user->cause[0] = ind->rej.cause;
1625 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1]));
1626 conn->user->cause[0] = ind->drop.cause;
1665 struct ccuser *user = conn->user;
1671 if (conn->user != NULL)
1672 cc_user_sig(conn->user,
1684 if (conn->user != NULL) {
1686 memset(&conn->user->cause, 0,
1687 sizeof(conn->user->cause));
1688 cc_user_sig(conn->user,
1695 if (user == NULL) {
1703 cc_user_sig(user, USER_SIG_ACCEPT_OK, NULL, 0);
1711 cc_user_sig(conn->user, USER_SIG_ACCEPTING, NULL, 0);
1716 if (user != NULL) {
1718 cc_user_sig(user, USER_SIG_REJECT_OK, NULL, 0);
1728 if (user != NULL)
1729 cc_user_sig(user,
1748 /* signal to user only if there are any other parties */
1752 if (p1 != NULL && user != NULL)
1753 cc_user_sig(user,
1782 struct ccuser *user = conn->user;
1789 if (conn->user != NULL)
1790 cc_user_sig(conn->user,
1814 if (user == NULL) {
1833 cc_user_sig(conn->user, USER_SIG_RELEASE_ERR,
1838 memset(&conn->user->cause, 0,
1839 sizeof(conn->user->cause));
1840 cc_user_sig(conn->user,
1845 memset(&conn->user->cause, 0,
1846 sizeof(conn->user->cause));
1847 cc_user_sig(conn->user,
1854 if (user == NULL) {
1873 cc_user_sig(user, USER_SIG_ACCEPT_ERR,
1879 cc_user_sig(user, USER_SIG_ACCEPT_ERR,
1880 user, ATMERR_PREVIOUSLY_ABORTED);
1884 cc_user_sig(user, USER_SIG_ACCEPT_ERR,
1885 user, ATMERR_PREVIOUSLY_ABORTED);
1891 if (user == NULL) {
1910 cc_user_sig(user, USER_SIG_REJECT_ERR,
1915 cc_user_sig(user, USER_SIG_REJECT_OK, NULL, 0);
1921 if (user == NULL) {
1940 cc_user_sig(conn->user, USER_SIG_RELEASE_ERR,
1945 memset(&conn->user->cause, 0,
1946 sizeof(conn->user->cause));
1947 cc_user_sig(conn->user,
1952 memset(&conn->user->cause, 0,
1953 sizeof(conn->user->cause));
1954 cc_user_sig(conn->user,
1967 if (user != NULL)
1968 cc_user_sig(user,
1976 if (user != NULL)
1977 cc_user_sig(user,
1985 if (user != NULL)
1986 cc_user_sig(user,
1999 if (user != NULL)
2000 cc_user_sig(user,