mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-16 22:05:29 +02:00
Don't use erlang:integer_to_binary/1
This commit is contained in:
parent
1d771fe646
commit
e7e4055cbb
|
@ -79,7 +79,7 @@ request(#sip{hdrs = Hdrs} = Req, SIPSock) ->
|
|||
end, Contacts),
|
||||
Expires1 = lists:max(ExpiresList),
|
||||
Contact = {<<"">>, #uri{user = LUser, host = LServer},
|
||||
[{<<"expires">>, erlang:integer_to_binary(Expires1)}]},
|
||||
[{<<"expires">>, jlib:integer_to_binary(Expires1)}]},
|
||||
MinExpires = min_expires(),
|
||||
if Expires1 >= MinExpires ->
|
||||
case register_session(US, SIPSock, CallID, CSeq, Expires1) of
|
||||
|
@ -128,7 +128,7 @@ request(#sip{hdrs = Hdrs} = Req, SIPSock) ->
|
|||
Contact = {<<"">>,
|
||||
#uri{user = LUser, host = LServer},
|
||||
[{<<"expires">>,
|
||||
erlang:integer_to_binary(Expires1)}]},
|
||||
jlib:integer_to_binary(Expires1)}]},
|
||||
mod_sip:make_response(
|
||||
Req, #sip{type = response, status = 200,
|
||||
hdrs = [{'contact', [Contact]}]});
|
||||
|
|
Loading…
Reference in New Issue
Block a user