Hi,<br><br>I changed gateway-url to <br><br><br> <binding name="directory fetcher"><br> <param name="gateway-url" value="<a href="http://localhost/fs/" target="_blank">http://localhost/fs/</a>directory.php" bindings="directory."/><br>
</binding><br><br>then the error messages go away. However, I am still not able to authenticate user. I can see the response in the /tmp directory, but the result is not right. So, I am suspecting that the info pass is not sufficient for generating the directory xml. Is there anyway to see the HTTP request and response from the console? I turned on curl_xml debug_on but still it does not show. <br>
<br>Any inputs will be greatly appreciated.<br><br>Thanks,<br>Pete<br><br><div class="gmail_quote">On Fri, Apr 18, 2008 at 2:28 PM, Pete Kay <<a href="mailto:petedao@gmail.com">petedao@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I place my xml response generator directory.php under /var/www/fs/directory.php<br><br>In my xml_curl_conf.xml, I have<br><br> <binding name="directory fetcher"><br> <param name="gateway-url" value="<a href="http://localhost/fs/" target="_blank">http://localhost/fs/</a>" bindings="directory.php"/><br>
</binding><br><br><span style="color: rgb(255, 0, 0);">2008-04-18 22:23:17 [ERR] mod_xml_curl.c:251 do_config() Binding has no url!</span><br>2008-04-18 22:23:17 [NOTICE] mod_xml_curl.c:273 do_config() Binding [directory fetcher] XML Fetch Function [<a href="http://localhost/fs/" target="_blank">http://localhost/fs/</a>] [directory.php]<br>
2008-04-18 22:23:17 [CONSOLE] switch_loadable_module.c:749 switch_loadable_module_load_file() Successfully Loaded [mod_xml_curl]<br>2008-04-18 22:23:17 [NOTICE] switch_loadable_module.c:245 switch_loadable_module_process() Adding API Function 'xml_curl'<br>
2008-04-18 22:23:17 [CONSOLE] switch_loadable_module.c:749 switch_loadable_module_load_file() Successfully Loaded [mod_cdr_csv]<br>2008-04-18 22:23:17 [CONSOLE] switch_loadable_module.c:749 switch_loadable_module_load_file() Successfully Loaded [mod_event_socket]<br>
2008-04-18 22:23:17 [NOTICE] switch_loadable_module.c:225 switch_loadable_module_process() Adding Application 'socket'<br>2008-04-18 22:23:17 [CONSOLE] switch_loadable_module.c:749 switch_loadable_module_load_file() Successfully Loaded [mod_iax]<br>
2008-04-18 22:23:17 [NOTICE] switch_loadable_module.c:139 switch_loadable_module_process() Adding Endpoint 'iax'<br>2008-04-18 22:23:17 [NOTICE] sofia.c:1373 config_sofia() Adding Alias [<a href="http://192.168.1.104" target="_blank">192.168.1.104</a>] for profile [default]<br>
2008-04-18 22:23:17 [NOTICE] sofia.c:1383 config_sofia() Started Profile default [sofia_reg_default]<br>2008-04-18 22:23:17 [NOTICE] switch_scheduler.c:166 switch_scheduler_task_thread() Starting task thread<br>2008-04-18 22:23:17 [NOTICE] sofia.c:1383 config_sofia() Started Profile nat [sofia_reg_nat]<br>
<span style="color: rgb(255, 0, 0);">2008-04-18 22:23:18 [ERR] mod_xml_curl.c:190 xml_url_fetch() Received HTTP error 404 trying to fetch <a href="http://localhost/fs/" target="_blank">http://localhost/fs/</a></span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">data: [hostname=ser&section=directory&tag_name=domain&key_name=name&key_value=192.168.1.104&domain=<a href="http://192.168.1.104" target="_blank">192.168.1.104</a>]</span><br style="color: rgb(255, 0, 0);">
<.....><br><br><span style="color: rgb(255, 0, 0);">freeswitch@ser> 2008-04-18 22:24:26 [ERR] mod_xml_curl.c:190 xml_url_fetch() Received HTTP error 404 trying to fetch <a href="http://localhost/fs/" target="_blank">http://localhost/fs/</a></span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">data: [hostname=ser&section=directory&tag_name=domain&key_name=name&key_value=192.168.1.104&action=sip_auth&sip_profile=default&sip_user_agent=Linksys/SPA3102-3.3.6(GW)&sip_auth_username=1006&sip_auth_realm=192.168.1.104&sip_auth_nonce=25f4793c-0d53-11dd-bc54-07f6ea524331&sip_auth_uri=sip%3A192.168.1.104&sip_auth_qop=auth&sip_auth_cnonce=36fbccf&sip_auth_nc=00000001&sip_auth_response=e55890e6e780c28aa2ac5487c3e75905&sip_auth_method=REGISTER&key=id&user=1006&domain=192.168.1.104&ip=<a href="http://192.168.1.103" target="_blank">192.168.1.103</a>]</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">2008-04-18 22:24:26 [ERR] mod_xml_curl.c:190 xml_url_fetch() Received HTTP error 404 trying to fetch <a href="http://localhost/fs/" target="_blank">http://localhost/fs/</a></span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">data: [hostname=ser&section=directory&tag_name=domain&key_name=name&key_value=192.168.1.104&action=sip_auth&sip_profile=default&sip_user_agent=Linksys/SPA3102-3.3.6(GW)&sip_auth_username=1007&sip_auth_realm=192.168.1.104&sip_auth_nonce=25fd93f0-0d53-11dd-bc54-07f6ea524331&sip_auth_uri=sip%3A192.168.1.104&sip_auth_qop=auth&sip_auth_cnonce=d14a908&sip_auth_nc=00000001&sip_auth_response=b1c78c65639c34ad74af62d8d5f9cd7e&sip_auth_method=REGISTER&key=id&user=1007&domain=192.168.1.104&ip=<a href="http://192.168.1.103" target="_blank">192.168.1.103</a>]</span><br style="color: rgb(255, 0, 0);">
<br><br>I think this may just be a very minor error in my setup.<br>Can someone please tell me what I did wrong?<br><br>Thank you very much in advance for your help.<br><font color="#888888"><br>Pete<br><br><br><br>
</font></blockquote></div><br>