[asterisk-dev] ENUM and overlapped dialing
Klaus Darilion
klaus.mailinglists at pernau.at
Mon Mar 9 07:35:44 CDT 2009
Timo Teräs schrieb:
> Hi,
>
> I'm trying to get asterisk SVN to do overlapped dialing with ENUMQUERY / ENUMRESULT.
> But this seems to be impossible currently.
>
> E.g. if my enum tree is like:
> *.1.my.enum. NAPTR ...
> *.1.2.my.enum. NAPTR ...
> *.2.2.my.enum. NAPTR ...
>
> The query for "2.my.enum" will return "no data", but query for "3.my.enum"
> would return "domain does not exist".
FYI: Old bind versions did not had this behaviour but instead returned
NXDOMAIN in both cases.
regards
klaus
> And for overlapped dialing, I need to
> do the queries for each parent domain; not just the complete number.
>
> The basic flaw is that ENUMQUERY does not return the info if query failed because
> of DNS error "domain does not exist" or "no data".
>
> With "no data" I could make the dialplan execute "Incomplete()" or just make it
> collect more digits. And on "domain does not exist" it could play right away
> "invalid number".
>
> Now the fix is simple. To make ENUMQUERY / ENUMRESULT somehow return why there
> is no results: because query failed, because domain does not exists or because
> the result was empty (valid child domains exist). Any preference how this
> should be done?
>
> ENUMQUERY() to return negative errors code/string?
> ENUMRESULT(ID,result) to return error code/string?
>
> Currently the only way to figure if something bad happened is that
> ENUMRESULT(ID,getnum) returns zero. But as explained this is not enough.
>
> I'm willing to code and send a patch on the bug tracker.
>
> Cheers,
> Timo
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list