Makeup, darling.
authorOlle Johansson <oej@edvina.net>
Fri, 18 May 2007 10:28:56 +0000 (10:28 +0000)
committerOlle Johansson <oej@edvina.net>
Fri, 18 May 2007 10:28:56 +0000 (10:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64973 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 47ededf..de26d9a 100644 (file)
@@ -8424,7 +8424,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
 
                destroy_association(peer);
                
-               register_peer_exten(peer, 0);   /* Add extension from regexten= setting in sip.conf */
+               register_peer_exten(peer, FALSE);       /* Remove extension from regexten= setting in sip.conf */
                peer->fullcontact[0] = '\0';
                peer->useragent[0] = '\0';
                peer->sipoptions = 0;
@@ -8492,7 +8492,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
                sip_poke_peer(peer);
                if (option_verbose > 2)
                        ast_verbose(VERBOSE_PREFIX_3 "Registered SIP '%s' at %s port %d expires %d\n", peer->name, ast_inet_ntoa(peer->addr.sin_addr), ntohs(peer->addr.sin_port), expiry);
-               register_peer_exten(peer, 1);
+               register_peer_exten(peer, TRUE);
        }
        
        /* Save User agent */