Skip to content

Commit

Permalink
onCallFixePhone numéro appelant
Browse files Browse the repository at this point in the history
Corrige le numéro appelant lorsque l'appel est effectué depuis une ligne fixe.
  • Loading branch information
FrBillyD committed Jun 22, 2018
1 parent 319f19d commit 1d9901b
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 1d9901b

Please sign in to comment.