Sorry to bother, but do you have an example script for mod_translate for the purpose of matching and changing a number?<br><br>On Friday, November 13, 2015, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com">mic.niel84@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I see, interesting... Haven't thought of using that module.<div>I'm using PostgreSQL for creating directory, I guess that could be used in some sort with mod_translate...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 9:44 AM, Sergey Safarov <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','s.safarov@gmail.com');" target="_blank">s.safarov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For this task i also use refwrite userpart of uri.<div>In my implementation this rewrite is made on FS side via mod_translate.</div><span><font color="#888888"><div><br></div><div>Sergey</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 11:31 AM, Michael Nielsen <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','mic.niel84@gmail.com');" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So I guess the ability to have multiple number-alias for a user would solve the challenge nicely.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 9:29 AM, Michael Nielsen <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','mic.niel84@gmail.com');" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Don't know if it makes more sense, but what I'm looking for is basically that a user is reachable at for example:<div>+44123456789</div><div>+44958674532</div><div>+123445599</div><div><br></div><div>When dialing one of those numbers above, FS should match these as <a href="javascript:_e(%7B%7D,'cvml','my-user@domain.com');" target="_blank">my-user@domain.com</a> in FS.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 6:46 PM, Sergey Safarov <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','s.safarov@gmail.com');" target="_blank">s.safarov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Rewrite realm</p><div><div>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 11, 2015, 20:36 Sergey Safarov <<a href="javascript:_e(%7B%7D,'cvml','s.safarov@gmail.com');" target="_blank">s.safarov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Kamalio sip proxy solves your task.<br>
Rewrite real before passing it to FS </p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 11, 2015, 19:20 Michael Jerris <<a href="javascript:_e(%7B%7D,'cvml','mike@jerris.com');" target="_blank">mike@jerris.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">This would depend on how your dialplan is done. If you are using user dialstring you could use that, you could just put dialplan entries in, if you are generating dynamic dialplan via something like xml_curl you could just handle this with logic.</div><div style="word-wrap:break-word"><div><br><div><blockquote type="cite"><div>On Nov 11, 2015, at 11:01 AM, Michael Nielsen <<a href="javascript:_e(%7B%7D,'cvml','mic.niel84@gmail.com');" target="_blank">mic.niel84@gmail.com</a>> wrote:</div><br><div>Yes, so I can add another/multiple aliases for a user to be reached at. <br><br>On Wednesday, November 11, 2015, Michael Jerris <<a href="javascript:_e(%7B%7D,'cvml','mike@jerris.com');" target="_blank">mike@jerris.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I'm not even sure what a user alias would be exactly? Is this just dialplan that points to the same place?<div><br><div><blockquote type="cite"><div>On Nov 11, 2015, at 8:21 AM, Michael Nielsen <<a>mic.niel84@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Is there an easy way to assign multiple aliases for a user?<div>XML example is fine... Then I can dynamically generate it via LUA from PostgreSQL.</div><div><br></div><div>I've only seen an example for one single alias:</div><div><div><user id="johnsmith" number-alias="1001"></div></div><div>on <a href="https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 12:39 PM, Michael Jerris <span dir="ltr"><<a>mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No, those aliases are for console, they have nothing to do with users<div><div><span></span><br><br>On Wednesday, November 11, 2015, Michael Nielsen <<a>mic.niel84@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm running FS 1.6.2 with PostgreSQL as shared database for the core.<div>I've got a table called aliases in PostgreSQL, created by FS.</div><div><br></div><div>Can I use that for assigned aliases to my users?</div><div><br></div><div>I've created my own users table and are using LUA for generating the directory in FS.</div></div>
</blockquote>
</div></div><br>_</blockquote></div></div></div></blockquote></div></div></div></blockquote></div></blockquote></div><br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div></blockquote></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</blockquote>