Reported by: fkasumovic
Patches:
chan_sip.patch uploaded by fkasumovic (license #101)
Drop any peer realm authentication entries when reloading so multiple entries do not get added to the peer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@76080
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
ast_variables_destroy(peer->chanvars);
peer->chanvars = NULL;
}
+ /* If we have realm authentication information, remove them (reload) */
+ clear_realm_authentication(peer->auth);
+ peer->auth = (struct sip_auth *) NULL;
strcpy(peer->context, default_context);
strcpy(peer->subscribecontext, default_subscribecontext);
strcpy(peer->vmexten, global_vmexten);