Holger Hans Peter Freyther | ab22335 | 2013-04-22 09:07:39 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) 2010-2012 by Holger Hans Peter Freyther <zecke@selfish.org> |
| 3 | * (C) 2010-2012 by On-Waves |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU Affero General Public License as published by |
| 8 | * the Free Software Foundation; either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU Affero General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Affero General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #ifndef BSC_NAT_CALLSTATS_H |
| 22 | #define BSC_NAT_CALLSTATS_H |
| 23 | |
| 24 | #include <osmocom/core/linuxlist.h> |
| 25 | |
| 26 | #include <osmocom/sccp/sccp_types.h> |
| 27 | |
| 28 | struct bsc_nat_call_stats { |
| 29 | struct llist_head entry; |
| 30 | |
| 31 | struct sccp_source_reference remote_ref; |
| 32 | struct sccp_source_reference src_ref; /* as seen by the MSC */ |
| 33 | |
| 34 | /* mgcp options */ |
| 35 | uint32_t ci; |
| 36 | int bts_rtp_port; |
| 37 | int net_rtp_port; |
| 38 | struct in_addr bts_addr; |
| 39 | struct in_addr net_addr; |
| 40 | |
| 41 | |
| 42 | /* as witnessed by the NAT */ |
| 43 | uint32_t net_ps; |
| 44 | uint32_t net_os; |
| 45 | uint32_t bts_pr; |
| 46 | uint32_t bts_or; |
| 47 | uint32_t bts_expected; |
| 48 | uint32_t bts_jitter; |
| 49 | int bts_loss; |
| 50 | |
| 51 | uint32_t trans_id; |
| 52 | int msc_endpoint; |
| 53 | }; |
| 54 | |
| 55 | #endif |