blob: f2e9ab8e3ea105375a6b5954470726c3dd32944c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
- content_for :title, t("gateways.show.page_title")
%table.table.table-striped
%tbody
%tr
%td
%strong= t('gateways.show.name') + ":"
%td
= @gateway.name
%tr
%td
%strong= t('gateways.show.id') + ":"
%td
= @gateway.id
%tr
%td
%strong= t('gateways.show.technology') + ":"
%td
= @gateway.technology
%tr
%td
%strong= t('gateways.show.inbound') + ":"
%td
= @gateway.inbound
%tr
%td
%strong= t('gateways.show.outbound') + ":"
%td
= @gateway.outbound
%tr
%td
%strong= t('gateways.show.description') + ":"
%td
= @gateway.description
- if @gateway.technology.to_s == 'sip'
- status = @gateway.status
%tr
%td
%strong= t('gateways.show.status') + ":"
%td
= "#{status['status']} (#{status['state']})"
%tr
%td
%strong= t('gateways.show.identifier') + ":"
%td
= status['name']
%tr
%td
%strong= t('gateways.show.profile') + ":"
%td
= status['profile']
%tr
%td
%strong= t('gateways.show.username') + ":"
%td
= status['username']
%tr
%td
%strong= t('gateways.show.password') + ":"
%td
= status['password']
%tr
%td
%strong= t('gateways.show.realm') + ":"
%td
= status['realm']
%tr
%td
%strong= t('gateways.show.contact') + ":"
%td
= status['contact']
%tr
%td
%strong= t('gateways.show.from') + ":"
%td
= status['from']
%tr
%td
%strong= t('gateways.show.to') + ":"
%td
= status['to']
%tr
%td
%strong= t('gateways.show.proxy') + ":"
%td
= status['proxy']
- registration = @gateway.inbound_register
- if !registration.blank?
%tr
%td
%strong= t('gateways.show.inbound_register_status') + ":"
%td
= registration.status
%tr
%td
%strong= t('gateways.show.inbound_register_contact') + ":"
%td
= registration.contact
%tr
%td
%strong= t('gateways.show.inbound_register_user_agent') + ":"
%td
= registration.user_agent
%tr
%td
%strong= t('gateways.show.inbound_register_network') + ":"
%td
= "#{registration.network_ip}:#{registration.network_port}"
= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway }
%h3= t('gateway_settings.index.page_title')
- if @gateway.gateway_settings.any?
= render "gateway_settings/index_core", :gateway_settings => @gateway.gateway_settings
%br
= render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewaySetting }
%h3= t('gateway_parameters.index.page_title')
- if @gateway.gateway_parameters.any?
= render "gateway_parameters/index_core", :gateway_parameters => @gateway.gateway_parameters
%br
= render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewayParameter }
|