2011/7/28 Henrik Aagaard Sørensen henrikaagaardsorensen@gmail.com:
Is it possible to set CLI via the usr_preferences table in Kamailio? Or any other way? So that certain subscribers get there from-number overwritten with a specific one.
You can use whatever mechanism you prefer to store users CLI's (so their AoR username would be replaced by kamailio when, for example, routing a call to a PSTN gateway). It can be a extra column in subscriber table, an entry in usr_preferences or anything (LDAP, custom DB table....).
Then you can add a P-Asserted-Identity header with retrieved CLI before routing the INVITE to a PSTN gateway, or you can replace the
From URI using the UAC module.