mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
Merge pull request #888 in FS/freeswitch from ~MZAKA/freeswitch:bugfix/FS-9277-sip-info-record to master
* commit 'addf7555bff15889d73e48bf70445d6d27d79fce': FS-9277: sip info with record: on and off doesn't start and stop call recording sessions
This commit is contained in:
commit
dac1b67c20
@ -9553,8 +9553,6 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
|||||||
} else if (!strncasecmp(sip->sip_content_type->c_type, "application", 11) && !strcasecmp(sip->sip_content_type->c_subtype, "dtmf")) {
|
} else if (!strncasecmp(sip->sip_content_type->c_type, "application", 11) && !strcasecmp(sip->sip_content_type->c_subtype, "dtmf")) {
|
||||||
int tmp = atoi(sip->sip_payload->pl_data);
|
int tmp = atoi(sip->sip_payload->pl_data);
|
||||||
dtmf.digit = switch_rfc2833_to_char(tmp);
|
dtmf.digit = switch_rfc2833_to_char(tmp);
|
||||||
} else {
|
|
||||||
goto end;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dtmf.digit) {
|
if (dtmf.digit) {
|
||||||
@ -9588,9 +9586,9 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
|||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING,
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING,
|
||||||
"IGNORE INFO DTMF(%c) (This channel was not configured to use INFO DTMF!)\n", dtmf.digit);
|
"IGNORE INFO DTMF(%c) (This channel was not configured to use INFO DTMF!)\n", dtmf.digit);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((clientcode_header = sofia_glue_get_unknown_header(sip, "x-clientcode"))) {
|
if ((clientcode_header = sofia_glue_get_unknown_header(sip, "x-clientcode"))) {
|
||||||
if (!zstr(clientcode_header)) {
|
if (!zstr(clientcode_header)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user