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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 10 11:35:21 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14560 
====================================================================== 
Reported By:                jvandal
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   14560
Category:                   PBX/pbx_dundi
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
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-12-10 11:35 CST
====================================================================== 
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:...

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

---------------------------------------------------------------------- 
 (0115079) lmadsen (administrator) - 2009-12-10 11:35
 https://issues.asterisk.org/view.php?id=14560#c115079 
---------------------------------------------------------------------- 
Hmmm, this doesn't seem to work for me for some reason.

I patched the remote host, and did a lookup. Without the patch I get a
weight of 59999, but with the patch, I get the same weight...

*CLI> dundi lookup 200 at testing bypass
  1. 59999 SIP/dundi:JUSJSFCNQhJDpKtT+m+3dQ==@127.0.1.1/200 (EXISTS)
     from 00:00:00:00:00:02, expires in 3600 s

Not sure what I'm doing wrong here, if anything. I had to update the patch
on the remote box slightly for trunk as it didn't apply, but once I did
that, it compiled fine. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-10 11:35 lmadsen        Note Added: 0115079                          
======================================================================




More information about the asterisk-bugs mailing list