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

FrankYuan frankyuan at emergent-netsolutions.com
Wed Mar 22 10:18:41 CST 2006


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 at emergent-netsolutions.com> 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 at list.sipfoundry.org
>>https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>>
>>    
>>
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20060322/5686558a/attachment.htm>


More information about the resiprocate-devel mailing list