Re: [Asterisk-Users] Using a DNS name for externip in sip.conf

2004-08-01 Thread Ian Hailey
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


RE: [Asterisk-Users] Using a DNS name for externip in sip.conf

2004-07-14 Thread Arthur D'Alessandro III
I though that the externip was used within the sip communications, so it is
sent as is, and resolved on the other side. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis Cartier
Sent: Wednesday, July 14, 2004 9:51 AM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Using a DNS name for externip in sip.conf

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


Re: [Asterisk-Users] Using a DNS name for externip in sip.conf

2004-07-14 Thread Roger Schreiter
Dennis Cartier schrieb:
 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
Hi,
at least at chan_h323 it does resolve only once
at startup.
Any method to get asterisk looking up certain
H323 hosts would be useful, since it could avoid
the necessity of an external gatekeeper, if it
is just used for access control of soho users.
Roger.
___
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