[OpenSER-Users] DB aliases for outgoing calls

Iñaki Baz Castillo ibc at in.ilimit.es
Fri Jan 11 18:53:06 CET 2008


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.





-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list