Matteo,<br><br>IMHO, you can create users like name.lastname and link that usernames with DIDs in other table (or db_aliases as well). Then, when you route a call to PSTN you can do uac_replace_from or add headers like P-Asserted-Identity or Remote-Party-ID (take care of this depending on your PSTN GW model) looking for the preferred ANI in your db.<br>
<br>Pablo<br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 2:17 PM,  <span dir="ltr">&lt;<a href="mailto:ingdavidcespedes@cable.net.co">ingdavidcespedes@cable.net.co</a>&gt;</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;">
<br>
<br>
----- Mensaje original -----<br>
De: Matteo D&#39;Amato &lt;<a href="mailto:matteo@ecosma.com">matteo@ecosma.com</a>&gt;<br>
Fecha: Martes, Noviembre 25, 2008 10:12 am<br>
Asunto: [Kamailio-Users] Username vs DID<br>
<div class="Ih2E3d"><br>
&gt; Yes I am using a PSTN Gateway, should I create a new table to hold<br>
&gt; the link between the username and DID or do I use the information<br>
&gt; in the alias table?<br>
&gt;<br>
</div><div class="Ih2E3d">&gt; And there may be some local calls between users, so are you saying<br>
&gt; it would have been easier to use their actual DID numbers as their<br>
&gt; usernames?<br>
</div>I have seen something like this<br>
ie:<br>
<br>
PSTN Number: 7565079<br>
Internal Extension:5079<br>
<br>
So you use as username= 5079, and PSTN number 7565079.<br>
<br>
But it&#39;s always better, I think, to have internal user names as &quot;John&quot; and associate its DID only when he is trying to reach the PSTN, adding the RFC 3325 header field P-Asserted-Identity with the DID number.<br>

<br>
&gt; --Matteo<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>