[Freeswitch-users] Need Help On mod_xml_curl
Roger Castaldo
roger.castaldo at gmail.com
Mon Jan 28 16:48:51 MSK 2013
Please refer to the link http://bit.ly/VKwFGY
On Mon, Jan 28, 2013 at 6:06 AM, Jagadish Thoutam <jaganthoutam at gmail.com>wrote:
> Hi all
>
>
> Any Update
>
> On 27 January 2013 18:46, johnthan123 <johnthan123 at gmail.com> wrote:
> > HI All,
> >
> >
> > Can You Please any one help me To Write Directory and Dialplan and In
> > XML_CURL Like Below
> >
> > #################CODE########################
> > #!/usr/bin/perl
> > use strict;
> > use warnings;
> > use Data::Dump qw(dump);
> > use CGI;
> > my $q = CGI->new;
> > my $section = $q->param('section');
> >
> > if ($section eq 'directory'){
> >
> > $XML_STRING2 = '
> > <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> > <document type="freeswitch/xml">
> > <section name="directory">
> > <domain name="192.168.4.32">
> > <user id="1001">
> > <params>
> > <param name="password" value="1001"/>
> > </params>
> > <variables>
> > <variable name="accountcode" value="1001"/>
> > <variable name="user_context" value="default"/>
> > <variable name="effective_caller_id_name" value="1001"/>
> > <variable name="nibble_rate" value="0.05"/>
> > <variable name="nibble_account" value="1"/>
> > <variable name="effective_caller_id_number" value="1001"/>
> > </variables>
> > </user>
> > </domain>
> > </section>
> > ';
> > }
> > elsif ( $section eq 'dialplan' ) {
> > $XML_STRING = '
> > <section name="dialplan" description="example_curl_dialplan">
> > <context name="public">
> > <extension name="curl_test">
> > <condition field="destination_number" expression="^(80\d{2})$">
> > <action application="set" data="dialed_extension=$1"/>
> > <action application="set" data="nibble_account=${accountcode}"/>
> > <action application="bridge"
> data="sofia/gateway/peer_asterisk/$1"/>
> > </condition>
> > </extension>
> > </context>
> > </section>
> > </document>
> > ';
> > }
> >
> > ###########################END#############################
> >
> > This is Working for Me But i cant able to take the Database values into
> XML
> > file
> >
> >
> > Thanks In Advance
> >
> >
> > Thanks
> >
> > J :: T
> >
> >
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> >
> >
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://wiki.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130128/46fa1877/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list