FS-4331 please test and post a new log if necessary
This commit is contained in:
parent
305aa77a15
commit
f3a49366a1
|
@ -1224,6 +1224,7 @@ typedef enum {
|
|||
CF_CHANNEL_SWAP,
|
||||
CF_PICKUP,
|
||||
CF_CONFIRM_BLIND_TRANSFER,
|
||||
CF_NO_PRESENCE,
|
||||
/* WARNING: DO NOT ADD ANY FLAGS BELOW THIS LINE */
|
||||
/* IF YOU ADD NEW ONES CHECK IF THEY SHOULD PERSIST OR ZERO THEM IN switch_core_session.c switch_core_session_request_xml() */
|
||||
CF_FLAG_MAX
|
||||
|
|
|
@ -3521,6 +3521,7 @@ static switch_call_cause_t pickup_outgoing_channel(switch_core_session_t *sessio
|
|||
|
||||
pickup_add_session(nsession, pickup);
|
||||
switch_channel_set_flag(nchannel, CF_PICKUP);
|
||||
switch_channel_set_flag(nchannel, CF_NO_PRESENCE);
|
||||
|
||||
goto done;
|
||||
|
||||
|
|
|
@ -606,6 +606,10 @@ SWITCH_DECLARE(void) switch_channel_perform_presence(switch_channel_t *channel,
|
|||
const char *call_info = NULL;
|
||||
char *call_info_state = "active";
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_NO_PRESENCE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!status) {
|
||||
type = SWITCH_EVENT_PRESENCE_OUT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue