<div dir="ltr">yeah it is working :)<div><br></div><div>thank you</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 29, 2018 at 11:54 PM, Joel Serrano <span dir="ltr"><<a href="mailto:joel@gogii.net" target="_blank">joel@gogii.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Put the script in:<br>
<br>
/usr/share/freeswitch/scripts/<wbr>python_example.py<br>
<br>
Then call it from the dialplan without the extension (.py)<br>
<br>
For example:<br>
<br>
<action application="python" data="python_example"/><br>
<br>
You can also place it wherever you want and use the full path as long<br>
as the user you are running freeswitch with has the correct<br>
permissions to access it.<br>
<div><div class="h5"><br>
<br>
<br>
<br>
On Thu, Mar 29, 2018 at 8:40 AM, Do Nguyen Ha <<a href="mailto:donguyenha@gmail.com">donguyenha@gmail.com</a>> wrote:<br>
> hi<br>
><br>
> i user python_example.py script to test with freeswitch<br>
> <a href="https://gitlab.k-net.fr/shimaore/freeswitch/blob/c6be531b4b6c38b69274057b19d73c7b15a07b14/src/mod/languages/mod_python/python_example.py" rel="noreferrer" target="_blank">https://gitlab.k-net.fr/<wbr>shimaore/freeswitch/blob/<wbr>c6be531b4b6c38b69274057b19d73c<wbr>7b15a07b14/src/mod/languages/<wbr>mod_python/python_example.py</a><br>
><br>
> i installed freeswitch-python and check the scripts folder is in :<br>
> [root@localhost site-packages]# fs_cli -x 'global_getvar'|grep script<br>
> script_dir=/usr/share/<wbr>freeswitch/scripts<br>
><br>
> and the freeswitch-python package:<br>
> [root@localhost site-packages]# rpm -ql freeswitch-python<br>
> /etc/freeswitch/autoload_<wbr>configs<br>
> /etc/freeswitch/autoload_<wbr>configs/python.conf.xml<br>
> /usr/lib/python2.7/site-<wbr>packages/freeswitch.py<br>
> /usr/lib/python2.7/site-<wbr>packages/freeswitch.pyc<br>
> /usr/lib/python2.7/site-<wbr>packages/freeswitch.pyo<br>
> /usr/lib64/freeswitch/mod/mod_<wbr>python.so<br>
> /usr/lib64/python2.7/site-<wbr>packages/ESL.py<br>
> /usr/lib64/python2.7/site-<wbr>packages/ESL.pyc<br>
> /usr/lib64/python2.7/site-<wbr>packages/ESL.pyo<br>
> /usr/lib64/python2.7/site-<wbr>packages/_ESL.so<br>
><br>
><br>
> where do i place the python-example.py script  for freeswitch working<br>
> properly<br>
><br>
> Thank you<br>
><br>
</div></div>> ______________________________<wbr>______________________________<wbr>_____________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div><br></div>