Seems I didn't explain clean what I'm trying to achieve.<br><br>I have a domain, say, <a href="http://access.test.com">access.test.com</a>. My users can use srv records to reach it, or specify server's address directly as IP. <br>
Default configuration with domain="all" works like a charm.<br><br>Then I moved from static files to xml_curl directory in database. Now every time user registers I should respond with directory record, containing domain in which user is trying to register, so I need to respond with IP if user registers with IP, and with name if user registers with name. I do this having DomainAlias table in my DB.<br>
<br>After user registration, I need to bridge calls to it by my routing rules. But I don't know exactly how to instruct freeswitch to lookup user's contact, since I don't know in which domain user is registered. I don't want to interact with Freeswitch registration database, as it decreases flexibility of solution.<br>
<br>At present I use force-register-domain set to my domain name, but I want to use several names with different aliases, so looking for another solution =) <br><br><br><br><div class="gmail_quote">2011/3/3 Frank Park <span dir="ltr"><<a href="mailto:frank@telonium.com">frank@telonium.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">We use domain aliases to do multi-tenancy and we have SIP clients to specify the realm that matches the alias you have, and outbound proxy to match the actual proxy server.<div>
This will use the profile alias to register, (which then you should be able to see in the sip_registrations table (in columns sip_host and mwi_host). You should then be able to use user/internal/${userpart}@{domain_name}.</div>
<div><br>As for registering users via IP address, you should look into mod_acl</div><div><br></div><div>Frank</div><div><br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Mar 3, 2011 at 3:58 AM, Dmitry Sytchev <span dir="ltr"><<a href="mailto:kbdfck@gmail.com" target="_blank">kbdfck@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5"><div>Hi All<br clear="all"></div><div><br></div>
<div>I'm trying to setup xml_curl-based directory to provide registration and bridging information from database.</div>
<div><br></div><div>The thing I can't still reliably handle is domain aliases. I have some domain like 'access.freeswitch.test', but I need to allow users to register via ip address, for example, 1.1.1.1. My scripts answer on REGISTER curl request with directory entry where domain is set to domain user trying to register at, and this works.</div>
<div><br></div><div>But then I need to dial that user. I'm trying to use user/${userpart}%{domainpart} syntax, but I don't know exactly domain user was registered at. How to tell freeswitch to take in account domain aliases when looking up for sofia contact?</div>
<div>Or, instead, can I make freeswitch to store user in registration database with some primary domain, which I can then specify to bridge(user/) command?</div><div><br></div><div>Thanks in advance!<br></div><font color="#888888"><div>
<br></div>
-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>
</font><br></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></blockquote></div><br><br clear="all"><br>-- <br><div><br></div><div>----=======================----</div><div>Frank Park</div><div>Telonium Communications, LLC</div><div><a href="mailto:frank@telonium.com" target="_blank">frank@telonium.com</a></div>
<div><a href="http://www.telonium.com" target="_blank">http://www.telonium.com</a></div><div>Follow Us on Twitter: @GetTelonium</div><div>404-566-8888 x1001 Office</div><div>404-939-4242 Cell</div><div>----=======================----</div>
<div><br></div><br>
</div>
<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></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>