-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thank you Iñaki for your quick answer!!
Have a nice we!
Iñaki Baz Castillo a écrit :
On Friday 11 January 2008 18:45:17 Marc LEURENT
wrote:
Good Evening,
I have a little question:
I have users with usernames and 10 phone numbers from my SIP/PSTN
provider.
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
with "uac_change_from()".
Other option is to insert RPID (look at "auth" module for "rpid"
related
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
"subscriber"
table,
load it with:
modparam("auth_db", "load_credentials",
"$avp(s:rpid)=rpid")
modparam("auth", "rpid_avp", "$avp(s:rpid)")
and after authentication use:
append_rpid_hf();
(maybe just if the call goes to the PSTN).
Regards.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFHh7HPN4+o+2LtdFwRAk9oAJ0Tv1fa2KARhm6O8wp4p2VmTWqa+gCg3YYR
9YMA5H4WQkAgs9yBCmBhpPI=
=VH/O
-----END PGP SIGNATURE-----