We have 1 asterisk and 1openser installation, with 1/2 of our users registering to one and 1/2 to the other. What I wanted to do for in network calling is add a column to in_network table thats called ip. In that column I want to put the ip address of the asterisk machine that the calls for those in network users that are registered to it should go. Then somehow set up openser to do a (lookup) then failing that look up the number in this database, if its rewritehost the call to ip in the ip column, else forward to our pstn gateway.
Has anyone done this before, how would one handle multiple openser installations with 1/2 of the end users registering to one and the other 1/2 registering to the other barring a shared userloc database?
What was the in_network table made for?
As always any help greatly appreciated. Thank you.
Hi Brandon,
I'm not familiar with asterisk, so not sure which is the purpose of that table. What I can help you with is to point out a way load any kind of data from any table - use DB scheme with AVPOPS to make openser to access that table. See the tutorial: http://www.voice-system.ro/docs/avpops/ Also AVPOPS allows you do perform a wide range of operations with the loaded info.
hope this will help you!
regards, bogdan
Brandon Price wrote:
We have 1 asterisk and 1openser installation, with 1/2 of our users registering to one and 1/2 to the other. What I wanted to do for in network calling is add a column to in_network table thats called ip. In that column I want to put the ip address of the asterisk machine that the calls for those in network users that are registered to it should go. Then somehow set up openser to do a (lookup) then failing that look up the number in this database, if its rewritehost the call to ip in the ip column, else forward to our pstn gateway.
Has anyone done this before, how would one handle multiple openser installations with 1/2 of the end users registering to one and the other 1/2 registering to the other barring a shared userloc database?
What was the in_network table made for?
As always any help greatly appreciated. Thank you.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users