Summary: | ASTERISK-03014: [request] externip DNS query | ||
Reporter: | cherso (cherso) | Labels: | |
Date Opened: | 2004-12-16 02:59:53.000-0600 | Date Closed: | 2008-01-15 15:18:28.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/NewFeature |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Can we perform a externip DNS query everytime we go out? When we are behind nat we probably are using dynamic dns. I could add asterisk -r -x "sip reload" to the cron to refresh the externip but it's not good when you spin off the HD during the night Should be good to have a sip option externipdns=config ; one time dns query loading sip.conf externipdns=always ; dns query everytime we go out I'm talking about chan_sip.c and ast_sip_ouraddrfor | ||
Comments: | By: Olle Johansson (oej) 2004-12-16 10:42:34.000-0600 Why do it always, why not do it when DNS record expires? Also, please post feature requests in the "feature request" category. By: cherso (cherso) 2004-12-16 11:23:10.000-0600 scenario: dynamic ip address ADSL with a dynamic dns. externip= xxxx.dyndns.org or similar ISP problem, ADSL router down and then up again, the ip address changes, new dyndns update. asterisk is still using the old ip address on outgoing call. You need at least a sip reload to let asterisk perform a new gethostbyname for the externip. so I set the cron to run asterisk -r -x "sip reload" every 5 minutes so I can't spin off the HD during the night By: Mark Spencer (markster) 2004-12-28 16:26:05.000-0600 Added with optional refresh interval (default = 10 seconds), only queried when "ouraddrfor" is called. By: Digium Subversion (svnbot) 2008-01-15 15:18:28.000-0600 Repository: asterisk Revision: 4573 U trunk/channels/chan_sip.c U trunk/configs/sip.conf.sample ------------------------------------------------------------------------ r4573 | markster | 2008-01-15 15:18:28 -0600 (Tue, 15 Jan 2008) | 2 lines Make it possible to configure an externhost and not just an externip (bug ASTERISK-3014) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4573 |