Added display of current active TEI values (L2) at lcradmin.
[lcr.git] / action_efi.cpp
index 76c902f..57fdcc7 100644 (file)
@@ -9,13 +9,6 @@
 **                                                                           **
 \*****************************************************************************/ 
 
-#include <stdio.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
 #include "main.h"
 
 enum {
@@ -107,7 +100,7 @@ void EndpointAppPBX::efi_message_eof(void)
                e_efi_digit = 0;
                // fall through
                case EFI_STATE_DIGIT:
-               digit[8] = numberrize_callerinfo(e_callerinfo.id,e_callerinfo.ntype)[e_efi_digit];
+               digit[8] = numberrize_callerinfo(e_callerinfo.id,e_callerinfo.ntype, options.national, options.international)[e_efi_digit];
                if (digit[8])
                {
                        set_tone_efi(digit);
@@ -146,7 +139,7 @@ void EndpointAppPBX::efi_message_eof(void)
  * set the given vbox-tone with full path (without appending)
  * the tone is played and after eof, a message is received
  */
-void EndpointAppPBX::set_tone_efi(char *tone)
+void EndpointAppPBX::set_tone_efi(const char *tone)
 {
        struct lcr_msg *message;