Hello Dennis,

I also wanted to know this and from having a quick look at the chan_sip.c I can see that the name is resolved only at startup when the sip.conf is read.

} else if (!strcasecmp(v->name, "externip")) {
if (!(hp = ast_gethostbyname(v->value, &ahp)))
ast_log(LOG_WARNING, "Invalid address for externip keyword: %s\n", v->value);
else
memcpy(&externip.sin_addr, hp->h_addr, sizeof(externip.sin_addr));


I will modify my chan_sip.c to re-resolve the name every time a registration timeout occurs (defined by defaultexpirey). It would be nice if they could add it to the normal release. If this works then I will post the code changes somewhere (don't know how to do that yet).

Ian Hailey.

Dennis Cartier wrote:

Does anyone know if the 'externip=' in sip.conf is resolved just once
at startup or on an on going basis? I would like to use a DNS name
through one of the dynamic DNS providers, but if the DNS updates, and
asterisk continues using the old resolved value, this could get
tricky.

Thanks,

Dennis
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users




_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to