Just to avoid any misunderstanding - this is to check all other things around freeswitch configuration.<div><br><div>If this will work, it will be very easy to add database lookup for the user trying to register:</div><div>
<br></div><div><br></div><div><div>$user = $_POST['user'];</div><div>$query="select password from your_users_table where user ='$user'";</div><div>$result=mysqli_query($db_connection, $query);</div>
<div><br></div><div>...get user and password from the result</div><div><br></div><div>And then use $user and $password variables instead of hard-coded "1018", "1018" in the code I provided.</div><div><br>
</div><div>Really hope this helps, it works for me.</div><div><br></div><div>Regards,</div><div>Vitalie</div><div><br></div><br><div class="gmail_quote">2010/5/24 Vitalii Colosov <span dir="ltr"><<a href="mailto:vetali100@gmail.com">vetali100@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sorry there was an else related to the missing entry, i removed it.<div><br></div><div>Please try another one.<br><br>
<div class="gmail_quote">2010/5/24 Vitalii Colosov <span dir="ltr"><<a href="mailto:vetali100@gmail.com" target="_blank">vetali100@gmail.com</a>></span><div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please try to use my attached php script, if you can.<div><br></div><div>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 :-) ).</div>
<div><br></div><div>
Please reply back on result.</div><div><br></div><div>Regards,</div><div><br></div><div>Vitalie<div><div></div><div><br><br><div class="gmail_quote">2010/5/24 Erwin Davis <span dir="ltr"><<a href="mailto:davis.erwin@gmail.com" target="_blank">davis.erwin@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yeah, my code replied with line 29-46. I donot know where the rest of html code was generated. <br><div><div></div><div>
<br><div class="gmail_quote">On Mon, May 24, 2010 at 10:34 AM, Milena <span dir="ltr"><<a href="mailto:testeador01@gmail.com" target="_blank">testeador01@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div>Hello,</div>You're not meant to send a whole website full of html tags as a response.<div>
Just reply the part of the lines 29 - 46 on your pastebin and get rid of the rest.</div><div><br><br><div class="gmail_quote">
2010,</div><div class="gmail_quote">/5/24 Erwin Davis <span dir="ltr"><<a href="mailto:davis.erwin@gmail.com" target="_blank">davis.erwin@gmail.com</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi, I am stuck, My console log is in <a href="http://pastebin.freeswitch.org/13030" target="_blank">http://pastebin.freeswitch.org/13030</a> and my xml log is in <a href="http://pastebin.freeswitch.org/13029" target="_blank">http://pastebin.freeswitch.org/13029</a>. I guess that the problem should be pretty small but I just can not figure it out. -:( Thanks for your help.<br>
<br><div class="gmail_quote"><div><div></div><div>On Mon, May 24, 2010 at 8:12 AM, Vitalii Colosov <span dir="ltr"><<a href="mailto:vetali100@gmail.com" target="_blank">vetali100@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div>
Hi Erwin,<div>Maybe you need to add the first line <?xml version="1.0" encoding="UTF-8" standalone="no"?></div><div><br></div><div>This is what I have and it works perfectly, tested right now:</div>
<div><br></div><div><div><?xml version="1.0" encoding="UTF-8" standalone="no"?></div><div><div><document type="freeswitch/xml"></div><div> <section name="directory"></div>
</div><div> <domain name="$${domain}"></div><div> <params></div><div> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/></div>
<div> </params></div><div><div> <groups></div><div> <group name="default"></div><div> <users></div></div><div> <user id="1000"></div>
<div> <params></div>
<div> <param name="a1-hash" value="somehashvalue"/></div><div> <param name="vm-a1-hash" value="somehashvalue"/></div><div> </params></div>
<div> <variables></div><div> <variable name="user_context" value="default"/></div><div> <variable name="accountcode" value="1000"/></div>
<div> </variables></div><div><div> </user></div><div> </users></div><div> </group></div><div> </groups></div><div> </domain></div>
<div> </section></div>
<div></document></div><div><br></div></div><div>Regards,</div><div>Vitalie</div></div>
<br></div></div><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div></div></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div></div>