I just ran into this one (using <a href="http://ASP.NET">ASP.NET</a> MVC, not ASPX). I had to use a network sniffer to see the actual 500 error. It turned out to be <a href="http://ASP.NET">ASP.NET</a> request validation on the post that was causing the failure. The xml in the post body trips the <a href="http://ASP.NET">ASP.NET</a> XSS injection protections. You can declaratively turn off that feature per-page.<div>
<br></div><div>Josh<br><br><div class="gmail_quote">2010/4/19 Erkan Ünlü <span dir="ltr"><<a href="mailto:erkan@speedingtrade.com">erkan@speedingtrade.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thank you. Now I see the call of URL in freeswitch command prompt, but the website will be not triggered.<br>
<br>
Got error [500] posting to web server<br>
Retry will be with url.....<br>
<br>
<br>
will be coming up.<br>
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.<br>
<br>
For example:<br>
<br>
<a href="http://192.168.2.21/callrec.aspx" target="_blank">http://192.168.2.21/callrec.aspx</a><br>
<a href="http://192.168.2.21/callrec.aspx?var1=test" target="_blank">http://192.168.2.21/callrec.aspx?var1=test</a><br>
<a href="http://192.168.2.21/callrec.aspx?var1=test&var2=test2" target="_blank">http://192.168.2.21/callrec.aspx?var1=test&var2=test2</a><br>
<br>
and so on all kind of callings worked and I can read all parameters.<br>
But I don't understand why FS gives an error and can't call the website.<br>
The logfile of iis show me<br>
<br>
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<br>
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<br>
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<br>
<br>
Ok error 500 internal server error. But why error 500 if I call it with my browser that works perfect.<br>
<br>
Thanks for your help.<br>
<font color="#888888">Erkan<br>
</font><div class="im"><br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Sergey Okhapkin<br>
</div><div><div></div><div class="h5">Sent: Monday, April 19, 2010 7:42 PM<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] xml_cdr.conf.xml and ASPX call<br>
<br>
You should enable mod_xml_cdr in modules.conf.xml<br>
<br>
On Monday 19 April 2010, Erkan Ünlü wrote:<br>
> I think yes, because the freeswitch.xml have the following lines inside.<br>
><br>
> <section name="configuration" description="Various Configuration"><br>
> <X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml" /><br>
> </section><br>
><br>
> Maybe I must activate it on another place?<br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Sergey<br>
> Okhapkin Sent: Monday, April 19, 2010 7:26 PM<br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: Re: [Freeswitch-users] xml_cdr.conf.xml and ASPX call<br>
><br>
> Did you load the module?<br>
><br>
> On Monday 19 April 2010, Erkan Ünlü wrote:<br>
> > Hi FS Guys,<br>
> ><br>
> ><br>
> ><br>
> > I installed FS on Windows and try to use the xml_cdr.conf.xml to post the<br>
> > calling information's to a website/script.<br>
> ><br>
> ><br>
> ><br>
> > I change my xml_cdr.conf.xml as give on the website<br>
> ><br>
> > <a href="http://wiki.freeswitch.org/wiki/Mod_xml_cdr" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_cdr</a><br>
> ><br>
> ><br>
> ><br>
> > <configuration name="xml_cdr.conf" description="XML CDR CURL logger"><br>
> > <settings><br>
> > <param name="url" value="<a href="http://localhost/callreg.aspx" target="_blank">http://localhost/callreg.aspx</a>"/><br>
> > <param name="retries" value="2"/><br>
> > <param name="delay" value="120"/><br>
> > <param name="log-dir" value="C:\Freeswitch\log\cdr"/><br>
> > <param name="err-log-dir" value=" C:\Freeswitch\log\errors"/><br>
> > <param name="encode" value="True"/><br>
> > </settings><br>
> ><br>
> ><br>
> ><br>
> > I make a dummy aspx that write all given parameters to a file.<br>
> ><br>
> > But the aspx don't called.<br>
> ><br>
> ><br>
> ><br>
> > What I must do to get the information's into the<br>
> > <a href="http://localhost/callreg.aspx" target="_blank">http://localhost/callreg.aspx</a><br>
> ><br>
> ><br>
> ><br>
> > My dummy read the information's from the<br>
> > <a href="http://localhost/callreg.aspx?xxx=yyy" target="_blank">http://localhost/callreg.aspx?xxx=yyy</a> and so on<br>
> ><br>
> > The dummy aspx read all parameters that given after the ?<br>
> ><br>
> > But no information's coming.<br>
> ><br>
> ><br>
> ><br>
> > Can anyone help me?<br>
> ><br>
> ><br>
> ><br>
> > Greetings<br>
> ><br>
> > Erkan<br>
><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>
><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>
><br>
<br>
<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>
<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>
</div></div></blockquote></div><br></div>