How-tos for SER


This how-to describes how to do the following:

  • Compile SERi with RADIUSi support
  • Enable RADIUS for accounting
  • etc etc...

Step 1: Do something

Sequential Call Hunting using AVPs

blairs on 4 February, 2007 - 10:28
Keywords: avp

 

Call Hunting is a mechanism by which a proxy server trys to place a call to any one number (user) in a list of numbers. The proxy tries each number in sequence until a number answers (200 OK) or all numbers are exhausted. In this example the call will be forwarded to the voice mail mailbox associated with the original called number when all numbers have been exhausted.

This  example was created for a proxy running SERi 0.9.x

 


 
Setup:

In this example I use MySQL for the data storage. The database also stores registrations, subscriber data and locally defined call feature/call permission flags. To enable the call hunting feature we will need a new table.

MySQL setup:

We create a new table for Single Attribute Multi-value data storage. We'll call this table "sam".

#
# Table structure for table 'sam' Single Attribute Multi-value
#

DROP TABLE IF EXISTS `sam`;
CREATE TABLE `sam` (
  `uuid` varchar(64) NOT NULL default '',
  `username` varchar(100) NOT NULL default '0',
  `domain` varchar(128) NOT NULL default '',
  `attribute` varchar(32) NOT NULL default '',
  `value` varchar(128) NOT NULL default '',
  `type` int(11) NOT NULL default '0',
  `modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login