[Kamailio-Users] Username vs DID

Matteo D'Amato matteo at ecosma.com
Tue Nov 25 16:12:33 CET 2008


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 saying it would have been easier to use their actual DID numbers as their usernames?

--Matteo


-----Original Message-----
From: users-bounces at lists.kamailio.org [mailto:users-bounces at lists.kamailio.org] On Behalf Of Iñaki Baz Castillo
Sent: Tuesday, November 25, 2008 9:58 AM
To: users at lists.kamailio.org
Subject: Re: [Kamailio-Users] Username vs DID

El Martes, 25 de Noviembre de 2008, Matteo D'Amato escribió:
> Hello,
>
>                 I have users with one or more DID numbers assigned to them
> and some with none. What is the standard convention when choosing
> usernames? Initially  I started with usernames with the following format
> 1001,1002,etc however when a user dials a number their username shows up
> instead of their DID. I'm assigning DID with the alias command. Is there a
> way to show their DID number or do I need to change the way I create
> usernames?

In case you route calls to a PSTN gateway add "P-Asserted-Identity" header 
containing the DID value.
In case of calls between local users the only way is changing the From in the 
proxy (and replacing it with the DID), not very "cool".



-- 
Iñaki Baz Castillo

_______________________________________________
Users mailing list
Users at lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list