X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=action_efi.cpp;h=bd24952b7c8d9a21c1615d87945a47babea9e871;hp=ce0253f634e180d04bf633fae1745c6e21d4e931;hb=cbe9d412a37e75b61cc74e8a65b0293923eb5160;hpb=2ed0fee489c37a6e2d4473f6185ebbe3e746ac11 diff --git a/action_efi.cpp b/action_efi.cpp index ce0253f..bd24952 100644 --- a/action_efi.cpp +++ b/action_efi.cpp @@ -43,7 +43,7 @@ void EndpointAppPBX::action_init_efi(void) message->param.disconnectinfo.location = LOCATION_PRIVATE_LOCAL; message->param.disconnectinfo.cause = CAUSE_FACILITYREJECTED; message_put(message); - logmessage(message); + logmessage(message->type, &message->param, portlist->port_id, DIRECTION_OUT); new_state(EPOINT_STATE_OUT_DISCONNECT); set_tone(portlist,"cause_22"); return; @@ -72,7 +72,7 @@ void EndpointAppPBX::efi_message_eof(void) struct message *message; struct port_list *portlist = ea_endpoint->ep_portlist; - PDEBUG(DEBUG_EPOINT, "EPOINT(%d) terminal %s end of file during state: %d\n", ea_endpoint->ep_serial, e_terminal, e_vbox_state); + PDEBUG(DEBUG_EPOINT, "EPOINT(%d) terminal %s end of file during state: %d\n", ea_endpoint->ep_serial, e_ext.number, e_vbox_state); switch(e_efi_state) { @@ -114,7 +114,7 @@ void EndpointAppPBX::efi_message_eof(void) message->param.disconnectinfo.location = LOCATION_PRIVATE_LOCAL; message->param.disconnectinfo.cause = CAUSE_NORMAL; message_put(message); - logmessage(message); + logmessage(message->type, &message->param, portlist->port_id, DIRECTION_OUT); new_state(EPOINT_STATE_OUT_DISCONNECT); set_tone(portlist,"cause_10"); // set_tone_efi("ich_wiederhole"); @@ -130,7 +130,7 @@ void EndpointAppPBX::efi_message_eof(void) break; default: - PERROR("efi_message_eof(ep%d): terminal %s unknown state: %d\n", ea_endpoint->ep_serial, e_terminal, e_vbox_state); + PERROR("efi_message_eof(ep%d): terminal %s unknown state: %d\n", ea_endpoint->ep_serial, e_ext.number, e_vbox_state); } } @@ -156,6 +156,6 @@ void EndpointAppPBX::set_tone_efi(char *tone) SCPY(message->param.tone.name, tone); message_put(message); - PDEBUG(DEBUG_EPOINT, "EPOINT(%d) terminal %s set tone '%s'\n", ea_endpoint->ep_serial, e_terminal, tone); + PDEBUG(DEBUG_EPOINT, "EPOINT(%d) terminal %s set tone '%s'\n", ea_endpoint->ep_serial, e_ext.number, tone); }