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?
--Matteo
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".
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@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Iñaki Baz Castillo Sent: Tuesday, November 25, 2008 9:58 AM To: users@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".
El Martes, 25 de Noviembre de 2008, Matteo D'Amato escribió:
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?
Since you probably auth users before calling to PSTN, you can retrieve the DID from the "subscriber" table (adding a custom field "did") with "auth_db", "extra_params" option (or something similar).
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?
There are hundres or ways, not just one. You could force username being the same as their PSTN DID's, or you can change the From (module "uac") in calls between local users.