equal
deleted
inserted
replaced
349 rtp_socket.send(rtp_packet); |
349 rtp_socket.send(rtp_packet); |
350 } catch (IOException e) { |
350 } catch (IOException e) { |
351 e.printStackTrace(); |
351 e.printStackTrace(); |
352 } |
352 } |
353 time += frame_size; |
353 time += frame_size; |
354 if (useGSM && p_type == 8 && !BeemConnectivity.isWifi(Call.mContext) && tm.getNetworkType() == TelephonyManager.NETWORK_TYPE_EDGE) { |
354 /*if (useGSM && p_type == 8 && !BeemConnectivity.isWifi(Call.mContext) && tm.getNetworkType() == TelephonyManager.NETWORK_TYPE_EDGE) { |
355 rtp_packet.setPayloadType(p_type = 3); |
355 rtp_packet.setPayloadType(p_type = 3); |
356 if (frame_size == 1024) { |
356 if (frame_size == 1024) { |
357 frame_size = 960; |
357 frame_size = 960; |
358 ring = 0; |
358 ring = 0; |
359 } |
359 } |
360 } |
360 }*/ |
361 } |
361 } |
362 record.stop(); |
362 record.stop(); |
363 |
363 |
364 rtp_socket.close(); |
364 rtp_socket.close(); |
365 rtp_socket = null; |
365 rtp_socket = null; |