[Freeswitch-users] voicemail_inject - INVALID COMMAND

Steven Ayre steveayre at gmail.com
Tue Apr 14 16:46:47 MSD 2015


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 be
result = api:execute("voicemail_inject", apicall);

Alternatively you could use api:executeString



On 13 April 2015 at 10:19, Paul Atreides <paul.atreides83 at 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 at 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 at googlemail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> What am I doing wrong?
>>>
>>> apicall = 10 at 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);
>>>
>>> The result is INVALID COMMAND.
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at 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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150414/09046f27/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list