mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-23 16:05:30 -07:00
more cleanups for outbound registrations (bug #4457)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+4
-4
@@ -613,7 +613,7 @@ static int sip_reloading = 0;
|
||||
#define REG_STATE_REJECTED 4
|
||||
#define REG_STATE_TIMEOUT 5
|
||||
#define REG_STATE_NOAUTH 6
|
||||
#define REG_STATE_GAVEUP 7
|
||||
#define REG_STATE_FAILED 7
|
||||
|
||||
|
||||
/* sip_registry: Registrations with other SIP proxies */
|
||||
@@ -4527,8 +4527,8 @@ static int transmit_notify_with_sipfrag(struct sip_pvt *p, int cseq)
|
||||
static char *regstate2str(int regstate)
|
||||
{
|
||||
switch(regstate) {
|
||||
case REG_STATE_GAVEUP:
|
||||
return "Gave up.";
|
||||
case REG_STATE_FAILED:
|
||||
return "Failed";
|
||||
case REG_STATE_UNREGISTERED:
|
||||
return "Unregistered";
|
||||
case REG_STATE_REGSENT:
|
||||
@@ -4610,7 +4610,7 @@ static int sip_reg_timeout(void *data)
|
||||
/* Ok, enough is enough. Don't try any more */
|
||||
/* We could add an external notification here...
|
||||
steal it from app_voicemail :-) */
|
||||
r->regstate=REG_STATE_GAVEUP;
|
||||
r->regstate=REG_STATE_FAILED;
|
||||
} else {
|
||||
r->regstate=REG_STATE_UNREGISTERED;
|
||||
r->timeout = -1;
|
||||
|
||||
@@ -82,6 +82,8 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
|
||||
; inband : Inband audio (requires 64 kbit codec -alaw, ulaw)
|
||||
|
||||
;compactheaders = yes ; send compact sip headers.
|
||||
;sipdebug = yes ; Turn on SIP debugging by default, from
|
||||
; the moment the channel loads this configuration
|
||||
|
||||
;
|
||||
; If regcontext is specified, Asterisk will dynamically
|
||||
@@ -121,6 +123,10 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
|
||||
; (instead of type=friend) if you have calls in both directions
|
||||
|
||||
;registertimeout=20 ; retry registration calls every 20 seconds (default)
|
||||
;registerattempts=10 ; Number of registration attempts before we give up
|
||||
; 0 = continue forever, hammering the other server until it
|
||||
; accepts the registration
|
||||
; Default is 10 tries
|
||||
;callevents=no ; generate manager events when sip ua performs events (e.g. hold)
|
||||
|
||||
;---------------------------------------------- NAT SUPPORT ------------------------
|
||||
|
||||
Reference in New Issue
Block a user