[asterisk-dev] Why do a DNS search on sip_devicestate
Gabriel Ortiz Lour
ortiz.admin at gmail.com
Mon Aug 3 20:07:21 CDT 2009
Hi Asterisk gurus,
I'm experiencing a problem with my 1.4.19 asterisk and found that has to
do with DNS delays... so looking in the code I have found that the chan_sip
would do like:
static int sip_devicestate(void *data)
.
.
.
... else ...{
char *port = strchr(host, ':');
if (port)
*port = '\0';
hp = ast_gethostbyname(host, &ahp);
if (hp)
res = AST_DEVICE_UNKNOWN;
}
just to return AST_DEVICE_UNKNOWN, so I was just wondering if someone could
tell me why does it have the trouble to do a DNS lookup and then returns
AST_DEVICE_UNKNOWN
I also saw that 1.6.1.2 does not do this lookup...
Thanks already,
Gabriel Ortiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20090803/a77ad04b/attachment.htm
More information about the asterisk-dev
mailing list