You can use avp_db_load to load the data from a table. If you store the CLI in the subsrciber table, you might have a problem, that the table schema is differnt than the schema is expected by avp_db_load. You can solve this by using a VIEW in the database, which retrieves the data form the subscriber table.
btw: the CLI is not alwys trustable. If the CLI is user provided, everybody can signal any CLI. Thus, you should only trust network provided CLIs or let the caller enter a PIN code for verification.
regards klaus
jayesh nambiar wrote:
hi all, I am trying to implement this feature in my openser 0.10. It is as follows: I allow users in pstn network to dial my gateway number, wherein they get a dial tone and the gateway then forwards all the calls to openser and are processed accordingly. But now I want to authenticate these caller ids. I want to give this privilege only to my subscribers. I had thought of adding the ids in the trusted table as my gateway is in trusted table, but this does not seem to be a good solution. Can I add an extra column in the subscriber table wherin I mention the caller-id for individual users (I give only one caller_id to one user), so that if the user is authenticated then the caller- id for that user should be authenticated. Can it be possible. I was thinkin of using AVPs for this, but I dont get the idea of retreiving the caller-ids from the table to check if the caller-id is valid. Can someone help me in this regard.
thanks
jayesh
Yahoo! Music Unlimited - Access over 1 million songs. Try it free. http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users