<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That's great. And how do I pass the parameters when calling the script
from my dialplan?<br>
<br>
e.g. <br>
<br>
<action application="perl"
data="/root/test_perl.pl" /><br>
<br>
Anthony Minessale wrote:
<blockquote
cite="mid:191c3a030811200812t4c4ecdd0h35d899ddd79351fb@mail.gmail.com"
type="cite">currently it would entail binding everything to 1 script
and detecting which kind of section it <br>
was in the script. Making it support many would require some coding
which would need to be done in every language module to keep them
uniform and we don't have the time for it right now. you can provide a
patch or post a bounty and maybe someone can work on it.<br>
<br>
there is a magic env obj created in your script that has all the params<br>
<br>
print $env->serialize();<br>
print $env->serialize("xml");<br>
<br>
$info = $env->getHeader("info");<br>
<br>
<br>
<br>
<div class="gmail_quote">On Thu, Nov 20, 2008 at 8:34 AM, <a
moz-do-not-send="true" href="mailto:regs@kinetix.gr">regs@kinetix.gr</a>
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:regs@kinetix.gr">regs@kinetix.gr</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
What if I want to use one binding for "directory", one for
"configuration" and one for "dialplan"?<br>
<br>
While we are at it, how can I pass parameters so that I can "fill up"
my %XML_REQUEST when<br>
the perl script is called from the xml dialplan? e.g. :<br>
<br>
<context name="route"><br>
<extension name=default><br>
<condition field="destination_number"
expression="^.*$"><br>
<action application="perl"
data="/root/test_perl2.pl" /><br>
</condition><br>
</extension><br>
</context><br>
<br>
<br>
<br>
Anthony Minessale wrote:
<blockquote type="cite">
<div>
<div class="Wj3C7c">no the languages only have one binding.<br>
Do you really need more than one binding?<br>
<br>
<div class="gmail_quote">On Thu, Nov 20, 2008 at 6:20 AM, <a
moz-do-not-send="true" href="mailto:regs@kinetix.gr" target="_blank">regs@kinetix.gr</a>
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:regs@kinetix.gr" target="_blank">regs@kinetix.gr</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Is there a way to declare more than one script with its binding in<br>
perl.conf.xml?<br>
Because from what I understood by reading the documentation, is that<br>
there are<br>
no different sections to define different perl scripts with bindings<br>
like for example in the<br>
xml_curl.conf.xml :<br>
<br>
<configuration name="xml_curl.conf" description="cURL XML
Gateway"><br>
<bindings><br>
<binding name="binding1"><br>
...<br>
</binding><br>
<binding name="binding2"><br>
...<br>
</binding><br>
<br>
...<br>
<br>
</bindings><br>
</configuration><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a moz-do-not-send="true" href="http://www.freeswitch.org/"
target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true" href="http://www.cluecon.com/"
target="_blank">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a moz-do-not-send="true"
href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true" href="http://irc.freenode.net"
target="_blank">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a moz-do-not-send="true"
href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a moz-do-not-send="true"
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
</div>
</div>
<pre><hr size="4" width="90%"><div class="Ih2E3d">
_______________________________________________
Freeswitch-users mailing list
<a moz-do-not-send="true"
href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a>
</div></pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a moz-do-not-send="true" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a moz-do-not-send="true"
href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true" href="http://irc.freenode.net">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a moz-do-not-send="true"
href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a moz-do-not-send="true"
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>