Hi is it possible to execute and get result of an api like this fs_cli.exe -H 192.168.11.30 -x "managed MY API" now I'm getting -ERR no reply but it works fine for show calls thanx
Can you run that command from inside an fs_cli session? Regards HASSAN On 2010-10-09, babak yakhchali <babak.freeswitch@gmail.com> wrote:
Hi is it possible to execute and get result of an api like this fs_cli.exe -H 192.168.11.30 -x "managed MY API" now I'm getting -ERR no reply but it works fine for show calls thanx
-- Sent from my mobile device
Yes, this kind of thing is completely legal. The -ERR is coming from the managed called. Like Hassan said, make sure that you can run fs_cli.exe and make the exact same call manually. -MC On Sat, Oct 9, 2010 at 8:12 AM, babak yakhchali <babak.freeswitch@gmail.com>wrote:
Hi is it possible to execute and get result of an api like this fs_cli.exe -H 192.168.11.30 -x "managed MY API" now I'm getting -ERR no reply but it works fine for show calls thanx
_______________________________________________ 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
I'm writing output of my apis to console. on freeswitch cli it works and shows the output but on fs_cli it is not
If a command stop from within the console session, then it would run from the command line as well, and should yield the same output. If it is not, then you need to run it with full debug, put the output into pastebin and send the reference here. Regards HASSAN On 2010-10-10, babak yakhchali <babak.freeswitch@gmail.com> wrote:
I'm writing output of my apis to console. on freeswitch cli it works and shows the output but on fs_cli it is not
-- Sent from my mobile device
Here are the results from fs_cli for the sample Api call from demo.csx in the mod_managed project folder. This was tested on the same machine as the fs process. Compare your results to this and let us know. fs_cli.exe -x "managed ApiDemo test" ApiDemo executed with args 'test' and event type API. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/fs-cli-tp5618264p5620475.html Sent from the freeswitch-users mailing list archive at Nabble.com.
No just my fault I was using a wrong way to output api result instead of using context!
participants (4)
-
babak yakhchali
-
Jeff Lenk
-
Michael Collins
-
Nyamul Hassan