Discussion:
[Freeswitch-users] xml_cdr.conf.xml and ASPX call
Erkan Ünlü
2010-04-19 16:15:05 UTC
Permalink
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100419/0bfe99d0/attachment.html
Sergey Okhapkin
2010-04-19 16:25:41 UTC
Permalink
Did you load the module?
Post by Erkan Ünlü
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
Erkan Ünlü
2010-04-19 16:36:05 UTC
Permalink
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?
Post by Erkan Ünlü
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
Sergey Okhapkin
2010-04-19 16:42:23 UTC
Permalink
You should enable mod_xml_cdr in modules.conf.xml
Post by Erkan Ünlü
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?
Post by Erkan Ünlü
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
Erkan Ünlü
2010-04-19 19:54:05 UTC
Permalink
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
Post by Erkan Ünlü
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?
Post by Erkan Ünlü
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
Brian West
2010-04-19 19:58:36 UTC
Permalink
You're not doing a post when you go to it in the browser I suspect and we are in xml_cdrl...

/b
Post by Erkan Ünlü
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100419/c2b67f32/attachment.html
Sergey Okhapkin
2010-04-19 20:03:36 UTC
Permalink
You send GET requests from web browser, but FS sends POST requests.
Post by Erkan Ünlü
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.
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
Post by Erkan Ünlü
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?
Post by Erkan Ünlü
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
Josh Rivers
2010-04-19 20:26:05 UTC
Permalink
I just ran into this one (using ASP.NET MVC, not ASPX). I had to use a
network sniffer to see the actual 500 error. It turned out to be
ASP.NETrequest validation on the post that was causing the failure.
The xml in the
post body trips the ASP.NET XSS injection protections. You can declaratively
turn off that feature per-page.

Josh

2010/4/19 Erkan ?nl? <erkan at speedingtrade.com>
Post by Erkan Ünlü
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.
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-----
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
Post by Erkan Ünlü
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
Post by Erkan Ünlü
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?
Post by Erkan Ünlü
Hi FS Guys,
I installed FS on Windows and try to use the xml_cdr.conf.xml to post
the
Post by Erkan Ünlü
Post by Erkan Ünlü
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100419/7d1d55bd/attachment.html
Loading...