< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Why limit only one ENUM DNS Server????


Could you explain what should be added and files involved?
Thanks

F Yuan



Jason Fischl wrote:
The interface is set up to handle it but there is some medium amount
of effort to actually make this work. Do you have time to add it in?

Jason


On 3/22/06, FrankYuan <frankyuan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
  
Hi,
SipStack::setEnumSuffixes(const std::vector<Data>& suffixes)  means that
DNS Stub can handle more than one ENUM DNS servers since it is a vector
data type.

When I put two ENUM DNS servers, it always core dump because there is an
assert to force the size to  be one or less. What's the reason? Can we
support more than one ENUM DNS?

Currently there are two popular ENUM DNS servers: e164.org and e164.arpa.

Here is the code to set the limit:
void
DnsResult::lookup(const Uri& uri, const std::vector<Data> &enumSuffixes)
{
   DebugLog (<< "DnsResult::lookup " << uri);
   //int type = this->mType;
   if (!enumSuffixes.empty() && uri.isEnumSearchable())
   {
      mInputUri = uri;
      mDoingEnum = true;
      std::vector<Data> enums = uri.getEnumLookups(enumSuffixes);
      assert(enums.size() <= 1);

..........................................................................................................

--
Thanks

F Yuan


_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel