<br><br><div class="gmail_quote">On Fri, Mar 18, 2011 at 7:34 AM, Moe Navid <span dir="ltr"><<a href="mailto:manavid@gmail.com">manavid@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<div><br></div><div>I'm in the process of migrating my services from Asterisk to FreeSWITCH.</div><div><br></div><div>Is there a way to create voicemail boxes dynamically on the fly without predefining user profiles?</div>
<div><br></div><div>Right now I'm using OpenSIPS as my registrar and load balancer for my Asterisk boxes. I use asterisk's real time in conjunction with res_config_mysql to I define my voicemail boxes in my mysql table and Asterisk reads it's info from there.</div>
<div><br></div><div>Can I do something similar with FreeSWITCH?</div><div><br></div><div>The only way I can find to do it in FreeSWITCH is using mod_xml_curl.</div></blockquote><div><br></div><div>In your case, mod_xml_curl is the way to go. You will need to build a little web server to handle the requests from mod_xml_curl and return the data from your mysql table in properly formatted XML. I recommend that you look at the freeswitch-contrib, specifically in intralanman/PHP/fs_curl/ to see an example of how you can return user directory information. Look at the README file in there for more information on how to get things set up. As long as you return properly formatted XML for your dialplan and/or directory then you should be good to go and FS will do the rest.</div>
<div><br></div><div>-MC</div></div>