Skip to content

Commit

Permalink
Merge pull request #14 from FrBillyD/master
Browse files Browse the repository at this point in the history
onCallFixePhone numéro appelant
  • Loading branch information
Gannon001 authored Jun 22, 2018
2 parents fbbc055 + 1d9901b commit b608349
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resources/gcphone/server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,14 @@ function onCallFixePhone (source, phone_number, rtcOffer, extraData)
end
local sourcePlayer = tonumber(source)
local srcIdentifier = getPlayerID(source)
local srcPhone = getNumberPhone(srcIdentifier)

local srcPhone = ''
if extraData ~= nil and extraData.useNumber ~= nil then
srcPhone = extraData.useNumber
else
srcPhone = getNumberPhone(srcIdentifier)
end

AppelsEnCours[indexCall] = {
id = indexCall,
transmitter_src = sourcePlayer,
Expand Down

0 comments on commit b608349

Please sign in to comment.