equal
deleted
inserted
replaced
153 local alloc_response, err = receive_packet(); |
153 local alloc_response, err = receive_packet(); |
154 if not alloc_response then |
154 if not alloc_response then |
155 result.error = "TURN server did not response to allocation request: "..err; |
155 result.error = "TURN server did not response to allocation request: "..err; |
156 return result; |
156 return result; |
157 elseif alloc_response:is_err_resp() then |
157 elseif alloc_response:is_err_resp() then |
158 result.error = ("TURN allocation failed: %d (%s)"):format(alloc_response:get_error()); |
158 result.error = ("TURN server failed to create allocation: %d (%s)"):format(alloc_response:get_error()); |
159 return result; |
159 return result; |
160 elseif not alloc_response:is_success_resp() then |
160 elseif not alloc_response:is_success_resp() then |
161 result.error = ("Unexpected TURN response: %d (%s)"):format(alloc_response:get_type()); |
161 result.error = ("Unexpected TURN response: %d (%s)"):format(alloc_response:get_type()); |
162 return result; |
162 return result; |
163 end |
163 end |