Hi, Vitalli,
Thanks for your PHP code. Unfortunately, I can't run that code because my project is in rails.
But I didnot see the difference between you code and mine. What does the xml log file look like when you turn on "xml_curl debug_on"? Could you cut and paste them into freeswitch pastebin?
My code is cloned from http://wiki.freeswitch.org/wiki/Mod_xml_curl_Ruby_directory_example. I am not sure that the xml output may cause some problem.
When I type "find_use_xml id 1018 192.168.1.31", the FS ignored the response from web server. Instead, it retrieve the info from the local directory.
freeswitch@proxy1.voiceserver.com> find_user_xml id 1018 192.168.1.31
2010-05-24 15:12:12.239449 [CONSOLE] mod_xml_curl.c:299 XML response is in /usr/local/freeswitch/
Just to avoid any misunderstanding - this is to check all other things around freeswitch configuration.If this will work, it will be very easy to add database lookup for the user trying to register:$user = $_POST['user'];$query="select password from your_users_table where user ='$user'";$result=mysqli_query($db_connection, $query);...get user and password from the resultAnd then use $user and $password variables instead of hard-coded "1018", "1018" in the code I provided.
Really hope this helps, it works for me.Regards,Vitalie2010/5/24 Vitalii Colosov <vetali100@gmail.com>
Sorry there was an else related to the missing entry, i removed it.Please try another one.
2010/5/24 Vitalii Colosov <vetali100@gmail.com>
Please try to use my attached php script, if you can.I changed it to fit your data (user 1018, pass: 1018), but I did not check for any syntax error (hope it does not have :-) ).Please reply back on result.Regards,Vitalie2010/5/24 Erwin Davis <davis.erwin@gmail.com>
yeah, my code replied with line 29-46. I donot know where the rest of html code was generated.
On Mon, May 24, 2010 at 10:34 AM, Milena <testeador01@gmail.com> wrote:
Hello,You're not meant to send a whole website full of html tags as a response.Just reply the part of the lines 29 - 46 on your pastebin and get rid of the rest.2010,/5/24 Erwin Davis <davis.erwin@gmail.com>Hi, I am stuck, My console log is in http://pastebin.freeswitch.org/13030 and my xml log is in http://pastebin.freeswitch.org/13029. I guess that the problem should be pretty small but I just can not figure it out. -:( Thanks for your help.
On Mon, May 24, 2010 at 8:12 AM, Vitalii Colosov <vetali100@gmail.com> wrote:
Hi Erwin,Maybe you need to add the first line <?xml version="1.0" encoding="UTF-8" standalone="no"?>This is what I have and it works perfectly, tested right now:<?xml version="1.0" encoding="UTF-8" standalone="no"?><document type="freeswitch/xml"><section name="directory"><domain name="$${domain}"><params><param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/></params><groups><group name="default"><users><user id="1000"><params><param name="a1-hash" value="somehashvalue"/><param name="vm-a1-hash" value="somehashvalue"/></params><variables><variable name="user_context" value="default"/><variable name="accountcode" value="1000"/></variables></user></users></group></groups></domain></section></document>Regards,Vitalie_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@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@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org