24
1
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:
Evgeniy Khramtsov 2014-05-01 21:58:11 +04:00
parent 1d771fe646
commit e7e4055cbb

View File

@ -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]}]});