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"><<a href="mailto:ingdavidcespedes@cable.net.co">ingdavidcespedes@cable.net.co</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;">
<br>
<br>
----- Mensaje original -----<br>
De: Matteo D'Amato <<a href="mailto:matteo@ecosma.com">matteo@ecosma.com</a>><br>
Fecha: Martes, Noviembre 25, 2008 10:12 am<br>
Asunto: [Kamailio-Users] Username vs DID<br>
<div class="Ih2E3d"><br>
> Yes I am using a PSTN Gateway, should I create a new table to hold<br>
> the link between the username and DID or do I use the information<br>
> in the alias table?<br>
><br>
</div><div class="Ih2E3d">> And there may be some local calls between users, so are you saying<br>
> it would have been easier to use their actual DID numbers as their<br>
> 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's always better, I think, to have internal user names as "John" 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>
> --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>