avp

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;

avp

greger on 26 November, 2006 - 09:10
Keywords: 2.0.x | avp | Module

Standard-dep

This module contains several functions that can be used to manipulate the contents of AVPs (Attribute-Value pairs). The AVPs are variables attached to the SIP message being processed. Each variable has its name and value. AVPs can be used to store arbitrary data or as a means of inter-module comminication.

Jiri Kuthan
Michal Matyska

This is the page where YOU add your most wanted SERi features or modules! Please feel free to edit this page.

See a more detailed list of wishlist items on the tracker (items on this wishlist will end up in the tracker when they are detailed enough to do actual coding).

New groups can also be added. This wishlist is used for evaluating what to focus on for future releases.

In order to know the general interest of a feature, you can also vote for features. Just add an * in parenthesis behind the feature, and please only add one...

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