[Freeswitch-users] How to use collected variables in mod_curl in lua script

Sina Owolabi notify.sina at gmail.com
Sun Jan 18 00:29:49 MSK 2015


Hi List

Newb again.

I am trying to write a script that will use variables passed to the script
from the dialplan in a http GET or POST  URL call.

Please what is the proper way of doing this?
I've tried a few things and they dont work:

variable1 = argv[1];
variable2 = argv[2];
In the script proper:
web_url = ("http://webserver//index.php?u=%s&var2=%s", variable1,
variable2);
session:execute("curl", web_url);

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150117/92012855/attachment.html 


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