Your problem is that you're giving the wrong parameters to api:execute. It takes the API to execute then the parameters, not as a single string.
As a result it's looking for a command named "voicemail_inject $apicall" not "voicemail_inject", hence the command is unknown.result = api:execute("voicemail_inject " .. apicall);should beresult = api:execute("voicemail_inject", apicall);Alternatively you could useĀ api:executeStringOn 13 April 2015 at 10:19, Paul Atreides <paul.atreides83@googlemail.com> wrote:Hi Steven,is says that it is already loaded. The other voicemail api functions are working.On Mon, Apr 13, 2015 at 9:55 AM, Steven Ayre <steveayre@gmail.com> wrote:Have you loaded mod_voicemail? Were there any errors when doing so?If in doubt try 'load mod_voicemail' - it'll either try to load it or tell you it's already loaded.On 11 April 2015 at 16:43, Paul Atreides <paul.atreides83@googlemail.com> wrote:_________________________________________________________________________Hi,The result is INVALID COMMAND.
What am I doing wrong?
apicall = 10@192.168.176.6 /usr/local/freeswitch/storage/voicemail/default/192.168.176.6/10/msg_19e18faf-5951-4743-a6a5-ce3a5535c80d.wav
result = api:execute("voicemail_inject " .. apicall);
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org