Hello,
On 02/22/06 16:50, martin(a)campus-merseburg.de wrote:
Hi,
in my setup userid's are the same as phonenumbers in pstn. so when
someone registers with userid 012345, 012345 is his phonenumber. so
everyone can call him from the pstn and and 012345 is his calling number.
my problem is, when someone uses 6543210 phonenumber in his sip client,
openser only creates a contact with 6543210 as username. so he could be
reached with 6543210 and can make calls with this calling number.
since my accounting works with the userid's i've added to the pstn-gw,
i solved the problem for outgoing calls with changing the from-url:
avp_printf("i:50", "sip:$au@$fd:5060");
uac_replace_from("$avp(i:50)");
if you do not use the $avp(i:50) further in the script then you can use
directly:
uac_replace_from("sip:$au@$fd:5060");
but what can i do with incoming calls?
could i create an alias for a user when he registers?
You do not need to create an alias for the user when he register. Just
canonize the R-URI to the ID of the user used at registration and then
do the location lookup, or is there other scope for this alias, for what
do you want to use the alias?
Cheers,
Daniel
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users