Re: [asterisk-dev] Fixing Asterisk DNS - bug 9152, asynchronous DNS, etc

2007-06-22 Thread Klaus Darilion


Olle E Johansson wrote:
> If dnsmgr is not asynch DNS, I suggest that someone takes a look into  
> the C-ares library.
> It has a license that Kevin/Mark has approved of and will help us to  
> proper asynch
> DNS. It's used by curl, so in some installations it's already used by  
> asterisk in app_curl.

FYI: There is also an extended version of ares included in the 
resiprocate stack.


klaus

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


Re: [asterisk-dev] Fixing Asterisk DNS - bug 9152, asynchronous DNS, etc

2007-06-22 Thread Olle E Johansson

21 jun 2007 kl. 22.42 skrev Russell Bryant:

> Olle E Johansson wrote:
>> 21 jun 2007 kl. 18.08 skrev Russell Bryant:
>>> We already have an asynchronous DNS handler.  It's just that most
>>> of the
>>> code hasn't been converted to use it.  It is open for anyone to
>>> jump on
>>> and as I said before, it's not terribly difficult to do, but it will
>>> take some time.
>>
>> Do we? Where's that code?
>
> implementation: main/dnsmgr.c
> example usage: channels/chan_iax2.c

Hmm, last time I checked this wasn't really what the rest of the  
world calls "asynch DNS",
but things may have changed and I will check again. Kevin also used  
to have some doubt
whether dnsmgr was the right way to go, so I put implementation of  
that on hold for
chan_sip, but if it's now the proper way, I'll look into it again and  
see if we can enhance
it so it can help us improve DNS support, especially in the area of  
SRV records in SIP.

If someone else wants to take a look, that would be really, really  
helpful.

If dnsmgr is not asynch DNS, I suggest that someone takes a look into  
the C-ares library.
It has a license that Kevin/Mark has approved of and will help us to  
proper asynch
DNS. It's used by curl, so in some installations it's already used by  
asterisk in app_curl.

/O

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


Re: [asterisk-dev] Fixing Asterisk DNS - bug 9152, asynchronous DNS, etc

2007-06-21 Thread Russell Bryant
Olle E Johansson wrote:
> 21 jun 2007 kl. 18.08 skrev Russell Bryant:
>> We already have an asynchronous DNS handler.  It's just that most  
>> of the
>> code hasn't been converted to use it.  It is open for anyone to  
>> jump on
>> and as I said before, it's not terribly difficult to do, but it will
>> take some time.
> 
> Do we? Where's that code?

implementation: main/dnsmgr.c
example usage: channels/chan_iax2.c

-- 
Russell Bryant
Software Engineer
Digium, Inc.

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


Re: [asterisk-dev] Fixing Asterisk DNS - bug 9152, asynchronous DNS, etc

2007-06-21 Thread Olle E Johansson

21 jun 2007 kl. 18.08 skrev Russell Bryant:

> Klaus Darilion wrote:
>> (open)ser also has similar problems to due lack of asynch DNS -  
>> but at
>> least they allow to configure DNS timeouts. Thus, a workaround is
>> setting low timeout values. I do not know if Asterisk supports this -
>> but surely will be easier to implement than asynch DNS.
>
> We already have an asynchronous DNS handler.  It's just that most  
> of the
> code hasn't been converted to use it.  It is open for anyone to  
> jump on
> and as I said before, it's not terribly difficult to do, but it will
> take some time.

Do we? Where's that code?

/O

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev