diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-14 03:48:16 -0400 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-14 03:48:16 -0400 |
commit | 25d58b40dfb51ddf6f566ded43c335146ac5fbb7 (patch) | |
tree | 023d4ef39af00a24a4caacae6e1349f5aefb5f20 | |
parent | 0840ee7eb193d838724de7227b19824abd5b2bf3 (diff) |
show gateway status
-rw-r--r-- | app/views/gateways/show.html.haml | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml index 6cf09ec..f2e9ab8 100644 --- a/app/views/gateways/show.html.haml +++ b/app/views/gateways/show.html.haml @@ -33,6 +33,81 @@ %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 } |