#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 */
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:
/* 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;
; 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
; (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 ------------------------