Matteo,
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.
Pablo
----- Mensaje original -----
De: Matteo D'Amato <matteo@ecosma.com>
Fecha: Martes, Noviembre 25, 2008 10:12 am
Asunto: [Kamailio-Users] Username vs DID
> Yes I am using a PSTN Gateway, should I create a new table to hold
> the link between the username and DID or do I use the information
> in the alias table?
>
> And there may be some local calls between users, so are you sayingI have seen something like this
> it would have been easier to use their actual DID numbers as their
> usernames?
ie:
PSTN Number: 7565079
Internal Extension:5079
So you use as username= 5079, and PSTN number 7565079.
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.
> --Matteo
_______________________________________________
Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users