[Freeswitch-users] xml_cdr.conf.xml and ASPX call

Sergey Okhapkin sos at sokhapkin.dyndns.org
Mon Apr 19 13:03:36 PDT 2010


You send GET requests from web browser, but FS sends POST requests.

On Monday 19 April 2010, Erkan Ünlü wrote:
> Thank you. Now I see the call of URL in freeswitch command prompt, but the
>  website will be not triggered.
> 
> Got error [500] posting to web server
> Retry will be with url.....
> 
> 
> will be coming up.
> It's interesting because if I call my URL with my browser that work and I
>  can give them all kind of parameters that I want.
> 
> For example:
> 
> http://192.168.2.21/callrec.aspx
> http://192.168.2.21/callrec.aspx?var1=test
> http://192.168.2.21/callrec.aspx?var1=test&var2=test2
> 
> and so on all kind of callings worked and I can read all parameters.
> But I don't understand why FS gives an error and can't call the website.
> The logfile of iis show me
> 
> 2010-04-19 19:48:50 127.0.0.1 POST /callregister.aspx - 81 - 127.0.0.1
>  freeswitch-xml/1.0 500 0 0 0 2010-04-19 19:51:16 127.0.0.1 POST
>  /callregister.aspx - 81 - 127.0.0.1 freeswitch-xml/1.0 500 0 0 2
>  2010-04-19 19:51:16 127.0.0.1 POST /callregister.aspx - 81 - 127.0.0.1
>  freeswitch-xml/1.0 500 0 0 4
> 
> Ok error 500 internal server error. But why error 500 if I call it with my
>  browser that works perfect.
> 
> Thanks for your help.
> Erkan
> 
> 
> 
> 
> 
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
>  [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Sergey
>  Okhapkin Sent: Monday, April 19, 2010 7:42 PM
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] xml_cdr.conf.xml and ASPX call
> 
> You should enable mod_xml_cdr in modules.conf.xml
> 
> On Monday 19 April 2010, Erkan Ünlü wrote:
> > I think yes, because the freeswitch.xml have the following lines inside.
> >
> >   <section name="configuration" description="Various Configuration">
> >     <X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml" />
> >   </section>
> >
> > Maybe I must activate it on another place?
> >
> >
> >
> > -----Original Message-----
> > From: freeswitch-users-bounces at lists.freeswitch.org
> >  [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
> > Sergey Okhapkin Sent: Monday, April 19, 2010 7:26 PM
> > To: freeswitch-users at lists.freeswitch.org
> > Subject: Re: [Freeswitch-users] xml_cdr.conf.xml and ASPX call
> >
> > Did you load the module?
> >
> > On Monday 19 April 2010, Erkan Ünlü wrote:
> > > Hi FS Guys,
> > >
> > >
> > >
> > > I installed FS on Windows and try to use the xml_cdr.conf.xml to post
> > > the calling information's to a website/script.
> > >
> > >
> > >
> > > I change my xml_cdr.conf.xml as give on the website
> > >
> > > http://wiki.freeswitch.org/wiki/Mod_xml_cdr
> > >
> > >
> > >
> > > <configuration name="xml_cdr.conf" description="XML CDR CURL logger">
> > > <settings>
> > >    <param name="url" value="http://localhost/callreg.aspx"/>
> > >    <param name="retries" value="2"/>
> > >    <param name="delay" value="120"/>
> > >    <param name="log-dir" value="C:\Freeswitch\log\cdr"/>
> > >    <param name="err-log-dir" value=" C:\Freeswitch\log\errors"/>
> > >    <param name="encode" value="True"/>
> > > </settings>
> > >
> > >
> > >
> > > I make a dummy aspx that write all given parameters to a file.
> > >
> > > But the aspx don't called.
> > >
> > >
> > >
> > > What I must do to get the information's into the
> > >  http://localhost/callreg.aspx
> > >
> > >
> > >
> > > My dummy read the information's from the
> > >  http://localhost/callreg.aspx?xxx=yyy and so on
> > >
> > > The dummy aspx read all parameters that given after the ?
> > >
> > > But no information's coming.
> > >
> > >
> > >
> > > Can anyone help me?
> > >
> > >
> > >
> > > Greetings
> > >
> > > Erkan
> >
> > _______________________________________________
> > 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
> >
> > _______________________________________________
> > 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
> 
> _______________________________________________
> 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
> 
> _______________________________________________
> 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
> 




More information about the FreeSWITCH-users mailing list