opposite day
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7831 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8869ac665b
commit
07e97a25d3
|
@ -1981,7 +1981,7 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
||||||
char *full_ref_by = NULL;
|
char *full_ref_by = NULL;
|
||||||
char *full_ref_to = NULL;
|
char *full_ref_to = NULL;
|
||||||
|
|
||||||
if (profile->mflags & MFLAG_REFER) {
|
if (!profile->mflags & MFLAG_REFER) {
|
||||||
nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());
|
nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
@ -638,7 +638,7 @@ void sofia_reg_handle_sip_i_register(nua_t * nua, sofia_profile_t *profile, nua_
|
||||||
char key[128] = "";
|
char key[128] = "";
|
||||||
switch_event_t *v_event = NULL;
|
switch_event_t *v_event = NULL;
|
||||||
|
|
||||||
if (profile->mflags & MFLAG_REGISTER) {
|
if (!profile->mflags & MFLAG_REGISTER) {
|
||||||
nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());
|
nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue