Hello guys,

I have an issue with osipsconfig, pretty much the same as described in the 
following topic: 

Failed to generate script
http://opensips-open-sip-server.1449251.n2.nabble.com/Failed-to-generate-script-td7589129.html

When I save the config, it creates nothing, no error message on the screen, no 
file in /etc/opensips either.
I can only see the following in the curses.out file:

Initialized main window
Failed to open m4 defs
Failed to run command for menu [Save Residential Script]
Failed to open m4 defs
Failed to run command for menu [Save Residential Script]
Failed to open m4 defs
Failed to save m4 defs
Failed to run command for menu [Generate Residential Script]
Failed to open m4 defs
Failed to run command for menu [Save Residential Script]
Failed to open m4 defs
Failed to run command for menu [Save Residential Script]
Failed to open m4 defs
Failed to save m4 defs
Failed to run command for menu [Generate Residential Script]
Failed to open m4 defs
Failed to save cfg Residential Script
Failed to open m4 defs
Failed to save cfg Trunking Script
Failed to open m4 defs
Failed to save cfg Load-Balancer Script

Those m4 files are located under directory 
/usr/share/opensips/menuconfig_templates/
Just downloaded version 1.10.1-1 from the Fedora 20 repository with MySQL DB 
and ncurses 5.9-12

Ran strace while saved the config and you can find the output attached.

Anyway, I created the following environment variable to point at the m4 
directory:

# export MENUCONFIG_CFG_PATH=/usr/share/opensips/menuconfig_templates/

And when I re-ran the osipsconfig then it created the config file in 
/etc/opensips/.
Just thought I raise it as it appears to be some issue with searching for those 
m4 files in the wrong directory.

Thank you.

Regards,

Steve

>>>>>>>>>>>>>>>> save residential >>>>>>>>>>

15398 15:07:31 
open("/usr/share/opensips//menuconfig_templates/opensips_residential_def.m4", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
15398 15:07:31 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
15398 15:07:31 mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8383f2000
15398 15:07:31 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:07:31 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:07:31 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:07:31 write(1, "\33[27;11HScript configurations sa"..., 87) = 87
15398 15:07:31 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:07:31 read(0, "\r", 1)         = 1
15398 15:07:32 write(4, "divert(-1)\ndefine(`ENABLE_TCP', "..., 1450) = 1450
15398 15:07:32 close(4)                 = 0
15398 15:07:32 munmap(0x7fe8383f2000, 4096) = 0
15398 15:07:32 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:07:32 write(1, "\33[39;49m\33[37m\33[40m\33[H\33[2J\33[7;42H"..., 433) 
= 433
15398 15:07:32 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:07:32 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:07:32 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:07:32 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:07:32 write(1, "\33[3;51H\33[32m\33[40mResidential Scr"..., 95) = 95
15398 15:07:32 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0

>>>>>>>>>>>>>>> save and exit all >>>>>>>>>>>>>>>

15398 15:08:24 select(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {0, 999997})
15398 15:08:24 read(0, "O", 1)          = 1
15398 15:08:24 select(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {0, 999998})
15398 15:08:24 read(0, "D", 1)          = 1
15398 15:08:24 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:24 write(1, "\33[39;49m\33[37m\33[40m\33[H\33[2J\33[7;42H"..., 393) 
= 393
15398 15:08:24 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:24 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:24 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:24 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:24 write(1, "\33[3;51H\33[32m\33[40mGenerate OpenSI"..., 101) = 101
15398 15:08:24 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:24 read(0, "\33", 1)        = 1
15398 15:08:25 select(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {0, 999998})
15398 15:08:25 read(0, "O", 1)          = 1
15398 15:08:25 select(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {0, 999999})
15398 15:08:25 read(0, "D", 1)          = 1
15398 15:08:25 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:25 write(1, "\33[39;49m\33[37m\33[40m\33[H\33[2J\33[7;42H"..., 331) 
= 331
15398 15:08:25 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:25 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:25 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:25 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:25 write(1, "\33[3;51H\33[32m\33[40mOpenSIPS Main C"..., 109) = 109
15398 15:08:25 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:25 read(0, "\33", 1)        = 1
15398 15:08:26 select(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {0, 999998})
15398 15:08:26 read(0, "O", 1)          = 1
15398 15:08:26 select(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {0, 999998})
15398 15:08:26 read(0, "B", 1)          = 1
15398 15:08:26 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:26 write(1, "\33[39;49m\33[37m\33[40m\33[H\33[2J\33[7;42H"..., 330) 
= 330
15398 15:08:26 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:26 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:26 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:26 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:26 write(1, "\33[3;51H\33[32m\33[40mOpenSIPS Main C"..., 109) = 109
15398 15:08:26 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:26 read(0, "\r", 1)         = 1
15398 15:08:28 
open("/usr/share/opensips//menuconfig_templates/opensips_residential_def.m4", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
15398 15:08:28 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
15398 15:08:28 mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8383f2000
15398 15:08:28 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:28 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:28 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:28 write(1, "\33[27;11HScript configurations sa"..., 87) = 87
15398 15:08:28 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:28 read(0, "\r", 1)         = 1
15398 15:08:29 write(4, "divert(-1)\ndefine(`ENABLE_TCP', "..., 1450) = 1450
15398 15:08:29 close(4)                 = 0
15398 15:08:29 munmap(0x7fe8383f2000, 4096) = 0
15398 15:08:29 
open("/usr/share/opensips//menuconfig_templates/opensips_trunking_def.m4", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
15398 15:08:29 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
15398 15:08:29 mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8383f2000
15398 15:08:29 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:29 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:29 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:29 write(1, "\33[27;43HTrunking\33[3P\33[27;87H", 28) = 28
15398 15:08:29 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:29 read(0, "\r", 1)         = 1
15398 15:08:30 write(4, "divert(-1)\ndefine(`ENABLE_TCP', "..., 616) = 616
15398 15:08:30 close(4)                 = 0
15398 15:08:30 munmap(0x7fe8383f2000, 4096) = 0
15398 15:08:30 
open("/usr/share/opensips//menuconfig_templates/opensips_loadbalancer_def.m4", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
15398 15:08:30 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
15398 15:08:30 mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8383f2000
15398 15:08:30 rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 0x3753235cb0}, 8) = 0
15398 15:08:30 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:30 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
15398 15:08:30 write(1, "\33[27;43HLoad-Balancer Script. Pr"..., 57) = 57
15398 15:08:30 rt_sigaction(SIGTSTP, {0x376c2153d0, [], SA_RESTORER|SA_RESTART, 
0x3753235cb0}, NULL, 8) = 0
15398 15:08:30 read(0, "\r", 1)         = 1
15398 15:08:30 write(4, "divert(-1)\ndefine(`ENABLE_TCP', "..., 601) = 601
15398 15:08:30 close(4)                 = 0
15398 15:08:30 munmap(0x7fe8383f2000, 4096) = 0
15398 15:08:30 write(1, "\33[39;49m\r\33[35d\33[K\33[35;1H\33[?1049l"..., 40) = 
40
15398 15:08:30 ioctl(1, SNDCTL_TMR_STOP or SNDRV_TIMER_IOCTL_GINFO or TCSETSW, 
{B38400 opost isig icanon echo ...}) = 0
15398 15:08:30 write(3, "Initialized main window\n", 24) = 24
15398 15:08:30 close(3)                 = 0
15398 15:08:30 munmap(0x7fe8383f3000, 4096) = 0
15398 15:08:30 exit_group(0)            = ?
15398 15:08:30 +++ exited with 0 +++

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to