mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Correct cast fix.
This commit is contained in:
parent
6c26de9e28
commit
146042ac6d
1 changed files with 4 additions and 2 deletions
|
|
@ -4355,9 +4355,11 @@ LinphoneStatus MediaSession::sendDtmfs (const std::string &dtmfs) {
|
|||
return -2;
|
||||
}
|
||||
if (!dtmfs.empty()) {
|
||||
unsigned int delayMs = (unsigned int) lp_config_get_int(linphone_core_get_config(getCore()->getCCore()), "net", "dtmf_delay_ms", 200);
|
||||
int delayMs = lp_config_get_int(linphone_core_get_config(getCore()->getCCore()), "net", "dtmf_delay_ms", 200);
|
||||
if (delayMs < 0)
|
||||
delayMs = 0;
|
||||
d->dtmfSequence = dtmfs;
|
||||
d->dtmfTimer = getCore()->getCCore()->sal->create_timer(MediaSessionPrivate::sendDtmf, this, delayMs, "DTMF sequence timer");
|
||||
d->dtmfTimer = getCore()->getCCore()->sal->create_timer(MediaSessionPrivate::sendDtmf, this, static_cast<unsigned int>(delayMs), "DTMF sequence timer");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue