case SS_ANFPR_PATHREPLACEMENT: /* Clear Queue */ res = pri_call_apdu_queue_cleanup(call->bridged_call); if (res) { pri_message(pri, "Could not Clear queue ADPU\n"); return -1; } i = 0; unsigned char buffer[255] = ""; unsigned char buf1[] = {0x9f, 0xaa, 0x06, 0x80, 0x01, 0x00, 0x82, 0x01, 0x00, 0xa1, 0x1d,}; memcpy(buffer, buf1, sizeof(buf1)); memcpy(buffer+sizeof(buf1), data, len); i = sizeof(buf1) + len; /* Send message */ res = pri_call_apdu_queue(call->bridged_call, Q931_FACILITY, buffer, i, NULL, NULL); if (res) { pri_message(pri, "Could not queue ADPU in facility message\n"); return -1; } /* Remember that if we queue a facility IE for a facility message we * have to explicitly send the facility message ourselves */ res = q931_facility(call->bridged_call->pri, call->bridged_call); if (res) { pri_message(pri, "Could not schedule facility message for call %d\n", call->bridged_call->cr); return -1; } break;