Hi,
I have a setup where I want to have only one voicemail for multiple extensions. So I made a voicemail extension without a registration and use a Follow Me to go to voicemail. But there is no voicemail send (email has been tested). An incoming call goes directly to the extension and than forwards to the voicemail extension.
In the logs I find this:
2021-07-11 13:29:18.157806 [INFO] mod_dptools.c:3631 Originate Failed. Cause: USER_NOT_REGISTERED
EXECUTE [depth=0] sofia/external/06288xxxxx@spce.voipdigit.nl lua(app.lua failure_handler)
2021-07-11 13:29:18.177812 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/failure_handler/index.lua:86: attempt to index global subject (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/app/failure_handler/index.lua:86: in function missed
This is line 86:
subject = subject:gsub("${caller_id_name}", caller_id_name);
So the caller_id_name is missing.
The same happens after the caller is transferred to voicemail:
2021-07-11 13:30:15.517842 [NOTICE] switch_cpp.cpp:1447 [voicemail]
2021-07-11 13:30:15.557819 [ERR] mod_lua.cpp:202 ...scripts/app/voicemail/resources/functions/send_email.lua:179: attempt to index global subject (a nil value)
How can this happen and is there a workaround for this?
I have a setup where I want to have only one voicemail for multiple extensions. So I made a voicemail extension without a registration and use a Follow Me to go to voicemail. But there is no voicemail send (email has been tested). An incoming call goes directly to the extension and than forwards to the voicemail extension.
In the logs I find this:
2021-07-11 13:29:18.157806 [INFO] mod_dptools.c:3631 Originate Failed. Cause: USER_NOT_REGISTERED
EXECUTE [depth=0] sofia/external/06288xxxxx@spce.voipdigit.nl lua(app.lua failure_handler)
2021-07-11 13:29:18.177812 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/failure_handler/index.lua:86: attempt to index global subject (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/app/failure_handler/index.lua:86: in function missed
This is line 86:
subject = subject:gsub("${caller_id_name}", caller_id_name);
So the caller_id_name is missing.
The same happens after the caller is transferred to voicemail:
2021-07-11 13:30:15.517842 [NOTICE] switch_cpp.cpp:1447 [voicemail]
2021-07-11 13:30:15.557819 [ERR] mod_lua.cpp:202 ...scripts/app/voicemail/resources/functions/send_email.lua:179: attempt to index global subject (a nil value)
How can this happen and is there a workaround for this?