[asterisk-bugs] [Asterisk 0014560]: [patch] Ability to use DUNDi channel variables when using dynamic weights

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 10 13:19:03 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14560 
====================================================================== 
Reported By:                jvandal
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14560
Category:                   PBX/pbx_dundi
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 178769 
Request Review:              
====================================================================== 
Date Submitted:             2009-02-26 10:38 CST
Last Modified:              2009-06-10 13:19 CDT
====================================================================== 
Summary:                    [patch] Ability to use DUNDi channel variables when
using dynamic weights
Description: 
This patch add the ability to use DUNDi channel variables like ${NUMBER}
and ${IPADDR} when using dynamic weights for responses to DUNDi queries.

By example, you can use the SHELL() function to call an external script to
determine what the weight in response should be. 

e164  => dundi-e164-via-pstn,${SHELL(/tmp/test-dundi
${NUMBER}")},IAX2,dundi:...

====================================================================== 

---------------------------------------------------------------------- 
 (0106252) jvandal (reporter) - 2009-06-10 13:19
 https://issues.asterisk.org/view.php?id=14560#c106252 
---------------------------------------------------------------------- 
In fact, we are using an AGI script to do Hotdesking feature so the
dialplan is very basic. But to resume what the script do is to
validate/authenticate the user on Login, define a new key on AstDB when the
hotdesk is logged in/out.

On the DUNDi configuration, I use it like :

e164 => dundi-e164-via-pstn,${SHELL(/tmp/test-dundi
${NUMBER}")},IAX2,dundi:...

The /tmp/test-dundi script check the status of the Hotdesk extension
specified by the ${NUMBER} variable and if the hotdesk is logged, the
weight will be different that if the hotdesk is not logged. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-10 13:19 jvandal        Note Added: 0106252                          
======================================================================




More information about the asterisk-bugs mailing list