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">&lt;<a href="mailto:erkan@speedingtrade.com">erkan@speedingtrade.com</a>&gt;</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&#39;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&amp;var2=test2" target="_blank">http://192.168.2.21/callrec.aspx?var1=test&amp;var2=test2</a><br>
<br>
and so on all kind of callings worked and I can read all parameters.<br>
But I don&#39;t understand why FS gives an error and can&#39;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>
&gt; I think yes, because the freeswitch.xml have the following lines inside.<br>
&gt;<br>
&gt;   &lt;section name=&quot;configuration&quot; description=&quot;Various Configuration&quot;&gt;<br>
&gt;     &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;autoload_configs/*.xml&quot; /&gt;<br>
&gt;   &lt;/section&gt;<br>
&gt;<br>
&gt; Maybe I must activate it on another place?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
&gt;  [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Sergey<br>
&gt;  Okhapkin Sent: Monday, April 19, 2010 7:26 PM<br>
&gt; To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
&gt; Subject: Re: [Freeswitch-users] xml_cdr.conf.xml and ASPX call<br>
&gt;<br>
&gt; Did you load the module?<br>
&gt;<br>
&gt; On Monday 19 April 2010, Erkan Ünlü wrote:<br>
&gt; &gt; Hi FS Guys,<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I installed FS on Windows and try to use the xml_cdr.conf.xml to post the<br>
&gt; &gt;  calling information&#39;s to a website/script.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I change my xml_cdr.conf.xml as give on the website<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://wiki.freeswitch.org/wiki/Mod_xml_cdr" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_cdr</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &lt;configuration name=&quot;xml_cdr.conf&quot; description=&quot;XML CDR CURL logger&quot;&gt;<br>
&gt; &gt; &lt;settings&gt;<br>
&gt; &gt;    &lt;param name=&quot;url&quot; value=&quot;<a href="http://localhost/callreg.aspx" target="_blank">http://localhost/callreg.aspx</a>&quot;/&gt;<br>
&gt; &gt;    &lt;param name=&quot;retries&quot; value=&quot;2&quot;/&gt;<br>
&gt; &gt;    &lt;param name=&quot;delay&quot; value=&quot;120&quot;/&gt;<br>
&gt; &gt;    &lt;param name=&quot;log-dir&quot; value=&quot;C:\Freeswitch\log\cdr&quot;/&gt;<br>
&gt; &gt;    &lt;param name=&quot;err-log-dir&quot; value=&quot; C:\Freeswitch\log\errors&quot;/&gt;<br>
&gt; &gt;    &lt;param name=&quot;encode&quot; value=&quot;True&quot;/&gt;<br>
&gt; &gt; &lt;/settings&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I make a dummy aspx that write all given parameters to a file.<br>
&gt; &gt;<br>
&gt; &gt; But the aspx don&#39;t called.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; What I must do to get the information&#39;s into the<br>
&gt; &gt;  <a href="http://localhost/callreg.aspx" target="_blank">http://localhost/callreg.aspx</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; My dummy read the information&#39;s from the<br>
&gt; &gt;  <a href="http://localhost/callreg.aspx?xxx=yyy" target="_blank">http://localhost/callreg.aspx?xxx=yyy</a> and so on<br>
&gt; &gt;<br>
&gt; &gt; The dummy aspx read all parameters that given after the ?<br>
&gt; &gt;<br>
&gt; &gt; But no information&#39;s coming.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Can anyone help me?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Greetings<br>
&gt; &gt;<br>
&gt; &gt; Erkan<br>
&gt;<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>
&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>
_______________________________________________<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>