On Friday 11 January 2008 18:45:17 Marc LEURENT wrote:
I have a little question:
I have users with usernames and 10 phone numbers from my SIP/PSTN
I have a dbaliases table for incoming calls, in order to redirect the
0xxxxxxxxx number to an user.
0xxxxxxxx1 => bob
I would like for outgoing calls to replace the user by the telephone
number in the From: Header.....
bob => 0xxxxxxxx1
Any idea how to do it?
Yes, you can use "uac" module in order to change From
Other option is to insert RPID (look at "auth" module for "rpid"
functions) or PAI headers. If your provider accepts them it will show it as
callerid for PSTN calls.
Note that you can store the PSTN number in "rpid" field of
load it with:
modparam("auth", "rpid_avp", "$avp(s:rpid)")
and after authentication use:
(maybe just if the call goes to the PSTN).
Iñaki Baz Castillo