<div dir="ltr">Please refer to the link <a href="http://bit.ly/VKwFGY">http://bit.ly/VKwFGY</a><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 28, 2013 at 6:06 AM, Jagadish Thoutam <span dir="ltr">&lt;<a href="mailto:jaganthoutam@gmail.com" target="_blank">jaganthoutam@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
<br>
 Any Update<br>
<br>
On 27 January 2013 18:46, johnthan123 &lt;<a href="mailto:johnthan123@gmail.com">johnthan123@gmail.com</a>&gt; wrote:<br>
&gt; HI All,<br>
&gt;<br>
&gt;<br>
&gt;   Can You Please any one help me To Write Directory and Dialplan and In<br>
&gt; XML_CURL Like Below<br>
&gt;<br>
&gt; #################CODE########################<br>
&gt; #!/usr/bin/perl<br>
&gt; use strict;<br>
&gt; use warnings;<br>
&gt; use Data::Dump qw(dump);<br>
&gt; use CGI;<br>
&gt; my $q = CGI-&gt;new;<br>
&gt; my $section = $q-&gt;param(&#39;section&#39;);<br>
&gt;<br>
&gt; if ($section eq &#39;directory&#39;){<br>
&gt;<br>
&gt; $XML_STRING2 = &#39;<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>
&gt; &lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
&gt;   &lt;section name=&quot;directory&quot;&gt;<br>
&gt;     &lt;domain name=&quot;192.168.4.32&quot;&gt;<br>
&gt;       &lt;user id=&quot;1001&quot;&gt;<br>
&gt;     &lt;params&gt;<br>
&gt;         &lt;param name=&quot;password&quot; value=&quot;1001&quot;/&gt;<br>
&gt;        &lt;/params&gt;<br>
&gt;          &lt;variables&gt;<br>
&gt;            &lt;variable name=&quot;accountcode&quot; value=&quot;1001&quot;/&gt;<br>
&gt;           &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
&gt;          &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;1001&quot;/&gt;<br>
&gt;             &lt;variable name=&quot;nibble_rate&quot; value=&quot;0.05&quot;/&gt;<br>
&gt;             &lt;variable name=&quot;nibble_account&quot; value=&quot;1&quot;/&gt;<br>
&gt;         &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;1001&quot;/&gt;<br>
&gt;        &lt;/variables&gt;<br>
&gt;       &lt;/user&gt;<br>
&gt;     &lt;/domain&gt;<br>
&gt;       &lt;/section&gt;<br>
&gt; &#39;;<br>
&gt; }<br>
&gt; elsif ( $section eq &#39;dialplan&#39; ) {<br>
&gt; $XML_STRING = &#39;<br>
&gt;   &lt;section name=&quot;dialplan&quot; description=&quot;example_curl_dialplan&quot;&gt;<br>
&gt;     &lt;context name=&quot;public&quot;&gt;<br>
&gt;       &lt;extension name=&quot;curl_test&quot;&gt;<br>
&gt;         &lt;condition field=&quot;destination_number&quot; expression=&quot;^(80\d{2})$&quot;&gt;<br>
&gt;         &lt;action application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>
&gt;         &lt;action application=&quot;set&quot; data=&quot;nibble_account=${accountcode}&quot;/&gt;<br>
&gt;         &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/peer_asterisk/$1&quot;/&gt;<br>
&gt;         &lt;/condition&gt;<br>
&gt;       &lt;/extension&gt;<br>
&gt;     &lt;/context&gt;<br>
&gt;   &lt;/section&gt;<br>
&gt; &lt;/document&gt;<br>
&gt; &#39;;<br>
&gt; }<br>
&gt;<br>
&gt; ###########################END#############################<br>
&gt;<br>
&gt; This is Working for Me But i cant able to take the Database values into XML<br>
&gt; file<br>
&gt;<br>
&gt;<br>
&gt; Thanks In Advance<br>
&gt;<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; J :: T<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>