pbx/pbx_dundi.c in dundifunc_read(). shouldn't be too hard to have it set some variables (i.e. DUNDI_RESULT_n) and add the the weight in a CUTable string. Can't return multiple results in a nice manner with the result from a custom dialplan function... I'm working on some other projects right now, but I'm sure the Digium folks would welcome a patch from you if you really want it.
<br><br><div><span class="gmail_quote">On 6/14/06, <b class="gmail_sendername">Douglas Garstang</b> <<a href="mailto:dgarstang@oneeighty.com">dgarstang@oneeighty.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is driving me nuts.<br><br>Why doesn't the DUNDILOOKUP function return the weight of a path to a number? The CLI 'dundi lookup' command does. What about the mac address and expiry period? The CLI command returns those, but the DUNDILOOKUP function does not. Why?
<br><br>We absolutely need this in order to perform out routing logic.<br><br>It has become quite apparent to me that DUNDi is _NOT_ suited to performing failover applications. It is suited to situations where you want to check a number on a series of peers before routing the call through an expensive PSTN gateway. It is not suited to situations where you want to dynamically discover where a number is located within a cluster of Asterisk systems.
<br><br>In our particular scenario, we have ACD queues. Our phones register with a primary Asterisk box. The primary Asterisk box for company A may be different to the primary Asterisk box for company B. In the event that a user in company B wants to reach Company A's queue, we need to use DUNDi to perform a lookup that returns it's company A's primary Asterisk box. However, the primary Asterisk box may have failed, it which case the DUNDi lookup should return the secondary Asterisk system for Company A to the dial plan routing the call. This may have not made sense.... brain is fried after dealing with this all day.
<br><br>DUNDi seems to be falling really short in performing complex discovery and failover applications like this. If the DUNDILOOKUP fuction returned a weight, it would help a lot.<br><br>Oh... also.... when you call the dundi lookup CLI command, you get multiple results. The DUNDILOOKUP function only returns one value. How can I get _all_ DUNDi paths with DUNDILOOKUP?
<br><br>Doug.<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>