Hi,
I'm running an OpenSER server and I've got a couple of usage questions I'd like some pointers on how I can implement them.
- I want to link multiple incoming telephone numbers to one single account so 123456 and 45678 and 999933 can all point to the account customer1 Basically I want to do SIP trunking, but with requiring the CPE to authenticate itself. How do I do this?
- I'm now using an Asterisk server to do some incoming call routing (mainly some call forwarding scenarios) and I'd like to remove the Asterisk dependency. How do I retrieve values based on the called destination from a database? I've tried looking at AVPops, but haven't yet found any clear documentation on how to use it.
Thanks!
Hi Andreas,
do you want to have this multiple-DIDs aliasing for inbound or outbound calls (a single user to be able to received calls routed to these DIDs or a single user to be able to generated outbound calls using any of the assigned DIDs) ?
For more about AVPops - see the online documentation : http://www.openser.org/docs/modules/1.2.x/avpops.html
if you have more specific question, please post them here.
regards, bogdan
Andreas Sikkema wrote:
Hi,
I'm running an OpenSER server and I've got a couple of usage questions I'd like some pointers on how I can implement them.
- I want to link multiple incoming telephone numbers to one single account
so 123456 and 45678 and 999933 can all point to the account customer1 Basically I want to do SIP trunking, but with requiring the CPE to authenticate itself. How do I do this?
- I'm now using an Asterisk server to do some incoming call routing (mainly
some call forwarding scenarios) and I'd like to remove the Asterisk dependency. How do I retrieve values based on the called destination from a database? I've tried looking at AVPops, but haven't yet found any clear documentation on how to use it.
Thanks!
On Tuesday 28 November 2006 16:41, Bogdan-Andrei Iancu wrote:
do you want to have this multiple-DIDs aliasing for inbound or outbound calls (a single user to be able to received calls routed to these DIDs or a single user to be able to generated outbound calls using any of the assigned DIDs) ?
Both actually ;-), if at all possible. I want to be able to offer my customers multiple numbers using a single account where the customer doesn't have to configure each destination number in his/her CPE. I really want to authenticate as much as possible so I know I can "trust" the information coming back from the CPE and don't have to worry about that in the rest of my system.
For more about AVPops - see the online documentation : http://www.openser.org/docs/modules/1.2.x/avpops.html
I've looked some more at the documentation in the wiki at openser.org and a couple of the examples I never noticed before were something like what I want to do. Thanks for the link anyway.
Andreas Sikkema wrote:
do you want to have this multiple-DIDs aliasing for inbound or outbound calls (a single user to be able to received calls routed to these DIDs or a single user to be able to generated outbound calls using any of the assigned DIDs) ?
Both actually ;-), if at all possible. I want to be able to offer my customers multiple numbers using a single account where the customer doesn't have to configure each destination number in his/her CPE. I really want to authenticate as much as possible so I know I can "trust" the information coming back from the CPE and don't have to worry about that in the rest of my system.
For inbound calls it is rather simple - just use aliases to map the DIDs over the username. The problem is for outbound calls - the issue is how the user may choose the outbound DID. here you can do several tricks: 1) use RPID to advertise the selected DID - user selects the outgoing DID via an interface on the proxy 2) user change the the CPE cfg to use a specific DID in FROM hdr, but maintaining constant the auth username to be able to do auth.
regards, bogdan
On Tuesday 28 November 2006 21:24, Bogdan-Andrei Iancu wrote:
For inbound calls it is rather simple - just use aliases to map the DIDs over the username.
Where can I find more information on aliases? I've seen the alias_db module, but that is just the backend, it doesn't really describe what frontend the backend supports.
The problem is for outbound calls - the issue is how the user may choose the outbound DID. here you can do several tricks: 1) use RPID to advertise the selected DID - user selects the outgoing DID via an interface on the proxy 2) user change the the CPE cfg to use a specific DID in FROM hdr, but maintaining constant the auth username to be able to do auth.
I'd prefer option 2 because that is what I think matches with the way I feel it should work.
Andreas Sikkema wrote:
On Tuesday 28 November 2006 21:24, Bogdan-Andrei Iancu wrote:
For inbound calls it is rather simple - just use aliases to map the DIDs over the username.
Where can I find more information on aliases? I've seen the alias_db module, but that is just the backend, it doesn't really describe what frontend the backend supports.
alias_db provides both frontend and backend - it fully implement alias support with DB backend (no cache). you may also consider using the register+location module to get the same functionality (with permanent contacts) - it may do caching, but more difficult to provision.
The problem is for outbound calls - the issue is how the user may choose the outbound DID. here you can do several tricks: 1) use RPID to advertise the selected DID - user selects the outgoing DID via an interface on the proxy 2) user change the the CPE cfg to use a specific DID in FROM hdr, but maintaining constant the auth username to be able to do auth.
I'd prefer option 2 because that is what I think matches with the way I feel it should work.
in this case the user will be uniquely identify via the authentication ID; he can use for SIP ID whatever DID he has assigned (which will get into From hdr). Authentication will work, but for checking the mapping between the auth ID and SIP ID use the "user_db" module with uri table.
regards, bogdan
On Tuesday 28 November 2006 22:11, Andreas Sikkema wrote:
On Tuesday 28 November 2006 21:24, Bogdan-Andrei Iancu wrote:
For inbound calls it is rather simple - just use aliases to map the DIDs over the username.
Where can I find more information on aliases?
Up to now I've been adding additional entries for destination number <-> username relations and it seems to work, but that was for CPEs that register extra those extra destinations. And it uses the standard usr_loc functions.
Will alias_db magically work? Is there an example I can use as basis for my configuration? I haven't been able to find one, but that might be my fault.